322 lines
12 KiB
C++
322 lines
12 KiB
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#pragma once
|
|
#include <aws/sesv2/SESV2_EXPORTS.h>
|
|
#include <aws/sesv2/model/IdentityType.h>
|
|
#include <aws/sesv2/model/DkimAttributes.h>
|
|
#include <aws/sesv2/model/MailFromAttributes.h>
|
|
#include <aws/core/utils/memory/stl/AWSMap.h>
|
|
#include <aws/core/utils/memory/stl/AWSVector.h>
|
|
#include <aws/core/utils/memory/stl/AWSString.h>
|
|
#include <aws/sesv2/model/Tag.h>
|
|
#include <utility>
|
|
|
|
namespace Aws
|
|
{
|
|
template<typename RESULT_TYPE>
|
|
class AmazonWebServiceResult;
|
|
|
|
namespace Utils
|
|
{
|
|
namespace Json
|
|
{
|
|
class JsonValue;
|
|
} // namespace Json
|
|
} // namespace Utils
|
|
namespace SESV2
|
|
{
|
|
namespace Model
|
|
{
|
|
/**
|
|
* <p>Details about an email identity.</p><p><h3>See Also:</h3> <a
|
|
* href="http://docs.aws.amazon.com/goto/WebAPI/sesv2-2019-09-27/GetEmailIdentityResponse">AWS
|
|
* API Reference</a></p>
|
|
*/
|
|
class AWS_SESV2_API GetEmailIdentityResult
|
|
{
|
|
public:
|
|
GetEmailIdentityResult();
|
|
GetEmailIdentityResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
|
|
GetEmailIdentityResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
|
|
|
|
|
|
/**
|
|
* <p>The email identity type.</p>
|
|
*/
|
|
inline const IdentityType& GetIdentityType() const{ return m_identityType; }
|
|
|
|
/**
|
|
* <p>The email identity type.</p>
|
|
*/
|
|
inline void SetIdentityType(const IdentityType& value) { m_identityType = value; }
|
|
|
|
/**
|
|
* <p>The email identity type.</p>
|
|
*/
|
|
inline void SetIdentityType(IdentityType&& value) { m_identityType = std::move(value); }
|
|
|
|
/**
|
|
* <p>The email identity type.</p>
|
|
*/
|
|
inline GetEmailIdentityResult& WithIdentityType(const IdentityType& value) { SetIdentityType(value); return *this;}
|
|
|
|
/**
|
|
* <p>The email identity type.</p>
|
|
*/
|
|
inline GetEmailIdentityResult& WithIdentityType(IdentityType&& value) { SetIdentityType(std::move(value)); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>The feedback forwarding configuration for the identity.</p> <p>If the value
|
|
* is <code>true</code>, you receive email notifications when bounce or complaint
|
|
* events occur. These notifications are sent to the address that you specified in
|
|
* the <code>Return-Path</code> header of the original email.</p> <p>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).</p>
|
|
*/
|
|
inline bool GetFeedbackForwardingStatus() const{ return m_feedbackForwardingStatus; }
|
|
|
|
/**
|
|
* <p>The feedback forwarding configuration for the identity.</p> <p>If the value
|
|
* is <code>true</code>, you receive email notifications when bounce or complaint
|
|
* events occur. These notifications are sent to the address that you specified in
|
|
* the <code>Return-Path</code> header of the original email.</p> <p>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).</p>
|
|
*/
|
|
inline void SetFeedbackForwardingStatus(bool value) { m_feedbackForwardingStatus = value; }
|
|
|
|
/**
|
|
* <p>The feedback forwarding configuration for the identity.</p> <p>If the value
|
|
* is <code>true</code>, you receive email notifications when bounce or complaint
|
|
* events occur. These notifications are sent to the address that you specified in
|
|
* the <code>Return-Path</code> header of the original email.</p> <p>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).</p>
|
|
*/
|
|
inline GetEmailIdentityResult& WithFeedbackForwardingStatus(bool value) { SetFeedbackForwardingStatus(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>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 <a
|
|
* href="https://docs.aws.amazon.com/pinpoint/latest/userguide/channels-email-manage-verify.html">Amazon
|
|
* Pinpoint User Guide</a>.</p>
|
|
*/
|
|
inline bool GetVerifiedForSendingStatus() const{ return m_verifiedForSendingStatus; }
|
|
|
|
/**
|
|
* <p>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 <a
|
|
* href="https://docs.aws.amazon.com/pinpoint/latest/userguide/channels-email-manage-verify.html">Amazon
|
|
* Pinpoint User Guide</a>.</p>
|
|
*/
|
|
inline void SetVerifiedForSendingStatus(bool value) { m_verifiedForSendingStatus = value; }
|
|
|
|
/**
|
|
* <p>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 <a
|
|
* href="https://docs.aws.amazon.com/pinpoint/latest/userguide/channels-email-manage-verify.html">Amazon
|
|
* Pinpoint User Guide</a>.</p>
|
|
*/
|
|
inline GetEmailIdentityResult& WithVerifiedForSendingStatus(bool value) { SetVerifiedForSendingStatus(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>An object that contains information about the DKIM attributes for the
|
|
* identity.</p>
|
|
*/
|
|
inline const DkimAttributes& GetDkimAttributes() const{ return m_dkimAttributes; }
|
|
|
|
/**
|
|
* <p>An object that contains information about the DKIM attributes for the
|
|
* identity.</p>
|
|
*/
|
|
inline void SetDkimAttributes(const DkimAttributes& value) { m_dkimAttributes = value; }
|
|
|
|
/**
|
|
* <p>An object that contains information about the DKIM attributes for the
|
|
* identity.</p>
|
|
*/
|
|
inline void SetDkimAttributes(DkimAttributes&& value) { m_dkimAttributes = std::move(value); }
|
|
|
|
/**
|
|
* <p>An object that contains information about the DKIM attributes for the
|
|
* identity.</p>
|
|
*/
|
|
inline GetEmailIdentityResult& WithDkimAttributes(const DkimAttributes& value) { SetDkimAttributes(value); return *this;}
|
|
|
|
/**
|
|
* <p>An object that contains information about the DKIM attributes for the
|
|
* identity.</p>
|
|
*/
|
|
inline GetEmailIdentityResult& WithDkimAttributes(DkimAttributes&& value) { SetDkimAttributes(std::move(value)); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>An object that contains information about the Mail-From attributes for the
|
|
* email identity.</p>
|
|
*/
|
|
inline const MailFromAttributes& GetMailFromAttributes() const{ return m_mailFromAttributes; }
|
|
|
|
/**
|
|
* <p>An object that contains information about the Mail-From attributes for the
|
|
* email identity.</p>
|
|
*/
|
|
inline void SetMailFromAttributes(const MailFromAttributes& value) { m_mailFromAttributes = value; }
|
|
|
|
/**
|
|
* <p>An object that contains information about the Mail-From attributes for the
|
|
* email identity.</p>
|
|
*/
|
|
inline void SetMailFromAttributes(MailFromAttributes&& value) { m_mailFromAttributes = std::move(value); }
|
|
|
|
/**
|
|
* <p>An object that contains information about the Mail-From attributes for the
|
|
* email identity.</p>
|
|
*/
|
|
inline GetEmailIdentityResult& WithMailFromAttributes(const MailFromAttributes& value) { SetMailFromAttributes(value); return *this;}
|
|
|
|
/**
|
|
* <p>An object that contains information about the Mail-From attributes for the
|
|
* email identity.</p>
|
|
*/
|
|
inline GetEmailIdentityResult& WithMailFromAttributes(MailFromAttributes&& value) { SetMailFromAttributes(std::move(value)); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>A map of policy names to policies.</p>
|
|
*/
|
|
inline const Aws::Map<Aws::String, Aws::String>& GetPolicies() const{ return m_policies; }
|
|
|
|
/**
|
|
* <p>A map of policy names to policies.</p>
|
|
*/
|
|
inline void SetPolicies(const Aws::Map<Aws::String, Aws::String>& value) { m_policies = value; }
|
|
|
|
/**
|
|
* <p>A map of policy names to policies.</p>
|
|
*/
|
|
inline void SetPolicies(Aws::Map<Aws::String, Aws::String>&& value) { m_policies = std::move(value); }
|
|
|
|
/**
|
|
* <p>A map of policy names to policies.</p>
|
|
*/
|
|
inline GetEmailIdentityResult& WithPolicies(const Aws::Map<Aws::String, Aws::String>& value) { SetPolicies(value); return *this;}
|
|
|
|
/**
|
|
* <p>A map of policy names to policies.</p>
|
|
*/
|
|
inline GetEmailIdentityResult& WithPolicies(Aws::Map<Aws::String, Aws::String>&& value) { SetPolicies(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>A map of policy names to policies.</p>
|
|
*/
|
|
inline GetEmailIdentityResult& AddPolicies(const Aws::String& key, const Aws::String& value) { m_policies.emplace(key, value); return *this; }
|
|
|
|
/**
|
|
* <p>A map of policy names to policies.</p>
|
|
*/
|
|
inline GetEmailIdentityResult& AddPolicies(Aws::String&& key, const Aws::String& value) { m_policies.emplace(std::move(key), value); return *this; }
|
|
|
|
/**
|
|
* <p>A map of policy names to policies.</p>
|
|
*/
|
|
inline GetEmailIdentityResult& AddPolicies(const Aws::String& key, Aws::String&& value) { m_policies.emplace(key, std::move(value)); return *this; }
|
|
|
|
/**
|
|
* <p>A map of policy names to policies.</p>
|
|
*/
|
|
inline GetEmailIdentityResult& AddPolicies(Aws::String&& key, Aws::String&& value) { m_policies.emplace(std::move(key), std::move(value)); return *this; }
|
|
|
|
/**
|
|
* <p>A map of policy names to policies.</p>
|
|
*/
|
|
inline GetEmailIdentityResult& AddPolicies(const char* key, Aws::String&& value) { m_policies.emplace(key, std::move(value)); return *this; }
|
|
|
|
/**
|
|
* <p>A map of policy names to policies.</p>
|
|
*/
|
|
inline GetEmailIdentityResult& AddPolicies(Aws::String&& key, const char* value) { m_policies.emplace(std::move(key), value); return *this; }
|
|
|
|
/**
|
|
* <p>A map of policy names to policies.</p>
|
|
*/
|
|
inline GetEmailIdentityResult& AddPolicies(const char* key, const char* value) { m_policies.emplace(key, value); return *this; }
|
|
|
|
|
|
/**
|
|
* <p>An array of objects that define the tags (keys and values) that are
|
|
* associated with the email identity.</p>
|
|
*/
|
|
inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
|
|
|
|
/**
|
|
* <p>An array of objects that define the tags (keys and values) that are
|
|
* associated with the email identity.</p>
|
|
*/
|
|
inline void SetTags(const Aws::Vector<Tag>& value) { m_tags = value; }
|
|
|
|
/**
|
|
* <p>An array of objects that define the tags (keys and values) that are
|
|
* associated with the email identity.</p>
|
|
*/
|
|
inline void SetTags(Aws::Vector<Tag>&& value) { m_tags = std::move(value); }
|
|
|
|
/**
|
|
* <p>An array of objects that define the tags (keys and values) that are
|
|
* associated with the email identity.</p>
|
|
*/
|
|
inline GetEmailIdentityResult& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
|
|
|
|
/**
|
|
* <p>An array of objects that define the tags (keys and values) that are
|
|
* associated with the email identity.</p>
|
|
*/
|
|
inline GetEmailIdentityResult& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>An array of objects that define the tags (keys and values) that are
|
|
* associated with the email identity.</p>
|
|
*/
|
|
inline GetEmailIdentityResult& AddTags(const Tag& value) { m_tags.push_back(value); return *this; }
|
|
|
|
/**
|
|
* <p>An array of objects that define the tags (keys and values) that are
|
|
* associated with the email identity.</p>
|
|
*/
|
|
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<Aws::String, Aws::String> m_policies;
|
|
|
|
Aws::Vector<Tag> m_tags;
|
|
};
|
|
|
|
} // namespace Model
|
|
} // namespace SESV2
|
|
} // namespace Aws
|