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

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

See Also:

AWS * API Reference

*/ class CreateEmailIdentityRequest : public PinpointEmailRequest { public: AWS_PINPOINTEMAIL_API 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_PINPOINTEMAIL_API 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; } private: Aws::String m_emailIdentity; bool m_emailIdentityHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace PinpointEmail } // namespace Aws