com.amazonaws.services.simpleemailv2.model.GetAccountResult Maven / Gradle / Ivy
Show all versions of aws-java-sdk-sesv2 Show documentation
/*
* Copyright 2019-2024 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;
/**
*
* A list of details about the email-sending capabilities of your Amazon SES account in the current Amazon Web Services
* Region.
*
*
* @see AWS API
* Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class GetAccountResult extends com.amazonaws.AmazonWebServiceResult implements Serializable, Cloneable {
/**
*
* Indicates whether or not the automatic warm-up feature is enabled for dedicated IP addresses that are associated
* with your account.
*
*/
private Boolean dedicatedIpAutoWarmupEnabled;
/**
*
* The reputation status of your Amazon SES account. The status can be one of the following:
*
*
* -
*
* HEALTHY
– There are no reputation-related issues that currently impact your account.
*
*
* -
*
* PROBATION
– We've identified potential issues with your Amazon SES account. We're placing your
* account under review while you work on correcting these issues.
*
*
* -
*
* SHUTDOWN
– Your account's ability to send email is currently paused because of an issue with the
* email sent from your account. When you correct the issue, you can contact us and request that your account's
* ability to send email is resumed.
*
*
*
*/
private String enforcementStatus;
/**
*
* Indicates whether or not your account has production access in the current Amazon Web Services Region.
*
*
* If the value is false
, then your account is in the sandbox. When your account is in the
* sandbox, you can only send email to verified identities.
*
*
* If the value is true
, then your account has production access. When your account has production
* access, you can send email to any address. The sending quota and maximum sending rate for your account vary based
* on your specific use case.
*
*/
private Boolean productionAccessEnabled;
/**
*
* An object that contains information about the per-day and per-second sending limits for your Amazon SES account
* in the current Amazon Web Services Region.
*
*/
private SendQuota sendQuota;
/**
*
* Indicates whether or not email sending is enabled for your Amazon SES account in the current Amazon Web Services
* Region.
*
*/
private Boolean sendingEnabled;
/**
*
* An object that contains information about the email address suppression preferences for your account in the
* current Amazon Web Services Region.
*
*/
private SuppressionAttributes suppressionAttributes;
/**
*
* An object that defines your account details.
*
*/
private AccountDetails details;
/**
*
* The VDM attributes that apply to your Amazon SES account.
*
*/
private VdmAttributes vdmAttributes;
/**
*
* Indicates whether or not the automatic warm-up feature is enabled for dedicated IP addresses that are associated
* with your account.
*
*
* @param dedicatedIpAutoWarmupEnabled
* Indicates whether or not the automatic warm-up feature is enabled for dedicated IP addresses that are
* associated with your account.
*/
public void setDedicatedIpAutoWarmupEnabled(Boolean dedicatedIpAutoWarmupEnabled) {
this.dedicatedIpAutoWarmupEnabled = dedicatedIpAutoWarmupEnabled;
}
/**
*
* Indicates whether or not the automatic warm-up feature is enabled for dedicated IP addresses that are associated
* with your account.
*
*
* @return Indicates whether or not the automatic warm-up feature is enabled for dedicated IP addresses that are
* associated with your account.
*/
public Boolean getDedicatedIpAutoWarmupEnabled() {
return this.dedicatedIpAutoWarmupEnabled;
}
/**
*
* Indicates whether or not the automatic warm-up feature is enabled for dedicated IP addresses that are associated
* with your account.
*
*
* @param dedicatedIpAutoWarmupEnabled
* Indicates whether or not the automatic warm-up feature is enabled for dedicated IP addresses that are
* associated with your account.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public GetAccountResult withDedicatedIpAutoWarmupEnabled(Boolean dedicatedIpAutoWarmupEnabled) {
setDedicatedIpAutoWarmupEnabled(dedicatedIpAutoWarmupEnabled);
return this;
}
/**
*
* Indicates whether or not the automatic warm-up feature is enabled for dedicated IP addresses that are associated
* with your account.
*
*
* @return Indicates whether or not the automatic warm-up feature is enabled for dedicated IP addresses that are
* associated with your account.
*/
public Boolean isDedicatedIpAutoWarmupEnabled() {
return this.dedicatedIpAutoWarmupEnabled;
}
/**
*
* The reputation status of your Amazon SES account. The status can be one of the following:
*
*
* -
*
* HEALTHY
– There are no reputation-related issues that currently impact your account.
*
*
* -
*
* PROBATION
– We've identified potential issues with your Amazon SES account. We're placing your
* account under review while you work on correcting these issues.
*
*
* -
*
* SHUTDOWN
– Your account's ability to send email is currently paused because of an issue with the
* email sent from your account. When you correct the issue, you can contact us and request that your account's
* ability to send email is resumed.
*
*
*
*
* @param enforcementStatus
* The reputation status of your Amazon SES account. The status can be one of the following:
*
* -
*
* HEALTHY
– There are no reputation-related issues that currently impact your account.
*
*
* -
*
* PROBATION
– We've identified potential issues with your Amazon SES account. We're placing
* your account under review while you work on correcting these issues.
*
*
* -
*
* SHUTDOWN
– Your account's ability to send email is currently paused because of an issue with
* the email sent from your account. When you correct the issue, you can contact us and request that your
* account's ability to send email is resumed.
*
*
*/
public void setEnforcementStatus(String enforcementStatus) {
this.enforcementStatus = enforcementStatus;
}
/**
*
* The reputation status of your Amazon SES account. The status can be one of the following:
*
*
* -
*
* HEALTHY
– There are no reputation-related issues that currently impact your account.
*
*
* -
*
* PROBATION
– We've identified potential issues with your Amazon SES account. We're placing your
* account under review while you work on correcting these issues.
*
*
* -
*
* SHUTDOWN
– Your account's ability to send email is currently paused because of an issue with the
* email sent from your account. When you correct the issue, you can contact us and request that your account's
* ability to send email is resumed.
*
*
*
*
* @return The reputation status of your Amazon SES account. The status can be one of the following:
*
* -
*
* HEALTHY
– There are no reputation-related issues that currently impact your account.
*
*
* -
*
* PROBATION
– We've identified potential issues with your Amazon SES account. We're placing
* your account under review while you work on correcting these issues.
*
*
* -
*
* SHUTDOWN
– Your account's ability to send email is currently paused because of an issue with
* the email sent from your account. When you correct the issue, you can contact us and request that your
* account's ability to send email is resumed.
*
*
*/
public String getEnforcementStatus() {
return this.enforcementStatus;
}
/**
*
* The reputation status of your Amazon SES account. The status can be one of the following:
*
*
* -
*
* HEALTHY
– There are no reputation-related issues that currently impact your account.
*
*
* -
*
* PROBATION
– We've identified potential issues with your Amazon SES account. We're placing your
* account under review while you work on correcting these issues.
*
*
* -
*
* SHUTDOWN
– Your account's ability to send email is currently paused because of an issue with the
* email sent from your account. When you correct the issue, you can contact us and request that your account's
* ability to send email is resumed.
*
*
*
*
* @param enforcementStatus
* The reputation status of your Amazon SES account. The status can be one of the following:
*
* -
*
* HEALTHY
– There are no reputation-related issues that currently impact your account.
*
*
* -
*
* PROBATION
– We've identified potential issues with your Amazon SES account. We're placing
* your account under review while you work on correcting these issues.
*
*
* -
*
* SHUTDOWN
– Your account's ability to send email is currently paused because of an issue with
* the email sent from your account. When you correct the issue, you can contact us and request that your
* account's ability to send email is resumed.
*
*
* @return Returns a reference to this object so that method calls can be chained together.
*/
public GetAccountResult withEnforcementStatus(String enforcementStatus) {
setEnforcementStatus(enforcementStatus);
return this;
}
/**
*
* Indicates whether or not your account has production access in the current Amazon Web Services Region.
*
*
* If the value is false
, then your account is in the sandbox. When your account is in the
* sandbox, you can only send email to verified identities.
*
*
* If the value is true
, then your account has production access. When your account has production
* access, you can send email to any address. The sending quota and maximum sending rate for your account vary based
* on your specific use case.
*
*
* @param productionAccessEnabled
* Indicates whether or not your account has production access in the current Amazon Web Services Region.
*
* If the value is false
, then your account is in the sandbox. When your account is in
* the sandbox, you can only send email to verified identities.
*
*
* If the value is true
, then your account has production access. When your account has
* production access, you can send email to any address. The sending quota and maximum sending rate for your
* account vary based on your specific use case.
*/
public void setProductionAccessEnabled(Boolean productionAccessEnabled) {
this.productionAccessEnabled = productionAccessEnabled;
}
/**
*
* Indicates whether or not your account has production access in the current Amazon Web Services Region.
*
*
* If the value is false
, then your account is in the sandbox. When your account is in the
* sandbox, you can only send email to verified identities.
*
*
* If the value is true
, then your account has production access. When your account has production
* access, you can send email to any address. The sending quota and maximum sending rate for your account vary based
* on your specific use case.
*
*
* @return Indicates whether or not your account has production access in the current Amazon Web Services
* Region.
*
* If the value is false
, then your account is in the sandbox. When your account is in
* the sandbox, you can only send email to verified identities.
*
*
* If the value is true
, then your account has production access. When your account has
* production access, you can send email to any address. The sending quota and maximum sending rate for your
* account vary based on your specific use case.
*/
public Boolean getProductionAccessEnabled() {
return this.productionAccessEnabled;
}
/**
*
* Indicates whether or not your account has production access in the current Amazon Web Services Region.
*
*
* If the value is false
, then your account is in the sandbox. When your account is in the
* sandbox, you can only send email to verified identities.
*
*
* If the value is true
, then your account has production access. When your account has production
* access, you can send email to any address. The sending quota and maximum sending rate for your account vary based
* on your specific use case.
*
*
* @param productionAccessEnabled
* Indicates whether or not your account has production access in the current Amazon Web Services Region.
*
* If the value is false
, then your account is in the sandbox. When your account is in
* the sandbox, you can only send email to verified identities.
*
*
* If the value is true
, then your account has production access. When your account has
* production access, you can send email to any address. The sending quota and maximum sending rate for your
* account vary based on your specific use case.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public GetAccountResult withProductionAccessEnabled(Boolean productionAccessEnabled) {
setProductionAccessEnabled(productionAccessEnabled);
return this;
}
/**
*
* Indicates whether or not your account has production access in the current Amazon Web Services Region.
*
*
* If the value is false
, then your account is in the sandbox. When your account is in the
* sandbox, you can only send email to verified identities.
*
*
* If the value is true
, then your account has production access. When your account has production
* access, you can send email to any address. The sending quota and maximum sending rate for your account vary based
* on your specific use case.
*
*
* @return Indicates whether or not your account has production access in the current Amazon Web Services
* Region.
*
* If the value is false
, then your account is in the sandbox. When your account is in
* the sandbox, you can only send email to verified identities.
*
*
* If the value is true
, then your account has production access. When your account has
* production access, you can send email to any address. The sending quota and maximum sending rate for your
* account vary based on your specific use case.
*/
public Boolean isProductionAccessEnabled() {
return this.productionAccessEnabled;
}
/**
*
* An object that contains information about the per-day and per-second sending limits for your Amazon SES account
* in the current Amazon Web Services Region.
*
*
* @param sendQuota
* An object that contains information about the per-day and per-second sending limits for your Amazon SES
* account in the current Amazon Web Services Region.
*/
public void setSendQuota(SendQuota sendQuota) {
this.sendQuota = sendQuota;
}
/**
*
* An object that contains information about the per-day and per-second sending limits for your Amazon SES account
* in the current Amazon Web Services Region.
*
*
* @return An object that contains information about the per-day and per-second sending limits for your Amazon SES
* account in the current Amazon Web Services Region.
*/
public SendQuota getSendQuota() {
return this.sendQuota;
}
/**
*
* An object that contains information about the per-day and per-second sending limits for your Amazon SES account
* in the current Amazon Web Services Region.
*
*
* @param sendQuota
* An object that contains information about the per-day and per-second sending limits for your Amazon SES
* account in the current Amazon Web Services Region.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public GetAccountResult withSendQuota(SendQuota sendQuota) {
setSendQuota(sendQuota);
return this;
}
/**
*
* Indicates whether or not email sending is enabled for your Amazon SES account in the current Amazon Web Services
* Region.
*
*
* @param sendingEnabled
* Indicates whether or not email sending is enabled for your Amazon SES account in the current Amazon Web
* Services Region.
*/
public void setSendingEnabled(Boolean sendingEnabled) {
this.sendingEnabled = sendingEnabled;
}
/**
*
* Indicates whether or not email sending is enabled for your Amazon SES account in the current Amazon Web Services
* Region.
*
*
* @return Indicates whether or not email sending is enabled for your Amazon SES account in the current Amazon Web
* Services Region.
*/
public Boolean getSendingEnabled() {
return this.sendingEnabled;
}
/**
*
* Indicates whether or not email sending is enabled for your Amazon SES account in the current Amazon Web Services
* Region.
*
*
* @param sendingEnabled
* Indicates whether or not email sending is enabled for your Amazon SES account in the current Amazon Web
* Services Region.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public GetAccountResult withSendingEnabled(Boolean sendingEnabled) {
setSendingEnabled(sendingEnabled);
return this;
}
/**
*
* Indicates whether or not email sending is enabled for your Amazon SES account in the current Amazon Web Services
* Region.
*
*
* @return Indicates whether or not email sending is enabled for your Amazon SES account in the current Amazon Web
* Services Region.
*/
public Boolean isSendingEnabled() {
return this.sendingEnabled;
}
/**
*
* An object that contains information about the email address suppression preferences for your account in the
* current Amazon Web Services Region.
*
*
* @param suppressionAttributes
* An object that contains information about the email address suppression preferences for your account in
* the current Amazon Web Services Region.
*/
public void setSuppressionAttributes(SuppressionAttributes suppressionAttributes) {
this.suppressionAttributes = suppressionAttributes;
}
/**
*
* An object that contains information about the email address suppression preferences for your account in the
* current Amazon Web Services Region.
*
*
* @return An object that contains information about the email address suppression preferences for your account in
* the current Amazon Web Services Region.
*/
public SuppressionAttributes getSuppressionAttributes() {
return this.suppressionAttributes;
}
/**
*
* An object that contains information about the email address suppression preferences for your account in the
* current Amazon Web Services Region.
*
*
* @param suppressionAttributes
* An object that contains information about the email address suppression preferences for your account in
* the current Amazon Web Services Region.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public GetAccountResult withSuppressionAttributes(SuppressionAttributes suppressionAttributes) {
setSuppressionAttributes(suppressionAttributes);
return this;
}
/**
*
* An object that defines your account details.
*
*
* @param details
* An object that defines your account details.
*/
public void setDetails(AccountDetails details) {
this.details = details;
}
/**
*
* An object that defines your account details.
*
*
* @return An object that defines your account details.
*/
public AccountDetails getDetails() {
return this.details;
}
/**
*
* An object that defines your account details.
*
*
* @param details
* An object that defines your account details.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public GetAccountResult withDetails(AccountDetails details) {
setDetails(details);
return this;
}
/**
*
* The VDM attributes that apply to your Amazon SES account.
*
*
* @param vdmAttributes
* The VDM attributes that apply to your Amazon SES account.
*/
public void setVdmAttributes(VdmAttributes vdmAttributes) {
this.vdmAttributes = vdmAttributes;
}
/**
*
* The VDM attributes that apply to your Amazon SES account.
*
*
* @return The VDM attributes that apply to your Amazon SES account.
*/
public VdmAttributes getVdmAttributes() {
return this.vdmAttributes;
}
/**
*
* The VDM attributes that apply to your Amazon SES account.
*
*
* @param vdmAttributes
* The VDM attributes that apply to your Amazon SES account.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public GetAccountResult withVdmAttributes(VdmAttributes vdmAttributes) {
setVdmAttributes(vdmAttributes);
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 (getDedicatedIpAutoWarmupEnabled() != null)
sb.append("DedicatedIpAutoWarmupEnabled: ").append(getDedicatedIpAutoWarmupEnabled()).append(",");
if (getEnforcementStatus() != null)
sb.append("EnforcementStatus: ").append(getEnforcementStatus()).append(",");
if (getProductionAccessEnabled() != null)
sb.append("ProductionAccessEnabled: ").append(getProductionAccessEnabled()).append(",");
if (getSendQuota() != null)
sb.append("SendQuota: ").append(getSendQuota()).append(",");
if (getSendingEnabled() != null)
sb.append("SendingEnabled: ").append(getSendingEnabled()).append(",");
if (getSuppressionAttributes() != null)
sb.append("SuppressionAttributes: ").append(getSuppressionAttributes()).append(",");
if (getDetails() != null)
sb.append("Details: ").append(getDetails()).append(",");
if (getVdmAttributes() != null)
sb.append("VdmAttributes: ").append(getVdmAttributes());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof GetAccountResult == false)
return false;
GetAccountResult other = (GetAccountResult) obj;
if (other.getDedicatedIpAutoWarmupEnabled() == null ^ this.getDedicatedIpAutoWarmupEnabled() == null)
return false;
if (other.getDedicatedIpAutoWarmupEnabled() != null && other.getDedicatedIpAutoWarmupEnabled().equals(this.getDedicatedIpAutoWarmupEnabled()) == false)
return false;
if (other.getEnforcementStatus() == null ^ this.getEnforcementStatus() == null)
return false;
if (other.getEnforcementStatus() != null && other.getEnforcementStatus().equals(this.getEnforcementStatus()) == false)
return false;
if (other.getProductionAccessEnabled() == null ^ this.getProductionAccessEnabled() == null)
return false;
if (other.getProductionAccessEnabled() != null && other.getProductionAccessEnabled().equals(this.getProductionAccessEnabled()) == false)
return false;
if (other.getSendQuota() == null ^ this.getSendQuota() == null)
return false;
if (other.getSendQuota() != null && other.getSendQuota().equals(this.getSendQuota()) == false)
return false;
if (other.getSendingEnabled() == null ^ this.getSendingEnabled() == null)
return false;
if (other.getSendingEnabled() != null && other.getSendingEnabled().equals(this.getSendingEnabled()) == false)
return false;
if (other.getSuppressionAttributes() == null ^ this.getSuppressionAttributes() == null)
return false;
if (other.getSuppressionAttributes() != null && other.getSuppressionAttributes().equals(this.getSuppressionAttributes()) == false)
return false;
if (other.getDetails() == null ^ this.getDetails() == null)
return false;
if (other.getDetails() != null && other.getDetails().equals(this.getDetails()) == false)
return false;
if (other.getVdmAttributes() == null ^ this.getVdmAttributes() == null)
return false;
if (other.getVdmAttributes() != null && other.getVdmAttributes().equals(this.getVdmAttributes()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getDedicatedIpAutoWarmupEnabled() == null) ? 0 : getDedicatedIpAutoWarmupEnabled().hashCode());
hashCode = prime * hashCode + ((getEnforcementStatus() == null) ? 0 : getEnforcementStatus().hashCode());
hashCode = prime * hashCode + ((getProductionAccessEnabled() == null) ? 0 : getProductionAccessEnabled().hashCode());
hashCode = prime * hashCode + ((getSendQuota() == null) ? 0 : getSendQuota().hashCode());
hashCode = prime * hashCode + ((getSendingEnabled() == null) ? 0 : getSendingEnabled().hashCode());
hashCode = prime * hashCode + ((getSuppressionAttributes() == null) ? 0 : getSuppressionAttributes().hashCode());
hashCode = prime * hashCode + ((getDetails() == null) ? 0 : getDetails().hashCode());
hashCode = prime * hashCode + ((getVdmAttributes() == null) ? 0 : getVdmAttributes().hashCode());
return hashCode;
}
@Override
public GetAccountResult clone() {
try {
return (GetAccountResult) super.clone();
} catch (CloneNotSupportedException e) {
throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e);
}
}
}