com.amazonaws.services.simpleemail.model.ReputationOptions Maven / Gradle / Ivy
Show all versions of aws-java-sdk-ses 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.simpleemail.model;
import java.io.Serializable;
import javax.annotation.Generated;
/**
*
* Contains information about the reputation settings for a configuration set.
*
*
* @see AWS API
* Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class ReputationOptions implements Serializable, Cloneable {
/**
*
* Describes whether email sending is enabled or disabled for the configuration set. If the value is
* true
, then Amazon SES sends emails that use the configuration set. If the value is
* false
, Amazon SES does 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 sends emails that use the configuration set. If the value is
* false
, Amazon SES does 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 sends emails that use the configuration set. If the value is
* false
, Amazon SES does 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 sends emails that use the configuration set. If the value is
* false
, Amazon SES does 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 sends emails that use the configuration set. If the value is
* false
, Amazon SES does not send emails that use the configuration set. The default value is
* true
. You can change this setting using UpdateConfigurationSetSendingEnabled.
*/
public Boolean getSendingEnabled() {
return this.sendingEnabled;
}
/**
*
* Describes whether email sending is enabled or disabled for the configuration set. If the value is
* true
, then Amazon SES sends emails that use the configuration set. If the value is
* false
, Amazon SES does 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 sends emails that use the configuration set. If the value is
* false
, Amazon SES does not send emails that use the configuration set. The default value is
* true
. You can change this setting using UpdateConfigurationSetSendingEnabled.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ReputationOptions withSendingEnabled(Boolean sendingEnabled) {
setSendingEnabled(sendingEnabled);
return this;
}
/**
*
* Describes whether email sending is enabled or disabled for the configuration set. If the value is
* true
, then Amazon SES sends emails that use the configuration set. If the value is
* false
, Amazon SES does 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 sends emails that use the configuration set. If the value is
* false
, Amazon SES does not send emails that use the configuration set. The default value is
* true
. You can change this setting using UpdateConfigurationSetSendingEnabled.
*/
public Boolean isSendingEnabled() {
return this.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
.
*
*
* @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
.
*
*
* @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 this.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
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ReputationOptions withReputationMetricsEnabled(Boolean reputationMetricsEnabled) {
setReputationMetricsEnabled(reputationMetricsEnabled);
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 this.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
.
*
*
* @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
.
*
*
* @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 this.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
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ReputationOptions withLastFreshStart(java.util.Date lastFreshStart) {
setLastFreshStart(lastFreshStart);
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 (getSendingEnabled() != null)
sb.append("SendingEnabled: ").append(getSendingEnabled()).append(",");
if (getReputationMetricsEnabled() != null)
sb.append("ReputationMetricsEnabled: ").append(getReputationMetricsEnabled()).append(",");
if (getLastFreshStart() != null)
sb.append("LastFreshStart: ").append(getLastFreshStart());
sb.append("}");
return sb.toString();
}
@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;
}
@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 ReputationOptions clone() {
try {
return (ReputationOptions) super.clone();
} catch (CloneNotSupportedException e) {
throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e);
}
}
}