Class ExtensionField
- java.lang.Object
-
- com.amazonaws.services.simpleemail.model.ExtensionField
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class ExtensionField extends Object implements Serializable, Cloneable
Additional X-headers to include in the Delivery Status Notification (DSN) when an email that Amazon SES receives on your behalf bounces.
For information about receiving email through Amazon SES, see the Amazon SES Developer Guide.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ExtensionField()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ExtensionField
clone()
boolean
equals(Object obj)
String
getName()
The name of the header to add.String
getValue()
The value of the header to add.int
hashCode()
void
setName(String name)
The name of the header to add.void
setValue(String value)
The value of the header to add.String
toString()
Returns a string representation of this object; useful for testing and debugging.ExtensionField
withName(String name)
The name of the header to add.ExtensionField
withValue(String value)
The value of the header to add.
-
-
-
Method Detail
-
setName
public void setName(String name)
The name of the header to add. Must be between 1 and 50 characters, inclusive, and consist of alphanumeric (a-z, A-Z, 0-9) characters and dashes only.
- Parameters:
name
- The name of the header to add. Must be between 1 and 50 characters, inclusive, and consist of alphanumeric (a-z, A-Z, 0-9) characters and dashes only.
-
getName
public String getName()
The name of the header to add. Must be between 1 and 50 characters, inclusive, and consist of alphanumeric (a-z, A-Z, 0-9) characters and dashes only.
- Returns:
- The name of the header to add. Must be between 1 and 50 characters, inclusive, and consist of alphanumeric (a-z, A-Z, 0-9) characters and dashes only.
-
withName
public ExtensionField withName(String name)
The name of the header to add. Must be between 1 and 50 characters, inclusive, and consist of alphanumeric (a-z, A-Z, 0-9) characters and dashes only.
- Parameters:
name
- The name of the header to add. Must be between 1 and 50 characters, inclusive, and consist of alphanumeric (a-z, A-Z, 0-9) characters and dashes only.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setValue
public void setValue(String value)
The value of the header to add. Must be less than 2048 characters, and must not contain newline characters ("\r" or "\n").
- Parameters:
value
- The value of the header to add. Must be less than 2048 characters, and must not contain newline characters ("\r" or "\n").
-
getValue
public String getValue()
The value of the header to add. Must be less than 2048 characters, and must not contain newline characters ("\r" or "\n").
- Returns:
- The value of the header to add. Must be less than 2048 characters, and must not contain newline characters ("\r" or "\n").
-
withValue
public ExtensionField withValue(String value)
The value of the header to add. Must be less than 2048 characters, and must not contain newline characters ("\r" or "\n").
- Parameters:
value
- The value of the header to add. Must be less than 2048 characters, and must not contain newline characters ("\r" or "\n").- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public ExtensionField clone()
-
-