/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace SESV2 { namespace Model { /** *

The result of the SendBulkEmail operation of each specified * BulkEmailEntry.

See Also:

AWS * API Reference

*/ class BulkEmailEntryResult { public: AWS_SESV2_API BulkEmailEntryResult(); AWS_SESV2_API BulkEmailEntryResult(Aws::Utils::Json::JsonView jsonValue); AWS_SESV2_API BulkEmailEntryResult& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_SESV2_API Aws::Utils::Json::JsonValue Jsonize() 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.

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

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

  • *

    CONFIGURATION_SET_DOES_NOT_EXIST: The configuration set you specified does * not exist.

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

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

  • *

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

  • *

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

  • *

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

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

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

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

  • TRANSIENT_FAILURE: 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.

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

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

  • *

    CONFIGURATION_SET_DOES_NOT_EXIST: The configuration set you specified does * not exist.

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

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

  • *

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

  • *

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

  • *

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

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

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

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

  • TRANSIENT_FAILURE: 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.

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

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

  • *

    CONFIGURATION_SET_DOES_NOT_EXIST: The configuration set you specified does * not exist.

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

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

  • *

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

  • *

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

  • *

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

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

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

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

  • TRANSIENT_FAILURE: 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.

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

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

  • *

    CONFIGURATION_SET_DOES_NOT_EXIST: The configuration set you specified does * not exist.

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

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

  • *

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

  • *

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

  • *

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

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

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

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

  • TRANSIENT_FAILURE: 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.

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

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

  • *

    CONFIGURATION_SET_DOES_NOT_EXIST: The configuration set you specified does * not exist.

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

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

  • *

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

  • *

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

  • *

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

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

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

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

  • TRANSIENT_FAILURE: 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 BulkEmailEntryResult& 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.

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

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

  • *

    CONFIGURATION_SET_DOES_NOT_EXIST: The configuration set you specified does * not exist.

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

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

  • *

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

  • *

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

  • *

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

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

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

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

  • TRANSIENT_FAILURE: 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 BulkEmailEntryResult& 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 BulkEmailEntryResult& 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 BulkEmailEntryResult& 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 BulkEmailEntryResult& 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 BulkEmailEntryResult& WithMessageId(const Aws::String& value) { SetMessageId(value); return *this;} /** *

The unique message identifier returned from the * SendBulkTemplatedEmail operation.

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

The unique message identifier returned from the * SendBulkTemplatedEmail operation.

*/ inline BulkEmailEntryResult& 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 SESV2 } // namespace Aws