/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Details about an email identity.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 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::MapA map of policy names to policies.
*/ inline void SetPolicies(const Aws::MapA map of policy names to policies.
*/ inline void SetPolicies(Aws::MapA map of policy names to policies.
*/ inline GetEmailIdentityResult& WithPolicies(const Aws::MapA map of policy names to policies.
*/ inline GetEmailIdentityResult& WithPolicies(Aws::MapA 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::VectorAn array of objects that define the tags (keys and values) that are * associated with the email identity.
*/ inline void SetTags(const Aws::VectorAn array of objects that define the tags (keys and values) that are * associated with the email identity.
*/ inline void SetTags(Aws::VectorAn array of objects that define the tags (keys and values) that are * associated with the email identity.
*/ inline GetEmailIdentityResult& WithTags(const Aws::VectorAn array of objects that define the tags (keys and values) that are * associated with the email identity.
*/ inline GetEmailIdentityResult& WithTags(Aws::VectorAn 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