Class MessageHeader
java.lang.Object
software.amazon.awssdk.services.pinpoint.model.MessageHeader
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<MessageHeader.Builder,MessageHeader>
@Generated("software.amazon.awssdk:codegen")
public final class MessageHeader
extends Object
implements SdkPojo, Serializable, ToCopyableBuilder<MessageHeader.Builder,MessageHeader>
Contains the name and value pair of an email header to add to your email. You can have up to 15 MessageHeaders. A header can contain information such as the sender, receiver, route, or timestamp.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic MessageHeader.Builderbuilder()final booleanfinal booleanequalsBySdkFields(Object obj) final <T> Optional<T>getValueForField(String fieldName, Class<T> clazz) final inthashCode()final Stringname()The name of the message header.static Class<? extends MessageHeader.Builder>final StringtoString()Returns a string representation of this object.final Stringvalue()The value of the message header.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
name
The name of the message header. The header name can contain up to 126 characters.
- Returns:
- The name of the message header. The header name can contain up to 126 characters.
-
value
The value of the message header. The header value can contain up to 870 characters, including the length of any rendered attributes. For example if you add the {CreationDate} attribute, it renders as YYYY-MM-DDTHH:MM:SS.SSSZ and is 24 characters in length.
- Returns:
- The value of the message header. The header value can contain up to 870 characters, including the length of any rendered attributes. For example if you add the {CreationDate} attribute, it renders as YYYY-MM-DDTHH:MM:SS.SSSZ and is 24 characters in length.
-
toBuilder
- Specified by:
toBuilderin interfaceToCopyableBuilder<MessageHeader.Builder,MessageHeader>
-
builder
-
serializableBuilderClass
-
hashCode
public final int hashCode() -
equals
-
equalsBySdkFields
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
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. -
getValueForField
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-