public class AddHeaderAction
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
When included in a receipt rule, this action adds a header to the received email.
For information about adding a header using a receipt rule, see the Amazon SES Developer Guide.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
headerName
The name of the header to add.
|
private java.lang.String |
headerValue
Must be less than 2048 characters, and must not contain newline
characters ("\r" or "\n").
|
Constructor and Description |
---|
AddHeaderAction() |
Modifier and Type | Method and Description |
---|---|
AddHeaderAction |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getHeaderName()
The name of the header to add.
|
java.lang.String |
getHeaderValue()
Must be less than 2048 characters, and must not contain newline
characters ("\r" or "\n").
|
int |
hashCode() |
void |
setHeaderName(java.lang.String headerName)
The name of the header to add.
|
void |
setHeaderValue(java.lang.String headerValue)
Must be less than 2048 characters, and must not contain newline
characters ("\r" or "\n").
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
AddHeaderAction |
withHeaderName(java.lang.String headerName)
The name of the header to add.
|
AddHeaderAction |
withHeaderValue(java.lang.String headerValue)
Must be less than 2048 characters, and must not contain newline
characters ("\r" or "\n").
|
private java.lang.String headerName
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 headerValue
Must be less than 2048 characters, and must not contain newline characters ("\r" or "\n").
public void setHeaderName(java.lang.String headerName)
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.
headerName
- 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 getHeaderName()
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 AddHeaderAction withHeaderName(java.lang.String headerName)
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.
headerName
- 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 setHeaderValue(java.lang.String headerValue)
Must be less than 2048 characters, and must not contain newline characters ("\r" or "\n").
headerValue
- Must be less than 2048 characters, and must not contain newline
characters ("\r" or "\n").public java.lang.String getHeaderValue()
Must be less than 2048 characters, and must not contain newline characters ("\r" or "\n").
public AddHeaderAction withHeaderValue(java.lang.String headerValue)
Must be less than 2048 characters, and must not contain newline characters ("\r" or "\n").
headerValue
- 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 AddHeaderAction clone()
clone
in class java.lang.Object