/** * 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 #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace PinpointEmail { namespace Model { /** *

Details about an email identity.

See Also:

AWS * API Reference

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

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 GetEmailIdentityResult& WithIdentityType(const IdentityType& value) { SetIdentityType(value); return *this;} /** *

The email identity type.

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

The feedback forwarding configuration for the identity.

If the value * is true, Amazon Pinpoint sends you email notifications when bounce * or complaint events occur. Amazon Pinpoint sends this notification to the * address that you specified in the Return-Path header of the original email.

*

When you set this value to false, Amazon Pinpoint sends * notifications through other mechanisms, such as by notifying an Amazon SNS topic * or another event destination. You're required to have a method of tracking * bounces and complaints. If you haven't set up another mechanism for receiving * bounce or complaint notifications, Amazon Pinpoint sends an email notification * when these events occur (even if this setting is disabled).

*/ inline bool GetFeedbackForwardingStatus() const{ return m_feedbackForwardingStatus; } /** *

The feedback forwarding configuration for the identity.

If the value * is true, Amazon Pinpoint sends you email notifications when bounce * or complaint events occur. Amazon Pinpoint sends this notification to the * address that you specified in the Return-Path header of the original email.

*

When you set this value to false, Amazon Pinpoint sends * notifications through other mechanisms, such as by notifying an Amazon SNS topic * or another event destination. You're required to have a method of tracking * bounces and complaints. If you haven't set up another mechanism for receiving * bounce or complaint notifications, Amazon Pinpoint sends an email notification * when these events occur (even if this setting is disabled).

*/ inline void SetFeedbackForwardingStatus(bool value) { m_feedbackForwardingStatus = value; } /** *

The feedback forwarding configuration for the identity.

If the value * is true, Amazon Pinpoint sends you email notifications when bounce * or complaint events occur. Amazon Pinpoint sends this notification to the * address that you specified in the Return-Path header of the original email.

*

When you set this value to false, Amazon Pinpoint sends * notifications through other mechanisms, such as by notifying an Amazon SNS topic * or another event destination. You're required to have a method of tracking * bounces and complaints. If you haven't set up another mechanism for receiving * bounce or complaint notifications, Amazon Pinpoint sends an email notification * when these events occur (even if this setting is disabled).

*/ inline GetEmailIdentityResult& WithFeedbackForwardingStatus(bool value) { SetFeedbackForwardingStatus(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 GetEmailIdentityResult& 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 GetEmailIdentityResult& 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 GetEmailIdentityResult& WithDkimAttributes(DkimAttributes&& value) { SetDkimAttributes(std::move(value)); return *this;} /** *

An object that contains information about the Mail-From attributes for the * email identity.

*/ inline const MailFromAttributes& GetMailFromAttributes() const{ return m_mailFromAttributes; } /** *

An object that contains information about the Mail-From attributes for the * email identity.

*/ inline void SetMailFromAttributes(const MailFromAttributes& value) { m_mailFromAttributes = value; } /** *

An object that contains information about the Mail-From attributes for the * email identity.

*/ inline void SetMailFromAttributes(MailFromAttributes&& value) { m_mailFromAttributes = std::move(value); } /** *

An object that contains information about the Mail-From attributes for the * email identity.

*/ inline GetEmailIdentityResult& WithMailFromAttributes(const MailFromAttributes& value) { SetMailFromAttributes(value); return *this;} /** *

An object that contains information about the Mail-From attributes for the * email identity.

*/ inline GetEmailIdentityResult& WithMailFromAttributes(MailFromAttributes&& value) { SetMailFromAttributes(std::move(value)); return *this;} /** *

An array of objects that define the tags (keys and values) that are * associated 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 are * associated with the email identity.

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

An array of objects that define the tags (keys and values) that are * associated with the email identity.

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

An array of objects that define the tags (keys and values) that are * associated with the email identity.

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

An array of objects that define the tags (keys and values) that are * associated with the email identity.

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

An array of objects that define the tags (keys and values) that are * associated with the email identity.

*/ inline GetEmailIdentityResult& AddTags(const Tag& value) { m_tags.push_back(value); return *this; } /** *

An array of objects that define the tags (keys and values) that are * associated with the email identity.

*/ inline GetEmailIdentityResult& AddTags(Tag&& value) { m_tags.push_back(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 GetEmailIdentityResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline GetEmailIdentityResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline GetEmailIdentityResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: IdentityType m_identityType; bool m_feedbackForwardingStatus; bool m_verifiedForSendingStatus; DkimAttributes m_dkimAttributes; MailFromAttributes m_mailFromAttributes; Aws::Vector m_tags; Aws::String m_requestId; }; } // namespace Model } // namespace PinpointEmail } // namespace Aws