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

A request to begin the verification process for an email identity (an email * address or domain).

See Also:

AWS * API Reference

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

The email address or domain that you want to verify.

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

The email address or domain that you want to verify.

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

The email address or domain that you want to verify.

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

The email address or domain that you want to verify.

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

The email address or domain that you want to verify.

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

The email address or domain that you want to verify.

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

The email address or domain that you want to verify.

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

The email address or domain that you want to verify.

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

An array of objects that define the tags (keys and values) that you want to * associate with the email identity.

*/ inline const Aws::Vector& GetTags() const{ return m_tags; } /** *

An array of objects that define the tags (keys and values) that you want to * associate with the email identity.

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

An array of objects that define the tags (keys and values) that you want to * associate with the email identity.

*/ inline void SetTags(const Aws::Vector& value) { m_tagsHasBeenSet = true; m_tags = value; } /** *

An array of objects that define the tags (keys and values) that you want to * associate with the email identity.

*/ inline void SetTags(Aws::Vector&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** *

An array of objects that define the tags (keys and values) that you want to * associate with the email identity.

*/ inline CreateEmailIdentityRequest& WithTags(const Aws::Vector& value) { SetTags(value); return *this;} /** *

An array of objects that define the tags (keys and values) that you want to * associate with the email identity.

*/ inline CreateEmailIdentityRequest& WithTags(Aws::Vector&& value) { SetTags(std::move(value)); return *this;} /** *

An array of objects that define the tags (keys and values) that you want to * associate with the email identity.

*/ inline CreateEmailIdentityRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } /** *

An array of objects that define the tags (keys and values) that you want to * associate with the email identity.

*/ inline CreateEmailIdentityRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } /** *

If your request includes this object, Amazon SES configures the identity to * use Bring Your Own DKIM (BYODKIM) for DKIM authentication purposes, as opposed * to the default method, Easy * DKIM.

You can only specify this object if the email identity is a * domain, as opposed to an address.

*/ inline const DkimSigningAttributes& GetDkimSigningAttributes() const{ return m_dkimSigningAttributes; } /** *

If your request includes this object, Amazon SES configures the identity to * use Bring Your Own DKIM (BYODKIM) for DKIM authentication purposes, as opposed * to the default method, Easy * DKIM.

You can only specify this object if the email identity is a * domain, as opposed to an address.

*/ inline bool DkimSigningAttributesHasBeenSet() const { return m_dkimSigningAttributesHasBeenSet; } /** *

If your request includes this object, Amazon SES configures the identity to * use Bring Your Own DKIM (BYODKIM) for DKIM authentication purposes, as opposed * to the default method, Easy * DKIM.

You can only specify this object if the email identity is a * domain, as opposed to an address.

*/ inline void SetDkimSigningAttributes(const DkimSigningAttributes& value) { m_dkimSigningAttributesHasBeenSet = true; m_dkimSigningAttributes = value; } /** *

If your request includes this object, Amazon SES configures the identity to * use Bring Your Own DKIM (BYODKIM) for DKIM authentication purposes, as opposed * to the default method, Easy * DKIM.

You can only specify this object if the email identity is a * domain, as opposed to an address.

*/ inline void SetDkimSigningAttributes(DkimSigningAttributes&& value) { m_dkimSigningAttributesHasBeenSet = true; m_dkimSigningAttributes = std::move(value); } /** *

If your request includes this object, Amazon SES configures the identity to * use Bring Your Own DKIM (BYODKIM) for DKIM authentication purposes, as opposed * to the default method, Easy * DKIM.

You can only specify this object if the email identity is a * domain, as opposed to an address.

*/ inline CreateEmailIdentityRequest& WithDkimSigningAttributes(const DkimSigningAttributes& value) { SetDkimSigningAttributes(value); return *this;} /** *

If your request includes this object, Amazon SES configures the identity to * use Bring Your Own DKIM (BYODKIM) for DKIM authentication purposes, as opposed * to the default method, Easy * DKIM.

You can only specify this object if the email identity is a * domain, as opposed to an address.

*/ inline CreateEmailIdentityRequest& WithDkimSigningAttributes(DkimSigningAttributes&& value) { SetDkimSigningAttributes(std::move(value)); return *this;} private: Aws::String m_emailIdentity; bool m_emailIdentityHasBeenSet; Aws::Vector m_tags; bool m_tagsHasBeenSet; DkimSigningAttributes m_dkimSigningAttributes; bool m_dkimSigningAttributesHasBeenSet; }; } // namespace Model } // namespace SESV2 } // namespace Aws