com.amazonaws.services.simpleemailv2.model.CreateConfigurationSetRequest 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;
import com.amazonaws.AmazonWebServiceRequest;
/**
*
* A request to create a configuration set.
*
*
* @see AWS API
* Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class CreateConfigurationSetRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {
/**
*
* The name of the configuration set. The name can contain up to 64 alphanumeric characters, including letters,
* numbers, hyphens (-) and underscores (_) only.
*
*/
private String configurationSetName;
/**
*
* An object that defines the open and click tracking options for emails that you send using the configuration set.
*
*/
private TrackingOptions trackingOptions;
/**
*
* An object that defines the dedicated IP pool that is used to send emails that you send using the configuration
* set.
*
*/
private DeliveryOptions deliveryOptions;
/**
*
* An object that defines whether or not Amazon SES collects reputation metrics for the emails that you send that
* use the configuration set.
*
*/
private ReputationOptions reputationOptions;
/**
*
* An object that defines whether or not Amazon SES can send email that you send using the configuration set.
*
*/
private SendingOptions sendingOptions;
/**
*
* An array of objects that define the tags (keys and values) to associate with the configuration set.
*
*/
private java.util.List tags;
private SuppressionOptions suppressionOptions;
/**
*
* An object that defines the VDM options for emails that you send using the configuration set.
*
*/
private VdmOptions vdmOptions;
/**
*
* The name of the configuration set. The name can contain up to 64 alphanumeric characters, including letters,
* numbers, hyphens (-) and underscores (_) only.
*
*
* @param configurationSetName
* The name of the configuration set. The name can contain up to 64 alphanumeric characters, including
* letters, numbers, hyphens (-) and underscores (_) only.
*/
public void setConfigurationSetName(String configurationSetName) {
this.configurationSetName = configurationSetName;
}
/**
*
* The name of the configuration set. The name can contain up to 64 alphanumeric characters, including letters,
* numbers, hyphens (-) and underscores (_) only.
*
*
* @return The name of the configuration set. The name can contain up to 64 alphanumeric characters, including
* letters, numbers, hyphens (-) and underscores (_) only.
*/
public String getConfigurationSetName() {
return this.configurationSetName;
}
/**
*
* The name of the configuration set. The name can contain up to 64 alphanumeric characters, including letters,
* numbers, hyphens (-) and underscores (_) only.
*
*
* @param configurationSetName
* The name of the configuration set. The name can contain up to 64 alphanumeric characters, including
* letters, numbers, hyphens (-) and underscores (_) only.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateConfigurationSetRequest withConfigurationSetName(String configurationSetName) {
setConfigurationSetName(configurationSetName);
return this;
}
/**
*
* An object that defines the open and click tracking options for emails that you send using the configuration set.
*
*
* @param trackingOptions
* An object that defines the open and click tracking options for emails that you send using the
* configuration set.
*/
public void setTrackingOptions(TrackingOptions trackingOptions) {
this.trackingOptions = trackingOptions;
}
/**
*
* An object that defines the open and click tracking options for emails that you send using the configuration set.
*
*
* @return An object that defines the open and click tracking options for emails that you send using the
* configuration set.
*/
public TrackingOptions getTrackingOptions() {
return this.trackingOptions;
}
/**
*
* An object that defines the open and click tracking options for emails that you send using the configuration set.
*
*
* @param trackingOptions
* An object that defines the open and click tracking options for emails that you send using the
* configuration set.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateConfigurationSetRequest withTrackingOptions(TrackingOptions trackingOptions) {
setTrackingOptions(trackingOptions);
return this;
}
/**
*
* An object that defines the dedicated IP pool that is used to send emails that you send using the configuration
* set.
*
*
* @param deliveryOptions
* An object that defines the dedicated IP pool that is used to send emails that you send using the
* configuration set.
*/
public void setDeliveryOptions(DeliveryOptions deliveryOptions) {
this.deliveryOptions = deliveryOptions;
}
/**
*
* An object that defines the dedicated IP pool that is used to send emails that you send using the configuration
* set.
*
*
* @return An object that defines the dedicated IP pool that is used to send emails that you send using the
* configuration set.
*/
public DeliveryOptions getDeliveryOptions() {
return this.deliveryOptions;
}
/**
*
* An object that defines the dedicated IP pool that is used to send emails that you send using the configuration
* set.
*
*
* @param deliveryOptions
* An object that defines the dedicated IP pool that is used to send emails that you send using the
* configuration set.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateConfigurationSetRequest withDeliveryOptions(DeliveryOptions deliveryOptions) {
setDeliveryOptions(deliveryOptions);
return this;
}
/**
*
* An object that defines whether or not Amazon SES collects reputation metrics for the emails that you send that
* use the configuration set.
*
*
* @param reputationOptions
* An object that defines whether or not Amazon SES collects reputation metrics for the emails that you send
* that use the configuration set.
*/
public void setReputationOptions(ReputationOptions reputationOptions) {
this.reputationOptions = reputationOptions;
}
/**
*
* An object that defines whether or not Amazon SES collects reputation metrics for the emails that you send that
* use the configuration set.
*
*
* @return An object that defines whether or not Amazon SES collects reputation metrics for the emails that you send
* that use the configuration set.
*/
public ReputationOptions getReputationOptions() {
return this.reputationOptions;
}
/**
*
* An object that defines whether or not Amazon SES collects reputation metrics for the emails that you send that
* use the configuration set.
*
*
* @param reputationOptions
* An object that defines whether or not Amazon SES collects reputation metrics for the emails that you send
* that use the configuration set.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateConfigurationSetRequest withReputationOptions(ReputationOptions reputationOptions) {
setReputationOptions(reputationOptions);
return this;
}
/**
*
* An object that defines whether or not Amazon SES can send email that you send using the configuration set.
*
*
* @param sendingOptions
* An object that defines whether or not Amazon SES can send email that you send using the configuration set.
*/
public void setSendingOptions(SendingOptions sendingOptions) {
this.sendingOptions = sendingOptions;
}
/**
*
* An object that defines whether or not Amazon SES can send email that you send using the configuration set.
*
*
* @return An object that defines whether or not Amazon SES can send email that you send using the configuration
* set.
*/
public SendingOptions getSendingOptions() {
return this.sendingOptions;
}
/**
*
* An object that defines whether or not Amazon SES can send email that you send using the configuration set.
*
*
* @param sendingOptions
* An object that defines whether or not Amazon SES can send email that you send using the configuration set.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateConfigurationSetRequest withSendingOptions(SendingOptions sendingOptions) {
setSendingOptions(sendingOptions);
return this;
}
/**
*
* An array of objects that define the tags (keys and values) to associate with the configuration set.
*
*
* @return An array of objects that define the tags (keys and values) to associate with the configuration set.
*/
public java.util.List getTags() {
return tags;
}
/**
*
* An array of objects that define the tags (keys and values) to associate with the configuration set.
*
*
* @param tags
* An array of objects that define the tags (keys and values) to associate with the configuration set.
*/
public void setTags(java.util.Collection tags) {
if (tags == null) {
this.tags = null;
return;
}
this.tags = new java.util.ArrayList(tags);
}
/**
*
* An array of objects that define the tags (keys and values) to associate with the configuration set.
*
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setTags(java.util.Collection)} or {@link #withTags(java.util.Collection)} if you want to override the
* existing values.
*
*
* @param tags
* An array of objects that define the tags (keys and values) to associate with the configuration set.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateConfigurationSetRequest withTags(Tag... tags) {
if (this.tags == null) {
setTags(new java.util.ArrayList(tags.length));
}
for (Tag ele : tags) {
this.tags.add(ele);
}
return this;
}
/**
*
* An array of objects that define the tags (keys and values) to associate with the configuration set.
*
*
* @param tags
* An array of objects that define the tags (keys and values) to associate with the configuration set.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateConfigurationSetRequest withTags(java.util.Collection tags) {
setTags(tags);
return this;
}
/**
* @param suppressionOptions
*/
public void setSuppressionOptions(SuppressionOptions suppressionOptions) {
this.suppressionOptions = suppressionOptions;
}
/**
* @return
*/
public SuppressionOptions getSuppressionOptions() {
return this.suppressionOptions;
}
/**
* @param suppressionOptions
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateConfigurationSetRequest withSuppressionOptions(SuppressionOptions suppressionOptions) {
setSuppressionOptions(suppressionOptions);
return this;
}
/**
*
* An object that defines the VDM options for emails that you send using the configuration set.
*
*
* @param vdmOptions
* An object that defines the VDM options for emails that you send using the configuration set.
*/
public void setVdmOptions(VdmOptions vdmOptions) {
this.vdmOptions = vdmOptions;
}
/**
*
* An object that defines the VDM options for emails that you send using the configuration set.
*
*
* @return An object that defines the VDM options for emails that you send using the configuration set.
*/
public VdmOptions getVdmOptions() {
return this.vdmOptions;
}
/**
*
* An object that defines the VDM options for emails that you send using the configuration set.
*
*
* @param vdmOptions
* An object that defines the VDM options for emails that you send using the configuration set.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateConfigurationSetRequest withVdmOptions(VdmOptions vdmOptions) {
setVdmOptions(vdmOptions);
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 (getConfigurationSetName() != null)
sb.append("ConfigurationSetName: ").append(getConfigurationSetName()).append(",");
if (getTrackingOptions() != null)
sb.append("TrackingOptions: ").append(getTrackingOptions()).append(",");
if (getDeliveryOptions() != null)
sb.append("DeliveryOptions: ").append(getDeliveryOptions()).append(",");
if (getReputationOptions() != null)
sb.append("ReputationOptions: ").append(getReputationOptions()).append(",");
if (getSendingOptions() != null)
sb.append("SendingOptions: ").append(getSendingOptions()).append(",");
if (getTags() != null)
sb.append("Tags: ").append(getTags()).append(",");
if (getSuppressionOptions() != null)
sb.append("SuppressionOptions: ").append(getSuppressionOptions()).append(",");
if (getVdmOptions() != null)
sb.append("VdmOptions: ").append(getVdmOptions());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof CreateConfigurationSetRequest == false)
return false;
CreateConfigurationSetRequest other = (CreateConfigurationSetRequest) obj;
if (other.getConfigurationSetName() == null ^ this.getConfigurationSetName() == null)
return false;
if (other.getConfigurationSetName() != null && other.getConfigurationSetName().equals(this.getConfigurationSetName()) == false)
return false;
if (other.getTrackingOptions() == null ^ this.getTrackingOptions() == null)
return false;
if (other.getTrackingOptions() != null && other.getTrackingOptions().equals(this.getTrackingOptions()) == false)
return false;
if (other.getDeliveryOptions() == null ^ this.getDeliveryOptions() == null)
return false;
if (other.getDeliveryOptions() != null && other.getDeliveryOptions().equals(this.getDeliveryOptions()) == false)
return false;
if (other.getReputationOptions() == null ^ this.getReputationOptions() == null)
return false;
if (other.getReputationOptions() != null && other.getReputationOptions().equals(this.getReputationOptions()) == false)
return false;
if (other.getSendingOptions() == null ^ this.getSendingOptions() == null)
return false;
if (other.getSendingOptions() != null && other.getSendingOptions().equals(this.getSendingOptions()) == false)
return false;
if (other.getTags() == null ^ this.getTags() == null)
return false;
if (other.getTags() != null && other.getTags().equals(this.getTags()) == false)
return false;
if (other.getSuppressionOptions() == null ^ this.getSuppressionOptions() == null)
return false;
if (other.getSuppressionOptions() != null && other.getSuppressionOptions().equals(this.getSuppressionOptions()) == false)
return false;
if (other.getVdmOptions() == null ^ this.getVdmOptions() == null)
return false;
if (other.getVdmOptions() != null && other.getVdmOptions().equals(this.getVdmOptions()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getConfigurationSetName() == null) ? 0 : getConfigurationSetName().hashCode());
hashCode = prime * hashCode + ((getTrackingOptions() == null) ? 0 : getTrackingOptions().hashCode());
hashCode = prime * hashCode + ((getDeliveryOptions() == null) ? 0 : getDeliveryOptions().hashCode());
hashCode = prime * hashCode + ((getReputationOptions() == null) ? 0 : getReputationOptions().hashCode());
hashCode = prime * hashCode + ((getSendingOptions() == null) ? 0 : getSendingOptions().hashCode());
hashCode = prime * hashCode + ((getTags() == null) ? 0 : getTags().hashCode());
hashCode = prime * hashCode + ((getSuppressionOptions() == null) ? 0 : getSuppressionOptions().hashCode());
hashCode = prime * hashCode + ((getVdmOptions() == null) ? 0 : getVdmOptions().hashCode());
return hashCode;
}
@Override
public CreateConfigurationSetRequest clone() {
return (CreateConfigurationSetRequest) super.clone();
}
}