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

A request to change the ability of your account to send email.

See * Also:

AWS * API Reference

*/ class PutAccountSendingAttributesRequest : public PinpointEmailRequest { public: AWS_PINPOINTEMAIL_API PutAccountSendingAttributesRequest(); // 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 "PutAccountSendingAttributes"; } AWS_PINPOINTEMAIL_API Aws::String SerializePayload() const override; /** *

Enables or disables your account's ability to send email. Set to * true to enable email sending, or set to false to * disable email sending.

If AWS paused your account's ability to * send email, you can't use this operation to resume your account's ability to * send email.

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

Enables or disables your account's ability to send email. Set to * true to enable email sending, or set to false to * disable email sending.

If AWS paused your account's ability to * send email, you can't use this operation to resume your account's ability to * send email.

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

Enables or disables your account's ability to send email. Set to * true to enable email sending, or set to false to * disable email sending.

If AWS paused your account's ability to * send email, you can't use this operation to resume your account's ability to * send email.

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

Enables or disables your account's ability to send email. Set to * true to enable email sending, or set to false to * disable email sending.

If AWS paused your account's ability to * send email, you can't use this operation to resume your account's ability to * send email.

*/ inline PutAccountSendingAttributesRequest& WithSendingEnabled(bool value) { SetSendingEnabled(value); return *this;} private: bool m_sendingEnabled; bool m_sendingEnabledHasBeenSet = false; }; } // namespace Model } // namespace PinpointEmail } // namespace Aws