/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace SESV2 { namespace Model { /** *

If the email identity is a domain, this object contains information about the * DKIM verification status for the domain.

If the email identity is an * email address, this object is empty.

See Also:

AWS * API Reference

*/ class CreateEmailIdentityResult { public: AWS_SESV2_API CreateEmailIdentityResult(); AWS_SESV2_API CreateEmailIdentityResult(const Aws::AmazonWebServiceResult& result); AWS_SESV2_API CreateEmailIdentityResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The email identity type. Note: the MANAGED_DOMAIN identity type * is not supported.

*/ inline const IdentityType& GetIdentityType() const{ return m_identityType; } /** *

The email identity type. Note: the MANAGED_DOMAIN identity type * is not supported.

*/ inline void SetIdentityType(const IdentityType& value) { m_identityType = value; } /** *

The email identity type. Note: the MANAGED_DOMAIN identity type * is not supported.

*/ inline void SetIdentityType(IdentityType&& value) { m_identityType = std::move(value); } /** *

The email identity type. Note: the MANAGED_DOMAIN identity type * is not supported.

*/ inline CreateEmailIdentityResult& WithIdentityType(const IdentityType& value) { SetIdentityType(value); return *this;} /** *

The email identity type. Note: the MANAGED_DOMAIN identity type * is not supported.

*/ inline CreateEmailIdentityResult& WithIdentityType(IdentityType&& value) { SetIdentityType(std::move(value)); return *this;} /** *

Specifies whether or not the identity is verified. 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. 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. 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.

*/ inline const DkimAttributes& GetDkimAttributes() const{ return m_dkimAttributes; } /** *

An object that contains information about the DKIM attributes for the * identity.

*/ inline void SetDkimAttributes(const DkimAttributes& value) { m_dkimAttributes = value; } /** *

An object that contains information about the DKIM attributes for the * identity.

*/ inline void SetDkimAttributes(DkimAttributes&& value) { m_dkimAttributes = std::move(value); } /** *

An object that contains information about the DKIM attributes for the * identity.

*/ inline CreateEmailIdentityResult& WithDkimAttributes(const DkimAttributes& value) { SetDkimAttributes(value); return *this;} /** *

An object that contains information about the DKIM attributes for the * identity.

*/ 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 SESV2 } // namespace Aws