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

com.amazonaws.services.simpleemail.model.DescribeConfigurationSetResult Maven / Gradle / Ivy

Go to download

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

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

/**
 * 

* Represents the details of a configuration set. Configuration sets enable you to publish email sending events. For * information about using configuration sets, see the Amazon SES Developer Guide. *

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

* The configuration set object associated with the specified configuration set. *

*/ private ConfigurationSet configurationSet; /** *

* A list of event destinations associated with the configuration set. *

*/ private com.amazonaws.internal.SdkInternalList eventDestinations; /** *

* The name of the custom open and click tracking domain associated with the configuration set. *

*/ private TrackingOptions trackingOptions; private DeliveryOptions deliveryOptions; /** *

* An object that represents the reputation settings for the configuration set. *

*/ private ReputationOptions reputationOptions; /** *

* The configuration set object associated with the specified configuration set. *

* * @param configurationSet * The configuration set object associated with the specified configuration set. */ public void setConfigurationSet(ConfigurationSet configurationSet) { this.configurationSet = configurationSet; } /** *

* The configuration set object associated with the specified configuration set. *

* * @return The configuration set object associated with the specified configuration set. */ public ConfigurationSet getConfigurationSet() { return this.configurationSet; } /** *

* The configuration set object associated with the specified configuration set. *

* * @param configurationSet * The configuration set object associated with the specified configuration set. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeConfigurationSetResult withConfigurationSet(ConfigurationSet configurationSet) { setConfigurationSet(configurationSet); return this; } /** *

* A list of event destinations associated with the configuration set. *

* * @return A list of event destinations associated with the configuration set. */ public java.util.List getEventDestinations() { if (eventDestinations == null) { eventDestinations = new com.amazonaws.internal.SdkInternalList(); } return eventDestinations; } /** *

* A list of event destinations associated with the configuration set. *

* * @param eventDestinations * A list of event destinations associated with the configuration set. */ public void setEventDestinations(java.util.Collection eventDestinations) { if (eventDestinations == null) { this.eventDestinations = null; return; } this.eventDestinations = new com.amazonaws.internal.SdkInternalList(eventDestinations); } /** *

* A list of event destinations associated with the configuration set. *

*

* NOTE: This method appends the values to the existing list (if any). Use * {@link #setEventDestinations(java.util.Collection)} or {@link #withEventDestinations(java.util.Collection)} if * you want to override the existing values. *

* * @param eventDestinations * A list of event destinations associated with the configuration set. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeConfigurationSetResult withEventDestinations(EventDestination... eventDestinations) { if (this.eventDestinations == null) { setEventDestinations(new com.amazonaws.internal.SdkInternalList(eventDestinations.length)); } for (EventDestination ele : eventDestinations) { this.eventDestinations.add(ele); } return this; } /** *

* A list of event destinations associated with the configuration set. *

* * @param eventDestinations * A list of event destinations associated with the configuration set. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeConfigurationSetResult withEventDestinations(java.util.Collection eventDestinations) { setEventDestinations(eventDestinations); return this; } /** *

* The name of the custom open and click tracking domain associated with the configuration set. *

* * @param trackingOptions * The name of the custom open and click tracking domain associated with the configuration set. */ public void setTrackingOptions(TrackingOptions trackingOptions) { this.trackingOptions = trackingOptions; } /** *

* The name of the custom open and click tracking domain associated with the configuration set. *

* * @return The name of the custom open and click tracking domain associated with the configuration set. */ public TrackingOptions getTrackingOptions() { return this.trackingOptions; } /** *

* The name of the custom open and click tracking domain associated with the configuration set. *

* * @param trackingOptions * The name of the custom open and click tracking domain associated with the configuration set. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeConfigurationSetResult withTrackingOptions(TrackingOptions trackingOptions) { setTrackingOptions(trackingOptions); return this; } /** * @param deliveryOptions */ public void setDeliveryOptions(DeliveryOptions deliveryOptions) { this.deliveryOptions = deliveryOptions; } /** * @return */ public DeliveryOptions getDeliveryOptions() { return this.deliveryOptions; } /** * @param deliveryOptions * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeConfigurationSetResult withDeliveryOptions(DeliveryOptions deliveryOptions) { setDeliveryOptions(deliveryOptions); return this; } /** *

* An object that represents the reputation settings for the configuration set. *

* * @param reputationOptions * An object that represents the reputation settings for the configuration set. */ public void setReputationOptions(ReputationOptions reputationOptions) { this.reputationOptions = reputationOptions; } /** *

* An object that represents the reputation settings for the configuration set. *

* * @return An object that represents the reputation settings for the configuration set. */ public ReputationOptions getReputationOptions() { return this.reputationOptions; } /** *

* An object that represents the reputation settings for the configuration set. *

* * @param reputationOptions * An object that represents the reputation settings for the configuration set. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeConfigurationSetResult withReputationOptions(ReputationOptions reputationOptions) { setReputationOptions(reputationOptions); 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 (getConfigurationSet() != null) sb.append("ConfigurationSet: ").append(getConfigurationSet()).append(","); if (getEventDestinations() != null) sb.append("EventDestinations: ").append(getEventDestinations()).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()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DescribeConfigurationSetResult == false) return false; DescribeConfigurationSetResult other = (DescribeConfigurationSetResult) obj; if (other.getConfigurationSet() == null ^ this.getConfigurationSet() == null) return false; if (other.getConfigurationSet() != null && other.getConfigurationSet().equals(this.getConfigurationSet()) == false) return false; if (other.getEventDestinations() == null ^ this.getEventDestinations() == null) return false; if (other.getEventDestinations() != null && other.getEventDestinations().equals(this.getEventDestinations()) == 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; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getConfigurationSet() == null) ? 0 : getConfigurationSet().hashCode()); hashCode = prime * hashCode + ((getEventDestinations() == null) ? 0 : getEventDestinations().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()); return hashCode; } @Override public DescribeConfigurationSetResult clone() { try { return (DescribeConfigurationSetResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy