public class AddHeaderAction
extends java.lang.Object
implements java.io.Serializable
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 |
---|---|
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").
|
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.
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 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 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.
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 java.lang.String getHeaderValue()
Must be less than 2048 characters, and must not contain newline characters ("\r" or "\n").
Must be less than 2048 characters, and must not contain newline characters ("\r" or "\n").
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 AddHeaderAction withHeaderValue(java.lang.String headerValue)
Must be less than 2048 characters, and must not contain newline characters ("\r" or "\n").
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 java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.