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

Details about an email identity.

See Also:

AWS * API Reference

*/ class AWS_SESV2_API GetEmailIdentityResult { public: GetEmailIdentityResult(); GetEmailIdentityResult(const Aws::AmazonWebServiceResult& result); 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, you receive email notifications when bounce or complaint * events occur. These notifications are sent to the address that you specified in * the Return-Path header of the original email.

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 (for * example, by setting up an event destination), you receive 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, you receive email notifications when bounce or complaint * events occur. These notifications are sent to the address that you specified in * the Return-Path header of the original email.

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 (for * example, by setting up an event destination), you receive 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, you receive email notifications when bounce or complaint * events occur. These notifications are sent to the address that you specified in * the Return-Path header of the original email.

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 (for * example, by setting up an event destination), you receive 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. 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 GetEmailIdentityResult& 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 GetEmailIdentityResult& WithDkimAttributes(const DkimAttributes& value) { SetDkimAttributes(value); return *this;} /** *

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

*/ 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;} /** *

A map of policy names to policies.

*/ inline const Aws::Map& GetPolicies() const{ return m_policies; } /** *

A map of policy names to policies.

*/ inline void SetPolicies(const Aws::Map& value) { m_policies = value; } /** *

A map of policy names to policies.

*/ inline void SetPolicies(Aws::Map&& value) { m_policies = std::move(value); } /** *

A map of policy names to policies.

*/ inline GetEmailIdentityResult& WithPolicies(const Aws::Map& value) { SetPolicies(value); return *this;} /** *

A map of policy names to policies.

*/ inline GetEmailIdentityResult& WithPolicies(Aws::Map&& value) { SetPolicies(std::move(value)); return *this;} /** *

A map of policy names to policies.

*/ inline GetEmailIdentityResult& AddPolicies(const Aws::String& key, const Aws::String& value) { m_policies.emplace(key, value); return *this; } /** *

A map of policy names to policies.

*/ inline GetEmailIdentityResult& AddPolicies(Aws::String&& key, const Aws::String& value) { m_policies.emplace(std::move(key), value); return *this; } /** *

A map of policy names to policies.

*/ inline GetEmailIdentityResult& AddPolicies(const Aws::String& key, Aws::String&& value) { m_policies.emplace(key, std::move(value)); return *this; } /** *

A map of policy names to policies.

*/ inline GetEmailIdentityResult& AddPolicies(Aws::String&& key, Aws::String&& value) { m_policies.emplace(std::move(key), std::move(value)); return *this; } /** *

A map of policy names to policies.

*/ inline GetEmailIdentityResult& AddPolicies(const char* key, Aws::String&& value) { m_policies.emplace(key, std::move(value)); return *this; } /** *

A map of policy names to policies.

*/ inline GetEmailIdentityResult& AddPolicies(Aws::String&& key, const char* value) { m_policies.emplace(std::move(key), value); return *this; } /** *

A map of policy names to policies.

*/ inline GetEmailIdentityResult& AddPolicies(const char* key, const char* value) { m_policies.emplace(key, 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; } private: IdentityType m_identityType; bool m_feedbackForwardingStatus; bool m_verifiedForSendingStatus; DkimAttributes m_dkimAttributes; MailFromAttributes m_mailFromAttributes; Aws::Map m_policies; Aws::Vector m_tags; }; } // namespace Model } // namespace SESV2 } // namespace Aws