public class ExtensionField
extends java.lang.Object
implements java.io.Serializable
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 |
---|---|
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.
|
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.
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 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 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.
Returns a reference to this object so that method calls can be chained together.
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 getValue()
The value of the header to add. Must be less than 2048 characters, and must not contain newline characters ("\r" or "\n").
The value of the header to add. Must be less than 2048 characters, and must not contain newline characters ("\r" or "\n").
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 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").
Returns a reference to this object so that method calls can be chained together.
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 int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.