/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.simpleemailv2.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* The result of the SendBulkEmail
operation of each specified BulkEmailEntry
.
*
* 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. *
*
* A description of an error that prevented a message being sent using the SendBulkTemplatedEmail
* operation.
*
* The unique message identifier returned from the SendBulkTemplatedEmail
operation.
*
* 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. *
*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. *
*
* 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. *
*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. *
*
* 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. *
*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. *
*
* 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. *
*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. *
*
* A description of an error that prevented a message being sent using the SendBulkTemplatedEmail
* operation.
*
SendBulkTemplatedEmail
operation.
*/
public void setError(String error) {
this.error = error;
}
/**
*
* A description of an error that prevented a message being sent using the SendBulkTemplatedEmail
* operation.
*
SendBulkTemplatedEmail
operation.
*/
public String getError() {
return this.error;
}
/**
*
* A description of an error that prevented a message being sent using the SendBulkTemplatedEmail
* operation.
*
SendBulkTemplatedEmail
operation.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public BulkEmailEntryResult withError(String error) {
setError(error);
return this;
}
/**
*
* The unique message identifier returned from the SendBulkTemplatedEmail
operation.
*
SendBulkTemplatedEmail
operation.
*/
public void setMessageId(String messageId) {
this.messageId = messageId;
}
/**
*
* The unique message identifier returned from the SendBulkTemplatedEmail
operation.
*
SendBulkTemplatedEmail
operation.
*/
public String getMessageId() {
return this.messageId;
}
/**
*
* The unique message identifier returned from the SendBulkTemplatedEmail
operation.
*
SendBulkTemplatedEmail
operation.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public BulkEmailEntryResult withMessageId(String messageId) {
setMessageId(messageId);
return this;
}
/**
* Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
* redacted from this string using a placeholder value.
*
* @return A string representation of this object.
*
* @see java.lang.Object#toString()
*/
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("{");
if (getStatus() != null)
sb.append("Status: ").append(getStatus()).append(",");
if (getError() != null)
sb.append("Error: ").append(getError()).append(",");
if (getMessageId() != null)
sb.append("MessageId: ").append(getMessageId());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof BulkEmailEntryResult == false)
return false;
BulkEmailEntryResult other = (BulkEmailEntryResult) obj;
if (other.getStatus() == null ^ this.getStatus() == null)
return false;
if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == false)
return false;
if (other.getError() == null ^ this.getError() == null)
return false;
if (other.getError() != null && other.getError().equals(this.getError()) == false)
return false;
if (other.getMessageId() == null ^ this.getMessageId() == null)
return false;
if (other.getMessageId() != null && other.getMessageId().equals(this.getMessageId()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode());
hashCode = prime * hashCode + ((getError() == null) ? 0 : getError().hashCode());
hashCode = prime * hashCode + ((getMessageId() == null) ? 0 : getMessageId().hashCode());
return hashCode;
}
@Override
public BulkEmailEntryResult clone() {
try {
return (BulkEmailEntryResult) super.clone();
} catch (CloneNotSupportedException e) {
throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e);
}
}
@com.amazonaws.annotation.SdkInternalApi
@Override
public void marshall(ProtocolMarshaller protocolMarshaller) {
com.amazonaws.services.simpleemailv2.model.transform.BulkEmailEntryResultMarshaller.getInstance().marshall(this, protocolMarshaller);
}
}