/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include If the email identity is a domain, this object contains tokens that you can
* use to create a set of CNAME records. To sucessfully verify your domain, you
* have to add these records to the DNS configuration for your domain. If
* the email identity is an email address, this object is empty. See
* Also:
AWS
* API Reference
The email identity type.
*/ inline const IdentityType& GetIdentityType() const{ return m_identityType; } /** *The email identity type.
*/ inline void SetIdentityType(const IdentityType& value) { m_identityType = value; } /** *The email identity type.
*/ inline void SetIdentityType(IdentityType&& value) { m_identityType = std::move(value); } /** *The email identity type.
*/ inline CreateEmailIdentityResult& WithIdentityType(const IdentityType& value) { SetIdentityType(value); return *this;} /** *The email identity type.
*/ inline CreateEmailIdentityResult& WithIdentityType(IdentityType&& value) { SetIdentityType(std::move(value)); return *this;} /** *Specifies whether or not the identity is verified. In Amazon Pinpoint, you * can only send email from verified email addresses or domains. For more * information about verifying identities, see the Amazon * Pinpoint User Guide.
*/ inline bool GetVerifiedForSendingStatus() const{ return m_verifiedForSendingStatus; } /** *Specifies whether or not the identity is verified. In Amazon Pinpoint, you * can only send email from verified email addresses or domains. For more * information about verifying identities, see the Amazon * Pinpoint User Guide.
*/ inline void SetVerifiedForSendingStatus(bool value) { m_verifiedForSendingStatus = value; } /** *Specifies whether or not the identity is verified. In Amazon Pinpoint, you * can only send email from verified email addresses or domains. For more * information about verifying identities, see the Amazon * Pinpoint User Guide.
*/ inline CreateEmailIdentityResult& WithVerifiedForSendingStatus(bool value) { SetVerifiedForSendingStatus(value); return *this;} /** *An object that contains information about the DKIM attributes for the * identity. This object includes the tokens that you use to create the CNAME * records that are required to complete the DKIM verification process.
*/ inline const DkimAttributes& GetDkimAttributes() const{ return m_dkimAttributes; } /** *An object that contains information about the DKIM attributes for the * identity. This object includes the tokens that you use to create the CNAME * records that are required to complete the DKIM verification process.
*/ inline void SetDkimAttributes(const DkimAttributes& value) { m_dkimAttributes = value; } /** *An object that contains information about the DKIM attributes for the * identity. This object includes the tokens that you use to create the CNAME * records that are required to complete the DKIM verification process.
*/ inline void SetDkimAttributes(DkimAttributes&& value) { m_dkimAttributes = std::move(value); } /** *An object that contains information about the DKIM attributes for the * identity. This object includes the tokens that you use to create the CNAME * records that are required to complete the DKIM verification process.
*/ inline CreateEmailIdentityResult& WithDkimAttributes(const DkimAttributes& value) { SetDkimAttributes(value); return *this;} /** *An object that contains information about the DKIM attributes for the * identity. This object includes the tokens that you use to create the CNAME * records that are required to complete the DKIM verification process.
*/ inline CreateEmailIdentityResult& WithDkimAttributes(DkimAttributes&& value) { SetDkimAttributes(std::move(value)); return *this;} inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline CreateEmailIdentityResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline CreateEmailIdentityResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline CreateEmailIdentityResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: IdentityType m_identityType; bool m_verifiedForSendingStatus; DkimAttributes m_dkimAttributes; Aws::String m_requestId; }; } // namespace Model } // namespace PinpointEmail } // namespace Aws