@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.
|
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 void setHeaderName(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 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(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(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 String getHeaderValue()
Must be less than 2048 characters, and must not contain newline characters ("\r" or "\n").
public AddHeaderAction withHeaderValue(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 String toString()
toString
in class Object
Object.toString()
public AddHeaderAction clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.