@Generated(value="com.amazonaws:aws-java-sdk-code-generator") 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.
Constructor and Description |
---|
ExtensionField() |
Modifier and Type | Method and 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.
|
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.
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 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(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(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 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(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 String toString()
toString
in class Object
Object.toString()
public ExtensionField clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.