All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.pinpointemail.model.GetConfigurationSetResult Maven / Gradle / Ivy

Go to download

The AWS Java SDK for Amazon Pinpoint Email module holds the client classes that are used for communicating with Amazon Pinpoint Email Service

There is a newer version: 1.12.778
Show newest version
/*
 * Copyright 2015-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.pinpointemail.model;

import java.io.Serializable;
import javax.annotation.Generated;

/**
 * 

* Information about a configuration set. *

* * @see AWS * API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class GetConfigurationSetResult extends com.amazonaws.AmazonWebServiceResult implements Serializable, Cloneable { /** *

* The name of the configuration set. *

*/ 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 Pinpoint 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 Pinpoint can send email that you send using the configuration set. *

*/ private SendingOptions sendingOptions; /** *

* An array of objects that define the tags (keys and values) that are associated with the configuration set. *

*/ private java.util.List tags; /** *

* The name of the configuration set. *

* * @param configurationSetName * The name of the configuration set. */ public void setConfigurationSetName(String configurationSetName) { this.configurationSetName = configurationSetName; } /** *

* The name of the configuration set. *

* * @return The name of the configuration set. */ public String getConfigurationSetName() { return this.configurationSetName; } /** *

* The name of the configuration set. *

* * @param configurationSetName * The name of the configuration set. * @return Returns a reference to this object so that method calls can be chained together. */ public GetConfigurationSetResult 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 GetConfigurationSetResult 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 GetConfigurationSetResult withDeliveryOptions(DeliveryOptions deliveryOptions) { setDeliveryOptions(deliveryOptions); return this; } /** *

* An object that defines whether or not Amazon Pinpoint collects reputation metrics for the emails that you send * that use the configuration set. *

* * @param reputationOptions * An object that defines whether or not Amazon Pinpoint 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 Pinpoint collects reputation metrics for the emails that you send * that use the configuration set. *

* * @return An object that defines whether or not Amazon Pinpoint 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 Pinpoint collects reputation metrics for the emails that you send * that use the configuration set. *

* * @param reputationOptions * An object that defines whether or not Amazon Pinpoint 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 GetConfigurationSetResult withReputationOptions(ReputationOptions reputationOptions) { setReputationOptions(reputationOptions); return this; } /** *

* An object that defines whether or not Amazon Pinpoint can send email that you send using the configuration set. *

* * @param sendingOptions * An object that defines whether or not Amazon Pinpoint 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 Pinpoint can send email that you send using the configuration set. *

* * @return An object that defines whether or not Amazon Pinpoint can send email that you send using the * configuration set. */ public SendingOptions getSendingOptions() { return this.sendingOptions; } /** *

* An object that defines whether or not Amazon Pinpoint can send email that you send using the configuration set. *

* * @param sendingOptions * An object that defines whether or not Amazon Pinpoint 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 GetConfigurationSetResult withSendingOptions(SendingOptions sendingOptions) { setSendingOptions(sendingOptions); return this; } /** *

* An array of objects that define the tags (keys and values) that are associated with the configuration set. *

* * @return An array of objects that define the tags (keys and values) that are associated with the configuration * set. */ public java.util.List getTags() { return tags; } /** *

* An array of objects that define the tags (keys and values) that are associated with the configuration set. *

* * @param tags * An array of objects that define the tags (keys and values) that are associated 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) that are associated 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) that are associated with the configuration set. * @return Returns a reference to this object so that method calls can be chained together. */ public GetConfigurationSetResult 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) that are associated with the configuration set. *

* * @param tags * An array of objects that define the tags (keys and values) that are associated with the configuration set. * @return Returns a reference to this object so that method calls can be chained together. */ public GetConfigurationSetResult withTags(java.util.Collection tags) { setTags(tags); 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()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof GetConfigurationSetResult == false) return false; GetConfigurationSetResult other = (GetConfigurationSetResult) 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; 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()); return hashCode; } @Override public GetConfigurationSetResult clone() { try { return (GetConfigurationSetResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy