/** * 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 { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace PinpointEmail { namespace Model { /** *

An object that contains information about the DKIM configuration for an email * identity.

See Also:

AWS * API Reference

*/ class AWS_PINPOINTEMAIL_API DkimAttributes { public: DkimAttributes(); DkimAttributes(Aws::Utils::Json::JsonView jsonValue); DkimAttributes& operator=(Aws::Utils::Json::JsonView jsonValue); Aws::Utils::Json::JsonValue Jsonize() const; /** *

If the value is true, then the messages that Amazon Pinpoint * sends from the identity are DKIM-signed. If the value is false, * then the messages that Amazon Pinpoint sends from the identity aren't * DKIM-signed.

*/ inline bool GetSigningEnabled() const{ return m_signingEnabled; } /** *

If the value is true, then the messages that Amazon Pinpoint * sends from the identity are DKIM-signed. If the value is false, * then the messages that Amazon Pinpoint sends from the identity aren't * DKIM-signed.

*/ inline bool SigningEnabledHasBeenSet() const { return m_signingEnabledHasBeenSet; } /** *

If the value is true, then the messages that Amazon Pinpoint * sends from the identity are DKIM-signed. If the value is false, * then the messages that Amazon Pinpoint sends from the identity aren't * DKIM-signed.

*/ inline void SetSigningEnabled(bool value) { m_signingEnabledHasBeenSet = true; m_signingEnabled = value; } /** *

If the value is true, then the messages that Amazon Pinpoint * sends from the identity are DKIM-signed. If the value is false, * then the messages that Amazon Pinpoint sends from the identity aren't * DKIM-signed.

*/ inline DkimAttributes& WithSigningEnabled(bool value) { SetSigningEnabled(value); return *this;} /** *

Describes whether or not Amazon Pinpoint has successfully located the DKIM * records in the DNS records for the domain. The status can be one of the * following:

  • PENDING – Amazon Pinpoint hasn't yet * located the DKIM records in the DNS configuration for the domain, but will * continue to attempt to locate them.

  • SUCCESS – * Amazon Pinpoint located the DKIM records in the DNS configuration for the domain * and determined that they're correct. Amazon Pinpoint can now send DKIM-signed * email from the identity.

  • FAILED – Amazon * Pinpoint was unable to locate the DKIM records in the DNS settings for the * domain, and won't continue to search for them.

  • * TEMPORARY_FAILURE – A temporary issue occurred, which prevented * Amazon Pinpoint from determining the DKIM status for the domain.

  • *

    NOT_STARTED – Amazon Pinpoint hasn't yet started searching for * the DKIM records in the DKIM records for the domain.

*/ inline const DkimStatus& GetStatus() const{ return m_status; } /** *

Describes whether or not Amazon Pinpoint has successfully located the DKIM * records in the DNS records for the domain. The status can be one of the * following:

  • PENDING – Amazon Pinpoint hasn't yet * located the DKIM records in the DNS configuration for the domain, but will * continue to attempt to locate them.

  • SUCCESS – * Amazon Pinpoint located the DKIM records in the DNS configuration for the domain * and determined that they're correct. Amazon Pinpoint can now send DKIM-signed * email from the identity.

  • FAILED – Amazon * Pinpoint was unable to locate the DKIM records in the DNS settings for the * domain, and won't continue to search for them.

  • * TEMPORARY_FAILURE – A temporary issue occurred, which prevented * Amazon Pinpoint from determining the DKIM status for the domain.

  • *

    NOT_STARTED – Amazon Pinpoint hasn't yet started searching for * the DKIM records in the DKIM records for the domain.

*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *

Describes whether or not Amazon Pinpoint has successfully located the DKIM * records in the DNS records for the domain. The status can be one of the * following:

  • PENDING – Amazon Pinpoint hasn't yet * located the DKIM records in the DNS configuration for the domain, but will * continue to attempt to locate them.

  • SUCCESS – * Amazon Pinpoint located the DKIM records in the DNS configuration for the domain * and determined that they're correct. Amazon Pinpoint can now send DKIM-signed * email from the identity.

  • FAILED – Amazon * Pinpoint was unable to locate the DKIM records in the DNS settings for the * domain, and won't continue to search for them.

  • * TEMPORARY_FAILURE – A temporary issue occurred, which prevented * Amazon Pinpoint from determining the DKIM status for the domain.

  • *

    NOT_STARTED – Amazon Pinpoint hasn't yet started searching for * the DKIM records in the DKIM records for the domain.

*/ inline void SetStatus(const DkimStatus& value) { m_statusHasBeenSet = true; m_status = value; } /** *

Describes whether or not Amazon Pinpoint has successfully located the DKIM * records in the DNS records for the domain. The status can be one of the * following:

  • PENDING – Amazon Pinpoint hasn't yet * located the DKIM records in the DNS configuration for the domain, but will * continue to attempt to locate them.

  • SUCCESS – * Amazon Pinpoint located the DKIM records in the DNS configuration for the domain * and determined that they're correct. Amazon Pinpoint can now send DKIM-signed * email from the identity.

  • FAILED – Amazon * Pinpoint was unable to locate the DKIM records in the DNS settings for the * domain, and won't continue to search for them.

  • * TEMPORARY_FAILURE – A temporary issue occurred, which prevented * Amazon Pinpoint from determining the DKIM status for the domain.

  • *

    NOT_STARTED – Amazon Pinpoint hasn't yet started searching for * the DKIM records in the DKIM records for the domain.

*/ inline void SetStatus(DkimStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *

Describes whether or not Amazon Pinpoint has successfully located the DKIM * records in the DNS records for the domain. The status can be one of the * following:

  • PENDING – Amazon Pinpoint hasn't yet * located the DKIM records in the DNS configuration for the domain, but will * continue to attempt to locate them.

  • SUCCESS – * Amazon Pinpoint located the DKIM records in the DNS configuration for the domain * and determined that they're correct. Amazon Pinpoint can now send DKIM-signed * email from the identity.

  • FAILED – Amazon * Pinpoint was unable to locate the DKIM records in the DNS settings for the * domain, and won't continue to search for them.

  • * TEMPORARY_FAILURE – A temporary issue occurred, which prevented * Amazon Pinpoint from determining the DKIM status for the domain.

  • *

    NOT_STARTED – Amazon Pinpoint hasn't yet started searching for * the DKIM records in the DKIM records for the domain.

*/ inline DkimAttributes& WithStatus(const DkimStatus& value) { SetStatus(value); return *this;} /** *

Describes whether or not Amazon Pinpoint has successfully located the DKIM * records in the DNS records for the domain. The status can be one of the * following:

  • PENDING – Amazon Pinpoint hasn't yet * located the DKIM records in the DNS configuration for the domain, but will * continue to attempt to locate them.

  • SUCCESS – * Amazon Pinpoint located the DKIM records in the DNS configuration for the domain * and determined that they're correct. Amazon Pinpoint can now send DKIM-signed * email from the identity.

  • FAILED – Amazon * Pinpoint was unable to locate the DKIM records in the DNS settings for the * domain, and won't continue to search for them.

  • * TEMPORARY_FAILURE – A temporary issue occurred, which prevented * Amazon Pinpoint from determining the DKIM status for the domain.

  • *

    NOT_STARTED – Amazon Pinpoint hasn't yet started searching for * the DKIM records in the DKIM records for the domain.

*/ inline DkimAttributes& WithStatus(DkimStatus&& value) { SetStatus(std::move(value)); return *this;} /** *

A set of unique strings that you use to create a set of CNAME records that * you add to the DNS configuration for your domain. When Amazon Pinpoint detects * these records in the DNS configuration for your domain, the DKIM authentication * process is complete. Amazon Pinpoint usually detects these records within about * 72 hours of adding them to the DNS configuration for your domain.

*/ inline const Aws::Vector& GetTokens() const{ return m_tokens; } /** *

A set of unique strings that you use to create a set of CNAME records that * you add to the DNS configuration for your domain. When Amazon Pinpoint detects * these records in the DNS configuration for your domain, the DKIM authentication * process is complete. Amazon Pinpoint usually detects these records within about * 72 hours of adding them to the DNS configuration for your domain.

*/ inline bool TokensHasBeenSet() const { return m_tokensHasBeenSet; } /** *

A set of unique strings that you use to create a set of CNAME records that * you add to the DNS configuration for your domain. When Amazon Pinpoint detects * these records in the DNS configuration for your domain, the DKIM authentication * process is complete. Amazon Pinpoint usually detects these records within about * 72 hours of adding them to the DNS configuration for your domain.

*/ inline void SetTokens(const Aws::Vector& value) { m_tokensHasBeenSet = true; m_tokens = value; } /** *

A set of unique strings that you use to create a set of CNAME records that * you add to the DNS configuration for your domain. When Amazon Pinpoint detects * these records in the DNS configuration for your domain, the DKIM authentication * process is complete. Amazon Pinpoint usually detects these records within about * 72 hours of adding them to the DNS configuration for your domain.

*/ inline void SetTokens(Aws::Vector&& value) { m_tokensHasBeenSet = true; m_tokens = std::move(value); } /** *

A set of unique strings that you use to create a set of CNAME records that * you add to the DNS configuration for your domain. When Amazon Pinpoint detects * these records in the DNS configuration for your domain, the DKIM authentication * process is complete. Amazon Pinpoint usually detects these records within about * 72 hours of adding them to the DNS configuration for your domain.

*/ inline DkimAttributes& WithTokens(const Aws::Vector& value) { SetTokens(value); return *this;} /** *

A set of unique strings that you use to create a set of CNAME records that * you add to the DNS configuration for your domain. When Amazon Pinpoint detects * these records in the DNS configuration for your domain, the DKIM authentication * process is complete. Amazon Pinpoint usually detects these records within about * 72 hours of adding them to the DNS configuration for your domain.

*/ inline DkimAttributes& WithTokens(Aws::Vector&& value) { SetTokens(std::move(value)); return *this;} /** *

A set of unique strings that you use to create a set of CNAME records that * you add to the DNS configuration for your domain. When Amazon Pinpoint detects * these records in the DNS configuration for your domain, the DKIM authentication * process is complete. Amazon Pinpoint usually detects these records within about * 72 hours of adding them to the DNS configuration for your domain.

*/ inline DkimAttributes& AddTokens(const Aws::String& value) { m_tokensHasBeenSet = true; m_tokens.push_back(value); return *this; } /** *

A set of unique strings that you use to create a set of CNAME records that * you add to the DNS configuration for your domain. When Amazon Pinpoint detects * these records in the DNS configuration for your domain, the DKIM authentication * process is complete. Amazon Pinpoint usually detects these records within about * 72 hours of adding them to the DNS configuration for your domain.

*/ inline DkimAttributes& AddTokens(Aws::String&& value) { m_tokensHasBeenSet = true; m_tokens.push_back(std::move(value)); return *this; } /** *

A set of unique strings that you use to create a set of CNAME records that * you add to the DNS configuration for your domain. When Amazon Pinpoint detects * these records in the DNS configuration for your domain, the DKIM authentication * process is complete. Amazon Pinpoint usually detects these records within about * 72 hours of adding them to the DNS configuration for your domain.

*/ inline DkimAttributes& AddTokens(const char* value) { m_tokensHasBeenSet = true; m_tokens.push_back(value); return *this; } private: bool m_signingEnabled; bool m_signingEnabledHasBeenSet; DkimStatus m_status; bool m_statusHasBeenSet; Aws::Vector m_tokens; bool m_tokensHasBeenSet; }; } // namespace Model } // namespace PinpointEmail } // namespace Aws