/* * Copyright 2010-2020 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.simpleemail.model; import java.io.Serializable; /** *

* Contains information about the reputation settings for a configuration set. *

*/ public class ReputationOptions implements Serializable { /** *

* Describes whether email sending is enabled or disabled for the * configuration set. If the value is true, then Amazon SES * will send emails that use the configuration set. If the value is * false, Amazon SES will not send emails that use the * configuration set. The default value is true. You can change * this setting using UpdateConfigurationSetSendingEnabled. *

*/ private Boolean sendingEnabled; /** *

* Describes whether or not Amazon SES publishes reputation metrics for the * configuration set, such as bounce and complaint rates, to Amazon * CloudWatch. *

*

* If the value is true, reputation metrics are published. If * the value is false, reputation metrics are not published. * The default value is false. *

*/ private Boolean reputationMetricsEnabled; /** *

* The date and time at which the reputation metrics for the configuration * set were last reset. Resetting these metrics is known as a fresh * start. *

*

* When you disable email sending for a configuration set using * UpdateConfigurationSetSendingEnabled and later re-enable it, the * reputation metrics for the configuration set (but not for the entire * Amazon SES account) are reset. *

*

* If email sending for the configuration set has never been disabled and * later re-enabled, the value of this attribute is null. *

*/ private java.util.Date lastFreshStart; /** *

* Describes whether email sending is enabled or disabled for the * configuration set. If the value is true, then Amazon SES * will send emails that use the configuration set. If the value is * false, Amazon SES will not send emails that use the * configuration set. The default value is true. You can change * this setting using UpdateConfigurationSetSendingEnabled. *

* * @return

* Describes whether email sending is enabled or disabled for the * configuration set. If the value is true, then Amazon * SES will send emails that use the configuration set. If the value * is false, Amazon SES will not send emails that use * the configuration set. The default value is true. * You can change this setting using * UpdateConfigurationSetSendingEnabled. *

*/ public Boolean isSendingEnabled() { return sendingEnabled; } /** *

* Describes whether email sending is enabled or disabled for the * configuration set. If the value is true, then Amazon SES * will send emails that use the configuration set. If the value is * false, Amazon SES will not send emails that use the * configuration set. The default value is true. You can change * this setting using UpdateConfigurationSetSendingEnabled. *

* * @return

* Describes whether email sending is enabled or disabled for the * configuration set. If the value is true, then Amazon * SES will send emails that use the configuration set. If the value * is false, Amazon SES will not send emails that use * the configuration set. The default value is true. * You can change this setting using * UpdateConfigurationSetSendingEnabled. *

*/ public Boolean getSendingEnabled() { return sendingEnabled; } /** *

* Describes whether email sending is enabled or disabled for the * configuration set. If the value is true, then Amazon SES * will send emails that use the configuration set. If the value is * false, Amazon SES will not send emails that use the * configuration set. The default value is true. You can change * this setting using UpdateConfigurationSetSendingEnabled. *

* * @param sendingEnabled

* Describes whether email sending is enabled or disabled for the * configuration set. If the value is true, then * Amazon SES will send emails that use the configuration set. If * the value is false, Amazon SES will not send * emails that use the configuration set. The default value is * true. You can change this setting using * UpdateConfigurationSetSendingEnabled. *

*/ public void setSendingEnabled(Boolean sendingEnabled) { this.sendingEnabled = sendingEnabled; } /** *

* Describes whether email sending is enabled or disabled for the * configuration set. If the value is true, then Amazon SES * will send emails that use the configuration set. If the value is * false, Amazon SES will not send emails that use the * configuration set. The default value is true. You can change * this setting using UpdateConfigurationSetSendingEnabled. *

*

* Returns a reference to this object so that method calls can be chained * together. * * @param sendingEnabled

* Describes whether email sending is enabled or disabled for the * configuration set. If the value is true, then * Amazon SES will send emails that use the configuration set. If * the value is false, Amazon SES will not send * emails that use the configuration set. The default value is * true. You can change this setting using * UpdateConfigurationSetSendingEnabled. *

* @return A reference to this updated object so that method calls can be * chained together. */ public ReputationOptions withSendingEnabled(Boolean sendingEnabled) { this.sendingEnabled = sendingEnabled; return this; } /** *

* Describes whether or not Amazon SES publishes reputation metrics for the * configuration set, such as bounce and complaint rates, to Amazon * CloudWatch. *

*

* If the value is true, reputation metrics are published. If * the value is false, reputation metrics are not published. * The default value is false. *

* * @return

* Describes whether or not Amazon SES publishes reputation metrics * for the configuration set, such as bounce and complaint rates, to * Amazon CloudWatch. *

*

* If the value is true, reputation metrics are * published. If the value is false, reputation metrics * are not published. The default value is false. *

*/ public Boolean isReputationMetricsEnabled() { return reputationMetricsEnabled; } /** *

* Describes whether or not Amazon SES publishes reputation metrics for the * configuration set, such as bounce and complaint rates, to Amazon * CloudWatch. *

*

* If the value is true, reputation metrics are published. If * the value is false, reputation metrics are not published. * The default value is false. *

* * @return

* Describes whether or not Amazon SES publishes reputation metrics * for the configuration set, such as bounce and complaint rates, to * Amazon CloudWatch. *

*

* If the value is true, reputation metrics are * published. If the value is false, reputation metrics * are not published. The default value is false. *

*/ public Boolean getReputationMetricsEnabled() { return reputationMetricsEnabled; } /** *

* Describes whether or not Amazon SES publishes reputation metrics for the * configuration set, such as bounce and complaint rates, to Amazon * CloudWatch. *

*

* If the value is true, reputation metrics are published. If * the value is false, reputation metrics are not published. * The default value is false. *

* * @param reputationMetricsEnabled

* Describes whether or not Amazon SES publishes reputation * metrics for the configuration set, such as bounce and * complaint rates, to Amazon CloudWatch. *

*

* If the value is true, reputation metrics are * published. If the value is false, reputation * metrics are not published. The default value is * false. *

*/ public void setReputationMetricsEnabled(Boolean reputationMetricsEnabled) { this.reputationMetricsEnabled = reputationMetricsEnabled; } /** *

* Describes whether or not Amazon SES publishes reputation metrics for the * configuration set, such as bounce and complaint rates, to Amazon * CloudWatch. *

*

* If the value is true, reputation metrics are published. If * the value is false, reputation metrics are not published. * The default value is false. *

*

* Returns a reference to this object so that method calls can be chained * together. * * @param reputationMetricsEnabled

* Describes whether or not Amazon SES publishes reputation * metrics for the configuration set, such as bounce and * complaint rates, to Amazon CloudWatch. *

*

* If the value is true, reputation metrics are * published. If the value is false, reputation * metrics are not published. The default value is * false. *

* @return A reference to this updated object so that method calls can be * chained together. */ public ReputationOptions withReputationMetricsEnabled(Boolean reputationMetricsEnabled) { this.reputationMetricsEnabled = reputationMetricsEnabled; return this; } /** *

* The date and time at which the reputation metrics for the configuration * set were last reset. Resetting these metrics is known as a fresh * start. *

*

* When you disable email sending for a configuration set using * UpdateConfigurationSetSendingEnabled and later re-enable it, the * reputation metrics for the configuration set (but not for the entire * Amazon SES account) are reset. *

*

* If email sending for the configuration set has never been disabled and * later re-enabled, the value of this attribute is null. *

* * @return

* The date and time at which the reputation metrics for the * configuration set were last reset. Resetting these metrics is * known as a fresh start. *

*

* When you disable email sending for a configuration set using * UpdateConfigurationSetSendingEnabled and later re-enable * it, the reputation metrics for the configuration set (but not for * the entire Amazon SES account) are reset. *

*

* If email sending for the configuration set has never been * disabled and later re-enabled, the value of this attribute is * null. *

*/ public java.util.Date getLastFreshStart() { return lastFreshStart; } /** *

* The date and time at which the reputation metrics for the configuration * set were last reset. Resetting these metrics is known as a fresh * start. *

*

* When you disable email sending for a configuration set using * UpdateConfigurationSetSendingEnabled and later re-enable it, the * reputation metrics for the configuration set (but not for the entire * Amazon SES account) are reset. *

*

* If email sending for the configuration set has never been disabled and * later re-enabled, the value of this attribute is null. *

* * @param lastFreshStart

* The date and time at which the reputation metrics for the * configuration set were last reset. Resetting these metrics is * known as a fresh start. *

*

* When you disable email sending for a configuration set using * UpdateConfigurationSetSendingEnabled and later * re-enable it, the reputation metrics for the configuration set * (but not for the entire Amazon SES account) are reset. *

*

* If email sending for the configuration set has never been * disabled and later re-enabled, the value of this attribute is * null. *

*/ public void setLastFreshStart(java.util.Date lastFreshStart) { this.lastFreshStart = lastFreshStart; } /** *

* The date and time at which the reputation metrics for the configuration * set were last reset. Resetting these metrics is known as a fresh * start. *

*

* When you disable email sending for a configuration set using * UpdateConfigurationSetSendingEnabled and later re-enable it, the * reputation metrics for the configuration set (but not for the entire * Amazon SES account) are reset. *

*

* If email sending for the configuration set has never been disabled and * later re-enabled, the value of this attribute is null. *

*

* Returns a reference to this object so that method calls can be chained * together. * * @param lastFreshStart

* The date and time at which the reputation metrics for the * configuration set were last reset. Resetting these metrics is * known as a fresh start. *

*

* When you disable email sending for a configuration set using * UpdateConfigurationSetSendingEnabled and later * re-enable it, the reputation metrics for the configuration set * (but not for the entire Amazon SES account) are reset. *

*

* If email sending for the configuration set has never been * disabled and later re-enabled, the value of this attribute is * null. *

* @return A reference to this updated object so that method calls can be * chained together. */ public ReputationOptions withLastFreshStart(java.util.Date lastFreshStart) { this.lastFreshStart = lastFreshStart; return this; } /** * Returns a string representation of this object; useful for testing and * debugging. * * @return A string representation of this object. * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getSendingEnabled() != null) sb.append("SendingEnabled: " + getSendingEnabled() + ","); if (getReputationMetricsEnabled() != null) sb.append("ReputationMetricsEnabled: " + getReputationMetricsEnabled() + ","); if (getLastFreshStart() != null) sb.append("LastFreshStart: " + getLastFreshStart()); sb.append("}"); return sb.toString(); } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getSendingEnabled() == null) ? 0 : getSendingEnabled().hashCode()); hashCode = prime * hashCode + ((getReputationMetricsEnabled() == null) ? 0 : getReputationMetricsEnabled() .hashCode()); hashCode = prime * hashCode + ((getLastFreshStart() == null) ? 0 : getLastFreshStart().hashCode()); return hashCode; } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ReputationOptions == false) return false; ReputationOptions other = (ReputationOptions) obj; if (other.getSendingEnabled() == null ^ this.getSendingEnabled() == null) return false; if (other.getSendingEnabled() != null && other.getSendingEnabled().equals(this.getSendingEnabled()) == false) return false; if (other.getReputationMetricsEnabled() == null ^ this.getReputationMetricsEnabled() == null) return false; if (other.getReputationMetricsEnabled() != null && other.getReputationMetricsEnabled().equals(this.getReputationMetricsEnabled()) == false) return false; if (other.getLastFreshStart() == null ^ this.getLastFreshStart() == null) return false; if (other.getLastFreshStart() != null && other.getLastFreshStart().equals(this.getLastFreshStart()) == false) return false; return true; } }