Class AddHeaderAction
- java.lang.Object
-
- software.amazon.awssdk.services.ses.model.AddHeaderAction
-
- All Implemented Interfaces:
Serializable
,SdkPojo
,ToCopyableBuilder<AddHeaderAction.Builder,AddHeaderAction>
@Generated("software.amazon.awssdk:codegen") public final class AddHeaderAction extends Object implements SdkPojo, Serializable, ToCopyableBuilder<AddHeaderAction.Builder,AddHeaderAction>
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:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
AddHeaderAction.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AddHeaderAction.Builder
builder()
boolean
equals(Object obj)
boolean
equalsBySdkFields(Object obj)
<T> Optional<T>
getValueForField(String fieldName, Class<T> clazz)
int
hashCode()
String
headerName()
The name of the header to add to the incoming message.String
headerValue()
The content to include in the header.List<SdkField<?>>
sdkFields()
static Class<? extends AddHeaderAction.Builder>
serializableBuilderClass()
AddHeaderAction.Builder
toBuilder()
String
toString()
Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
headerName
public final 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.
- Returns:
- 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.
-
headerValue
public final 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.- Returns:
- 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.
-
toBuilder
public AddHeaderAction.Builder toBuilder()
- Specified by:
toBuilder
in interfaceToCopyableBuilder<AddHeaderAction.Builder,AddHeaderAction>
-
builder
public static AddHeaderAction.Builder builder()
-
serializableBuilderClass
public static Class<? extends AddHeaderAction.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFields
in interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
-