/** * 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 Amazon SES Easy DKIM signing for an * identity. For more information about setting up Easy DKIM, see the Amazon * SES Developer Guide.

See Also:

AWS * API Reference

*/ class AWS_SES_API SetIdentityDkimEnabledRequest : public SESRequest { public: SetIdentityDkimEnabledRequest(); // 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 "SetIdentityDkimEnabled"; } Aws::String SerializePayload() const override; protected: void DumpBodyToUrl(Aws::Http::URI& uri ) const override; public: /** *

The identity for which DKIM signing should be enabled or disabled.

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

The identity for which DKIM signing should be enabled or disabled.

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

The identity for which DKIM signing should be enabled or disabled.

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

The identity for which DKIM signing should be enabled or disabled.

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

The identity for which DKIM signing should be enabled or disabled.

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

The identity for which DKIM signing should be enabled or disabled.

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

The identity for which DKIM signing should be enabled or disabled.

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

The identity for which DKIM signing should be enabled or disabled.

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

Sets whether DKIM signing is enabled for an identity. Set to * true to enable DKIM signing for this identity; false * to disable it.

*/ inline bool GetDkimEnabled() const{ return m_dkimEnabled; } /** *

Sets whether DKIM signing is enabled for an identity. Set to * true to enable DKIM signing for this identity; false * to disable it.

*/ inline bool DkimEnabledHasBeenSet() const { return m_dkimEnabledHasBeenSet; } /** *

Sets whether DKIM signing is enabled for an identity. Set to * true to enable DKIM signing for this identity; false * to disable it.

*/ inline void SetDkimEnabled(bool value) { m_dkimEnabledHasBeenSet = true; m_dkimEnabled = value; } /** *

Sets whether DKIM signing is enabled for an identity. Set to * true to enable DKIM signing for this identity; false * to disable it.

*/ inline SetIdentityDkimEnabledRequest& WithDkimEnabled(bool value) { SetDkimEnabled(value); return *this;} private: Aws::String m_identity; bool m_identityHasBeenSet; bool m_dkimEnabled; bool m_dkimEnabledHasBeenSet; }; } // namespace Model } // namespace SES } // namespace Aws