/** * 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 DKIM signing of email that you send from an * email identity.

See Also:

AWS * API Reference

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

The email identity.

*/ inline const Aws::String& GetEmailIdentity() const{ return m_emailIdentity; } /** *

The email identity.

*/ inline bool EmailIdentityHasBeenSet() const { return m_emailIdentityHasBeenSet; } /** *

The email identity.

*/ inline void SetEmailIdentity(const Aws::String& value) { m_emailIdentityHasBeenSet = true; m_emailIdentity = value; } /** *

The email identity.

*/ inline void SetEmailIdentity(Aws::String&& value) { m_emailIdentityHasBeenSet = true; m_emailIdentity = std::move(value); } /** *

The email identity.

*/ inline void SetEmailIdentity(const char* value) { m_emailIdentityHasBeenSet = true; m_emailIdentity.assign(value); } /** *

The email identity.

*/ inline PutEmailIdentityDkimAttributesRequest& WithEmailIdentity(const Aws::String& value) { SetEmailIdentity(value); return *this;} /** *

The email identity.

*/ inline PutEmailIdentityDkimAttributesRequest& WithEmailIdentity(Aws::String&& value) { SetEmailIdentity(std::move(value)); return *this;} /** *

The email identity.

*/ inline PutEmailIdentityDkimAttributesRequest& WithEmailIdentity(const char* value) { SetEmailIdentity(value); return *this;} /** *

Sets the DKIM signing configuration for the identity.

When you set * this value true, then the messages that are sent from the identity * are signed using DKIM. If you set this value to false, your * messages are sent without DKIM signing.

*/ inline bool GetSigningEnabled() const{ return m_signingEnabled; } /** *

Sets the DKIM signing configuration for the identity.

When you set * this value true, then the messages that are sent from the identity * are signed using DKIM. If you set this value to false, your * messages are sent without DKIM signing.

*/ inline bool SigningEnabledHasBeenSet() const { return m_signingEnabledHasBeenSet; } /** *

Sets the DKIM signing configuration for the identity.

When you set * this value true, then the messages that are sent from the identity * are signed using DKIM. If you set this value to false, your * messages are sent without DKIM signing.

*/ inline void SetSigningEnabled(bool value) { m_signingEnabledHasBeenSet = true; m_signingEnabled = value; } /** *

Sets the DKIM signing configuration for the identity.

When you set * this value true, then the messages that are sent from the identity * are signed using DKIM. If you set this value to false, your * messages are sent without DKIM signing.

*/ inline PutEmailIdentityDkimAttributesRequest& WithSigningEnabled(bool value) { SetSigningEnabled(value); return *this;} private: Aws::String m_emailIdentity; bool m_emailIdentityHasBeenSet = false; bool m_signingEnabled; bool m_signingEnabledHasBeenSet = false; }; } // namespace Model } // namespace SESV2 } // namespace Aws