public class AddHeaderAction extends Object implements 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 .
Constructor and Description |
---|
AddHeaderAction() |
Modifier and Type | Method and Description |
---|---|
AddHeaderAction |
clone() |
boolean |
equals(Object obj) |
String |
getHeaderName()
The name of the header to add.
|
String |
getHeaderValue()
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").
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
AddHeaderAction |
withHeaderName(String headerName)
The name of the header to add.
|
AddHeaderAction |
withHeaderValue(String headerValue)
Must be less than 2048 characters, and must not contain newline
characters ("\r" or "\n").
|
public String getHeaderName()
public void setHeaderName(String headerName)
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 AddHeaderAction withHeaderName(String headerName)
Returns a reference to this object so that method calls can be chained together.
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 String getHeaderValue()
public void setHeaderValue(String headerValue)
headerValue
- Must be less than 2048 characters, and must not contain newline
characters ("\r" or "\n").public AddHeaderAction withHeaderValue(String headerValue)
Returns a reference to this object so that method calls can be chained together.
headerValue
- 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 AddHeaderAction clone()
Copyright © 2015. All rights reserved.