@Generated(value="com.amazonaws:aws-java-sdk-code-generator") 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 to the incoming message.
|
String |
getHeaderValue()
The content to include in the header.
|
int |
hashCode() |
void |
setHeaderName(String headerName)
The name of the header to add to the incoming message.
|
void |
setHeaderValue(String headerValue)
The content to include in the header.
|
String |
toString()
Returns a string representation of this object.
|
AddHeaderAction |
withHeaderName(String headerName)
The name of the header to add to the incoming message.
|
AddHeaderAction |
withHeaderValue(String headerValue)
The content to include in the header.
|
public void setHeaderName(String headerName)
The name of the header to add to the incoming message. The name must contain at least one character, and can contain up to 50 characters. It consists of alphanumeric (a–z, A–Z, 0–9) characters and dashes.
headerName
- The name of the header to add to the incoming message. The name must contain at least one character, and
can contain up to 50 characters. It consists of alphanumeric (a–z, A–Z, 0–9) characters and dashes.public String getHeaderName()
The name of the header to add to the incoming message. The name must contain at least one character, and can contain up to 50 characters. It consists of alphanumeric (a–z, A–Z, 0–9) characters and dashes.
public AddHeaderAction withHeaderName(String headerName)
The name of the header to add to the incoming message. The name must contain at least one character, and can contain up to 50 characters. It consists of alphanumeric (a–z, A–Z, 0–9) characters and dashes.
headerName
- The name of the header to add to the incoming message. The name must contain at least one character, and
can contain up to 50 characters. It consists of alphanumeric (a–z, A–Z, 0–9) characters and dashes.public void setHeaderValue(String headerValue)
The content to include in the header. This value can contain up to 2048 characters. It can't contain newline (
\n
) or carriage return (\r
) characters.
headerValue
- The content to include in the header. This value can contain up to 2048 characters. It can't contain
newline (\n
) or carriage return (\r
) characters.public String getHeaderValue()
The content to include in the header. This value can contain up to 2048 characters. It can't contain newline (
\n
) or carriage return (\r
) characters.
\n
) or carriage return (\r
) characters.public AddHeaderAction withHeaderValue(String headerValue)
The content to include in the header. This value can contain up to 2048 characters. It can't contain newline (
\n
) or carriage return (\r
) characters.
headerValue
- The content to include in the header. This value can contain up to 2048 characters. It can't contain
newline (\n
) or carriage return (\r
) characters.public String toString()
toString
in class Object
Object.toString()
public AddHeaderAction clone()