Class AddHeaderAction
- All Implemented Interfaces:
Serializable
,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.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
The name of the header to add.Must be less than 2048 characters, and must not contain newline characters ("\r" or "\n").int
hashCode()
void
setHeaderName
(String headerName) The name of the header to add.void
setHeaderValue
(String headerValue) Must be less than 2048 characters, and must not contain newline characters ("\r" or "\n").toString()
Returns a string representation of this object; useful for testing and debugging.withHeaderName
(String headerName) The name of the header to add.withHeaderValue
(String headerValue) Must be less than 2048 characters, and must not contain newline characters ("\r" or "\n").
-
Constructor Details
-
AddHeaderAction
public AddHeaderAction()
-
-
Method Details
-
setHeaderName
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:
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.
-
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.
- 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.
-
withHeaderName
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:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setHeaderValue
Must be less than 2048 characters, and must not contain newline characters ("\r" or "\n").
- Parameters:
headerValue
- Must be less than 2048 characters, and must not contain newline characters ("\r" or "\n").
-
getHeaderValue
Must be less than 2048 characters, and must not contain newline characters ("\r" or "\n").
- Returns:
- Must be less than 2048 characters, and must not contain newline characters ("\r" or "\n").
-
withHeaderValue
Must be less than 2048 characters, and must not contain newline characters ("\r" or "\n").
- Parameters:
headerValue
- 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
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-