@Generated(value="software.amazon.awssdk:codegen") public class SetIdentityHeadersInNotificationsEnabledRequest extends SESRequest implements ToCopyableBuilder<SetIdentityHeadersInNotificationsEnabledRequest.Builder,SetIdentityHeadersInNotificationsEnabledRequest>
Represents a request to set whether Amazon SES includes the original email headers in the Amazon SNS notifications of a specified type. For information about notifications, see the Amazon SES Developer Guide.
Modifier and Type | Class and Description |
---|---|
static interface |
SetIdentityHeadersInNotificationsEnabledRequest.Builder |
Modifier and Type | Method and Description |
---|---|
static SetIdentityHeadersInNotificationsEnabledRequest.Builder |
builder() |
Boolean |
enabled()
Sets whether Amazon SES includes the original email headers in Amazon SNS notifications of the specified
notification type.
|
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz)
Used to retrieve the value of a field from any class that extends
SdkRequest . |
int |
hashCode() |
String |
identity()
The identity for which to enable or disable headers in notifications.
|
NotificationType |
notificationType()
The notification type for which to enable or disable headers in notifications.
|
String |
notificationTypeString()
The notification type for which to enable or disable headers in notifications.
|
static Class<? extends SetIdentityHeadersInNotificationsEnabledRequest.Builder> |
serializableBuilderClass() |
SetIdentityHeadersInNotificationsEnabledRequest.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
requestOverrideConfig
copy
public String identity()
The identity for which to enable or disable headers in notifications. Examples: user@example.com
,
example.com
.
user@example.com
, example.com
.public NotificationType notificationType()
The notification type for which to enable or disable headers in notifications.
If the service returns an enum value that is not available in the current SDK version, notificationType
will return NotificationType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available
from notificationTypeString()
.
NotificationType
public String notificationTypeString()
The notification type for which to enable or disable headers in notifications.
If the service returns an enum value that is not available in the current SDK version, notificationType
will return NotificationType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available
from notificationTypeString()
.
NotificationType
public Boolean enabled()
Sets whether Amazon SES includes the original email headers in Amazon SNS notifications of the specified
notification type. A value of true
specifies that Amazon SES will include headers in notifications,
and a value of false
specifies that Amazon SES will not include headers in notifications.
This value can only be set when NotificationType
is already set to use a particular Amazon SNS
topic.
true
specifies that Amazon SES will include headers in
notifications, and a value of false
specifies that Amazon SES will not include headers in
notifications.
This value can only be set when NotificationType
is already set to use a particular Amazon
SNS topic.
public SetIdentityHeadersInNotificationsEnabledRequest.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<SetIdentityHeadersInNotificationsEnabledRequest.Builder,SetIdentityHeadersInNotificationsEnabledRequest>
toBuilder
in class SESRequest
public static SetIdentityHeadersInNotificationsEnabledRequest.Builder builder()
public static Class<? extends SetIdentityHeadersInNotificationsEnabledRequest.Builder> serializableBuilderClass()
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
SdkRequest
SdkRequest
. The field name
specified should match the member name from the corresponding service-2.json model specified in the
codegen-resources folder for a given service. The class specifies what class to cast the returned value to.
If the returned value is also a modeled class, the SdkRequest.getValueForField(String, Class)
method will
again be available.getValueForField
in class SdkRequest
fieldName
- The name of the member to be retrieved.clazz
- The class to cast the returned object to.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.