/** * 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 Xml { class XmlNode; } // namespace Xml } // namespace Utils namespace SES { namespace Model { /** *

An object that contains the response from the * SendBulkTemplatedEmail operation.

See Also:

AWS * API Reference

*/ class BulkEmailDestinationStatus { public: AWS_SES_API BulkEmailDestinationStatus(); AWS_SES_API BulkEmailDestinationStatus(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_SES_API BulkEmailDestinationStatus& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_SES_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const; AWS_SES_API void OutputToStream(Aws::OStream& oStream, const char* location) const; /** *

The status of a message sent using the SendBulkTemplatedEmail * operation.

Possible values for this parameter include:

  • * Success: Amazon SES accepted the message, and will attempt to * deliver it to the recipients.

  • MessageRejected: * The message was rejected because it contained a virus.

  • * MailFromDomainNotVerified: The sender's email address or domain was * not verified.

  • ConfigurationSetDoesNotExist: The * configuration set you specified does not exist.

  • * TemplateDoesNotExist: The template you specified does not * exist.

  • AccountSuspended: Your account has been * shut down because of issues related to your email sending practices.

  • *
  • AccountThrottled: The number of emails you can send has * been reduced because your account has exceeded its allocated sending limit.

    *
  • AccountDailyQuotaExceeded: You have reached or * exceeded the maximum number of emails you can send from your account in a * 24-hour period.

  • InvalidSendingPoolName: The * configuration set you specified refers to an IP pool that does not exist.

    *
  • AccountSendingPaused: Email sending for the Amazon * SES account was disabled using the UpdateAccountSendingEnabled * operation.

  • ConfigurationSetSendingPaused: Email * sending for this configuration set was disabled using the * UpdateConfigurationSetSendingEnabled operation.

  • * InvalidParameterValue: One or more of the parameters you specified * when calling this operation was invalid. See the error message for additional * information.

  • TransientFailure: Amazon SES was * unable to process your request because of a temporary issue.

  • * Failed: Amazon SES was unable to process your request. See the * error message for additional information.

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

The status of a message sent using the SendBulkTemplatedEmail * operation.

Possible values for this parameter include:

  • * Success: Amazon SES accepted the message, and will attempt to * deliver it to the recipients.

  • MessageRejected: * The message was rejected because it contained a virus.

  • * MailFromDomainNotVerified: The sender's email address or domain was * not verified.

  • ConfigurationSetDoesNotExist: The * configuration set you specified does not exist.

  • * TemplateDoesNotExist: The template you specified does not * exist.

  • AccountSuspended: Your account has been * shut down because of issues related to your email sending practices.

  • *
  • AccountThrottled: The number of emails you can send has * been reduced because your account has exceeded its allocated sending limit.

    *
  • AccountDailyQuotaExceeded: You have reached or * exceeded the maximum number of emails you can send from your account in a * 24-hour period.

  • InvalidSendingPoolName: The * configuration set you specified refers to an IP pool that does not exist.

    *
  • AccountSendingPaused: Email sending for the Amazon * SES account was disabled using the UpdateAccountSendingEnabled * operation.

  • ConfigurationSetSendingPaused: Email * sending for this configuration set was disabled using the * UpdateConfigurationSetSendingEnabled operation.

  • * InvalidParameterValue: One or more of the parameters you specified * when calling this operation was invalid. See the error message for additional * information.

  • TransientFailure: Amazon SES was * unable to process your request because of a temporary issue.

  • * Failed: Amazon SES was unable to process your request. See the * error message for additional information.

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

The status of a message sent using the SendBulkTemplatedEmail * operation.

Possible values for this parameter include:

  • * Success: Amazon SES accepted the message, and will attempt to * deliver it to the recipients.

  • MessageRejected: * The message was rejected because it contained a virus.

  • * MailFromDomainNotVerified: The sender's email address or domain was * not verified.

  • ConfigurationSetDoesNotExist: The * configuration set you specified does not exist.

  • * TemplateDoesNotExist: The template you specified does not * exist.

  • AccountSuspended: Your account has been * shut down because of issues related to your email sending practices.

  • *
  • AccountThrottled: The number of emails you can send has * been reduced because your account has exceeded its allocated sending limit.

    *
  • AccountDailyQuotaExceeded: You have reached or * exceeded the maximum number of emails you can send from your account in a * 24-hour period.

  • InvalidSendingPoolName: The * configuration set you specified refers to an IP pool that does not exist.

    *
  • AccountSendingPaused: Email sending for the Amazon * SES account was disabled using the UpdateAccountSendingEnabled * operation.

  • ConfigurationSetSendingPaused: Email * sending for this configuration set was disabled using the * UpdateConfigurationSetSendingEnabled operation.

  • * InvalidParameterValue: One or more of the parameters you specified * when calling this operation was invalid. See the error message for additional * information.

  • TransientFailure: Amazon SES was * unable to process your request because of a temporary issue.

  • * Failed: Amazon SES was unable to process your request. See the * error message for additional information.

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

The status of a message sent using the SendBulkTemplatedEmail * operation.

Possible values for this parameter include:

  • * Success: Amazon SES accepted the message, and will attempt to * deliver it to the recipients.

  • MessageRejected: * The message was rejected because it contained a virus.

  • * MailFromDomainNotVerified: The sender's email address or domain was * not verified.

  • ConfigurationSetDoesNotExist: The * configuration set you specified does not exist.

  • * TemplateDoesNotExist: The template you specified does not * exist.

  • AccountSuspended: Your account has been * shut down because of issues related to your email sending practices.

  • *
  • AccountThrottled: The number of emails you can send has * been reduced because your account has exceeded its allocated sending limit.

    *
  • AccountDailyQuotaExceeded: You have reached or * exceeded the maximum number of emails you can send from your account in a * 24-hour period.

  • InvalidSendingPoolName: The * configuration set you specified refers to an IP pool that does not exist.

    *
  • AccountSendingPaused: Email sending for the Amazon * SES account was disabled using the UpdateAccountSendingEnabled * operation.

  • ConfigurationSetSendingPaused: Email * sending for this configuration set was disabled using the * UpdateConfigurationSetSendingEnabled operation.

  • * InvalidParameterValue: One or more of the parameters you specified * when calling this operation was invalid. See the error message for additional * information.

  • TransientFailure: Amazon SES was * unable to process your request because of a temporary issue.

  • * Failed: Amazon SES was unable to process your request. See the * error message for additional information.

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

The status of a message sent using the SendBulkTemplatedEmail * operation.

Possible values for this parameter include:

  • * Success: Amazon SES accepted the message, and will attempt to * deliver it to the recipients.

  • MessageRejected: * The message was rejected because it contained a virus.

  • * MailFromDomainNotVerified: The sender's email address or domain was * not verified.

  • ConfigurationSetDoesNotExist: The * configuration set you specified does not exist.

  • * TemplateDoesNotExist: The template you specified does not * exist.

  • AccountSuspended: Your account has been * shut down because of issues related to your email sending practices.

  • *
  • AccountThrottled: The number of emails you can send has * been reduced because your account has exceeded its allocated sending limit.

    *
  • AccountDailyQuotaExceeded: You have reached or * exceeded the maximum number of emails you can send from your account in a * 24-hour period.

  • InvalidSendingPoolName: The * configuration set you specified refers to an IP pool that does not exist.

    *
  • AccountSendingPaused: Email sending for the Amazon * SES account was disabled using the UpdateAccountSendingEnabled * operation.

  • ConfigurationSetSendingPaused: Email * sending for this configuration set was disabled using the * UpdateConfigurationSetSendingEnabled operation.

  • * InvalidParameterValue: One or more of the parameters you specified * when calling this operation was invalid. See the error message for additional * information.

  • TransientFailure: Amazon SES was * unable to process your request because of a temporary issue.

  • * Failed: Amazon SES was unable to process your request. See the * error message for additional information.

*/ inline BulkEmailDestinationStatus& WithStatus(const BulkEmailStatus& value) { SetStatus(value); return *this;} /** *

The status of a message sent using the SendBulkTemplatedEmail * operation.

Possible values for this parameter include:

  • * Success: Amazon SES accepted the message, and will attempt to * deliver it to the recipients.

  • MessageRejected: * The message was rejected because it contained a virus.

  • * MailFromDomainNotVerified: The sender's email address or domain was * not verified.

  • ConfigurationSetDoesNotExist: The * configuration set you specified does not exist.

  • * TemplateDoesNotExist: The template you specified does not * exist.

  • AccountSuspended: Your account has been * shut down because of issues related to your email sending practices.

  • *
  • AccountThrottled: The number of emails you can send has * been reduced because your account has exceeded its allocated sending limit.

    *
  • AccountDailyQuotaExceeded: You have reached or * exceeded the maximum number of emails you can send from your account in a * 24-hour period.

  • InvalidSendingPoolName: The * configuration set you specified refers to an IP pool that does not exist.

    *
  • AccountSendingPaused: Email sending for the Amazon * SES account was disabled using the UpdateAccountSendingEnabled * operation.

  • ConfigurationSetSendingPaused: Email * sending for this configuration set was disabled using the * UpdateConfigurationSetSendingEnabled operation.

  • * InvalidParameterValue: One or more of the parameters you specified * when calling this operation was invalid. See the error message for additional * information.

  • TransientFailure: Amazon SES was * unable to process your request because of a temporary issue.

  • * Failed: Amazon SES was unable to process your request. See the * error message for additional information.

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

A description of an error that prevented a message being sent using the * SendBulkTemplatedEmail operation.

*/ inline const Aws::String& GetError() const{ return m_error; } /** *

A description of an error that prevented a message being sent using the * SendBulkTemplatedEmail operation.

*/ inline bool ErrorHasBeenSet() const { return m_errorHasBeenSet; } /** *

A description of an error that prevented a message being sent using the * SendBulkTemplatedEmail operation.

*/ inline void SetError(const Aws::String& value) { m_errorHasBeenSet = true; m_error = value; } /** *

A description of an error that prevented a message being sent using the * SendBulkTemplatedEmail operation.

*/ inline void SetError(Aws::String&& value) { m_errorHasBeenSet = true; m_error = std::move(value); } /** *

A description of an error that prevented a message being sent using the * SendBulkTemplatedEmail operation.

*/ inline void SetError(const char* value) { m_errorHasBeenSet = true; m_error.assign(value); } /** *

A description of an error that prevented a message being sent using the * SendBulkTemplatedEmail operation.

*/ inline BulkEmailDestinationStatus& WithError(const Aws::String& value) { SetError(value); return *this;} /** *

A description of an error that prevented a message being sent using the * SendBulkTemplatedEmail operation.

*/ inline BulkEmailDestinationStatus& WithError(Aws::String&& value) { SetError(std::move(value)); return *this;} /** *

A description of an error that prevented a message being sent using the * SendBulkTemplatedEmail operation.

*/ inline BulkEmailDestinationStatus& WithError(const char* value) { SetError(value); return *this;} /** *

The unique message identifier returned from the * SendBulkTemplatedEmail operation.

*/ inline const Aws::String& GetMessageId() const{ return m_messageId; } /** *

The unique message identifier returned from the * SendBulkTemplatedEmail operation.

*/ inline bool MessageIdHasBeenSet() const { return m_messageIdHasBeenSet; } /** *

The unique message identifier returned from the * SendBulkTemplatedEmail operation.

*/ inline void SetMessageId(const Aws::String& value) { m_messageIdHasBeenSet = true; m_messageId = value; } /** *

The unique message identifier returned from the * SendBulkTemplatedEmail operation.

*/ inline void SetMessageId(Aws::String&& value) { m_messageIdHasBeenSet = true; m_messageId = std::move(value); } /** *

The unique message identifier returned from the * SendBulkTemplatedEmail operation.

*/ inline void SetMessageId(const char* value) { m_messageIdHasBeenSet = true; m_messageId.assign(value); } /** *

The unique message identifier returned from the * SendBulkTemplatedEmail operation.

*/ inline BulkEmailDestinationStatus& WithMessageId(const Aws::String& value) { SetMessageId(value); return *this;} /** *

The unique message identifier returned from the * SendBulkTemplatedEmail operation.

*/ inline BulkEmailDestinationStatus& WithMessageId(Aws::String&& value) { SetMessageId(std::move(value)); return *this;} /** *

The unique message identifier returned from the * SendBulkTemplatedEmail operation.

*/ inline BulkEmailDestinationStatus& WithMessageId(const char* value) { SetMessageId(value); return *this;} private: BulkEmailStatus m_status; bool m_statusHasBeenSet = false; Aws::String m_error; bool m_errorHasBeenSet = false; Aws::String m_messageId; bool m_messageIdHasBeenSet = false; }; } // namespace Model } // namespace SES } // namespace Aws