Class MessageHeader
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<MessageHeader.Builder,MessageHeader>
Contains the name and value of a message header that you add to an email.
- 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 message header name has to meet the following criteria:
-
Can contain any printable ASCII character (33 - 126) except for colon (:).
-
Can contain no more than 126 characters.
- Returns:
- The name of the message header. The message header name has to meet the following criteria:
-
Can contain any printable ASCII character (33 - 126) except for colon (:).
-
Can contain no more than 126 characters.
-
-
-
value
The value of the message header. The message header value has to meet the following criteria:
-
Can contain any printable ASCII character.
-
Can contain no more than 995 characters.
-
The combined length of the header name and value must not exceed 996 characters.
- Returns:
- The value of the message header. The message header value has to meet the following criteria:
-
Can contain any printable ASCII character.
-
Can contain no more than 995 characters.
-
The combined length of the header name and value must not exceed 996 characters.
-
-
-
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
-