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

Represents a request to enable or disable whether Amazon SES forwards you * bounce and complaint notifications through email. For information about email * feedback forwarding, see the Amazon * SES Developer Guide.

See Also:

AWS * API Reference

*/ class SetIdentityFeedbackForwardingEnabledRequest : public SESRequest { public: AWS_SES_API SetIdentityFeedbackForwardingEnabledRequest(); // 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 "SetIdentityFeedbackForwardingEnabled"; } 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 set bounce and complaint notification forwarding. * Examples: user@example.com, example.com.

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

The identity for which to set bounce and complaint notification forwarding. * Examples: user@example.com, example.com.

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

The identity for which to set bounce and complaint notification forwarding. * Examples: user@example.com, example.com.

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

The identity for which to set bounce and complaint notification forwarding. * 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 set bounce and complaint notification forwarding. * Examples: user@example.com, example.com.

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

The identity for which to set bounce and complaint notification forwarding. * Examples: user@example.com, example.com.

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

The identity for which to set bounce and complaint notification forwarding. * Examples: user@example.com, example.com.

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

The identity for which to set bounce and complaint notification forwarding. * Examples: user@example.com, example.com.

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

Sets whether Amazon SES will forward bounce and complaint notifications as * email. true specifies that Amazon SES will forward bounce and * complaint notifications as email, in addition to any Amazon SNS topic publishing * otherwise specified. false specifies that Amazon SES will publish * bounce and complaint notifications only through Amazon SNS. This value can only * be set to false when Amazon SNS topics are set for both * Bounce and Complaint notification types.

*/ inline bool GetForwardingEnabled() const{ return m_forwardingEnabled; } /** *

Sets whether Amazon SES will forward bounce and complaint notifications as * email. true specifies that Amazon SES will forward bounce and * complaint notifications as email, in addition to any Amazon SNS topic publishing * otherwise specified. false specifies that Amazon SES will publish * bounce and complaint notifications only through Amazon SNS. This value can only * be set to false when Amazon SNS topics are set for both * Bounce and Complaint notification types.

*/ inline bool ForwardingEnabledHasBeenSet() const { return m_forwardingEnabledHasBeenSet; } /** *

Sets whether Amazon SES will forward bounce and complaint notifications as * email. true specifies that Amazon SES will forward bounce and * complaint notifications as email, in addition to any Amazon SNS topic publishing * otherwise specified. false specifies that Amazon SES will publish * bounce and complaint notifications only through Amazon SNS. This value can only * be set to false when Amazon SNS topics are set for both * Bounce and Complaint notification types.

*/ inline void SetForwardingEnabled(bool value) { m_forwardingEnabledHasBeenSet = true; m_forwardingEnabled = value; } /** *

Sets whether Amazon SES will forward bounce and complaint notifications as * email. true specifies that Amazon SES will forward bounce and * complaint notifications as email, in addition to any Amazon SNS topic publishing * otherwise specified. false specifies that Amazon SES will publish * bounce and complaint notifications only through Amazon SNS. This value can only * be set to false when Amazon SNS topics are set for both * Bounce and Complaint notification types.

*/ inline SetIdentityFeedbackForwardingEnabledRequest& WithForwardingEnabled(bool value) { SetForwardingEnabled(value); return *this;} private: Aws::String m_identity; bool m_identityHasBeenSet = false; bool m_forwardingEnabled; bool m_forwardingEnabledHasBeenSet = false; }; } // namespace Model } // namespace SES } // namespace Aws