/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace SES { namespace Model { /** *

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.

See Also:

AWS * API Reference

*/ class SetIdentityHeadersInNotificationsEnabledRequest : public SESRequest { public: AWS_SES_API SetIdentityHeadersInNotificationsEnabledRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "SetIdentityHeadersInNotificationsEnabled"; } AWS_SES_API Aws::String SerializePayload() const override; protected: AWS_SES_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override; public: /** *

The identity for which to enable or disable headers in notifications. * Examples: user@example.com, example.com.

*/ inline const Aws::String& GetIdentity() const{ return m_identity; } /** *

The identity for which to enable or disable headers in notifications. * Examples: user@example.com, example.com.

*/ inline bool IdentityHasBeenSet() const { return m_identityHasBeenSet; } /** *

The identity for which to enable or disable headers in notifications. * Examples: user@example.com, example.com.

*/ inline void SetIdentity(const Aws::String& value) { m_identityHasBeenSet = true; m_identity = value; } /** *

The identity for which to enable or disable headers in notifications. * Examples: user@example.com, example.com.

*/ inline void SetIdentity(Aws::String&& value) { m_identityHasBeenSet = true; m_identity = std::move(value); } /** *

The identity for which to enable or disable headers in notifications. * Examples: user@example.com, example.com.

*/ inline void SetIdentity(const char* value) { m_identityHasBeenSet = true; m_identity.assign(value); } /** *

The identity for which to enable or disable headers in notifications. * Examples: user@example.com, example.com.

*/ inline SetIdentityHeadersInNotificationsEnabledRequest& WithIdentity(const Aws::String& value) { SetIdentity(value); return *this;} /** *

The identity for which to enable or disable headers in notifications. * Examples: user@example.com, example.com.

*/ inline SetIdentityHeadersInNotificationsEnabledRequest& WithIdentity(Aws::String&& value) { SetIdentity(std::move(value)); return *this;} /** *

The identity for which to enable or disable headers in notifications. * Examples: user@example.com, example.com.

*/ inline SetIdentityHeadersInNotificationsEnabledRequest& WithIdentity(const char* value) { SetIdentity(value); return *this;} /** *

The notification type for which to enable or disable headers in * notifications.

*/ inline const NotificationType& GetNotificationType() const{ return m_notificationType; } /** *

The notification type for which to enable or disable headers in * notifications.

*/ inline bool NotificationTypeHasBeenSet() const { return m_notificationTypeHasBeenSet; } /** *

The notification type for which to enable or disable headers in * notifications.

*/ inline void SetNotificationType(const NotificationType& value) { m_notificationTypeHasBeenSet = true; m_notificationType = value; } /** *

The notification type for which to enable or disable headers in * notifications.

*/ inline void SetNotificationType(NotificationType&& value) { m_notificationTypeHasBeenSet = true; m_notificationType = std::move(value); } /** *

The notification type for which to enable or disable headers in * notifications.

*/ inline SetIdentityHeadersInNotificationsEnabledRequest& WithNotificationType(const NotificationType& value) { SetNotificationType(value); return *this;} /** *

The notification type for which to enable or disable headers in * notifications.

*/ inline SetIdentityHeadersInNotificationsEnabledRequest& WithNotificationType(NotificationType&& value) { SetNotificationType(std::move(value)); return *this;} /** *

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.

*/ inline bool GetEnabled() const{ return m_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.

*/ inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; } /** *

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.

*/ inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; } /** *

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.

*/ inline SetIdentityHeadersInNotificationsEnabledRequest& WithEnabled(bool value) { SetEnabled(value); return *this;} private: Aws::String m_identity; bool m_identityHasBeenSet = false; NotificationType m_notificationType; bool m_notificationTypeHasBeenSet = false; bool m_enabled; bool m_enabledHasBeenSet = false; }; } // namespace Model } // namespace SES } // namespace Aws