public class ExtensionField
extends java.lang.Object
implements java.io.Serializable, java.lang.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.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
name
The name of the header to add.
|
private java.lang.String |
value
The value of the header to add.
|
Constructor and Description |
---|
ExtensionField() |
Modifier and Type | Method and Description |
---|---|
ExtensionField |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getName()
The name of the header to add.
|
java.lang.String |
getValue()
The value of the header to add.
|
int |
hashCode() |
void |
setName(java.lang.String name)
The name of the header to add.
|
void |
setValue(java.lang.String value)
The value of the header to add.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
ExtensionField |
withName(java.lang.String name)
The name of the header to add.
|
ExtensionField |
withValue(java.lang.String value)
The value of the header to add.
|
private java.lang.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.
private java.lang.String value
The value of the header to add. Must be less than 2048 characters, and must not contain newline characters ("\r" or "\n").
public void setName(java.lang.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.
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.public java.lang.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.
public ExtensionField withName(java.lang.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.
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.public void setValue(java.lang.String value)
The value of the header to add. Must be less than 2048 characters, and must not contain newline characters ("\r" or "\n").
value
- The value of the header to add. Must be less than 2048 characters,
and must not contain newline characters ("\r" or "\n").public java.lang.String getValue()
The value of the header to add. Must be less than 2048 characters, and must not contain newline characters ("\r" or "\n").
public ExtensionField withValue(java.lang.String value)
The value of the header to add. Must be less than 2048 characters, and must not contain newline characters ("\r" or "\n").
value
- The value of the header to add. Must be less than 2048 characters,
and must not contain newline characters ("\r" or "\n").public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public ExtensionField clone()
clone
in class java.lang.Object