/** * 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 SESV2 { namespace Model { /** *

A request to enable or disable the ability of Amazon SES to send emails that * use a specific configuration set.

See Also:

AWS * API Reference

*/ class PutConfigurationSetSendingOptionsRequest : public SESV2Request { public: AWS_SESV2_API PutConfigurationSetSendingOptionsRequest(); // 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 "PutConfigurationSetSendingOptions"; } AWS_SESV2_API Aws::String SerializePayload() const override; /** *

The name of the configuration set to enable or disable email sending for.

*/ inline const Aws::String& GetConfigurationSetName() const{ return m_configurationSetName; } /** *

The name of the configuration set to enable or disable email sending for.

*/ inline bool ConfigurationSetNameHasBeenSet() const { return m_configurationSetNameHasBeenSet; } /** *

The name of the configuration set to enable or disable email sending for.

*/ inline void SetConfigurationSetName(const Aws::String& value) { m_configurationSetNameHasBeenSet = true; m_configurationSetName = value; } /** *

The name of the configuration set to enable or disable email sending for.

*/ inline void SetConfigurationSetName(Aws::String&& value) { m_configurationSetNameHasBeenSet = true; m_configurationSetName = std::move(value); } /** *

The name of the configuration set to enable or disable email sending for.

*/ inline void SetConfigurationSetName(const char* value) { m_configurationSetNameHasBeenSet = true; m_configurationSetName.assign(value); } /** *

The name of the configuration set to enable or disable email sending for.

*/ inline PutConfigurationSetSendingOptionsRequest& WithConfigurationSetName(const Aws::String& value) { SetConfigurationSetName(value); return *this;} /** *

The name of the configuration set to enable or disable email sending for.

*/ inline PutConfigurationSetSendingOptionsRequest& WithConfigurationSetName(Aws::String&& value) { SetConfigurationSetName(std::move(value)); return *this;} /** *

The name of the configuration set to enable or disable email sending for.

*/ inline PutConfigurationSetSendingOptionsRequest& WithConfigurationSetName(const char* value) { SetConfigurationSetName(value); return *this;} /** *

If true, email sending is enabled for the configuration set. If * false, email sending is disabled for the configuration set.

*/ inline bool GetSendingEnabled() const{ return m_sendingEnabled; } /** *

If true, email sending is enabled for the configuration set. If * false, email sending is disabled for the configuration set.

*/ inline bool SendingEnabledHasBeenSet() const { return m_sendingEnabledHasBeenSet; } /** *

If true, email sending is enabled for the configuration set. If * false, email sending is disabled for the configuration set.

*/ inline void SetSendingEnabled(bool value) { m_sendingEnabledHasBeenSet = true; m_sendingEnabled = value; } /** *

If true, email sending is enabled for the configuration set. If * false, email sending is disabled for the configuration set.

*/ inline PutConfigurationSetSendingOptionsRequest& WithSendingEnabled(bool value) { SetSendingEnabled(value); return *this;} private: Aws::String m_configurationSetName; bool m_configurationSetNameHasBeenSet = false; bool m_sendingEnabled; bool m_sendingEnabledHasBeenSet = false; }; } // namespace Model } // namespace SESV2 } // namespace Aws