/* * 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; import com.amazonaws.AmazonWebServiceRequest; /** *

* Returns the details of the specified configuration set. For information about * using configuration sets, see the Amazon SES Developer Guide. *

*

* You can execute this operation no more than once per second. *

*/ public class DescribeConfigurationSetRequest extends AmazonWebServiceRequest implements Serializable { /** *

* The name of the configuration set to describe. *

*/ private String configurationSetName; /** *

* A list of configuration set attributes to return. *

*/ private java.util.List configurationSetAttributeNames = new java.util.ArrayList(); /** *

* The name of the configuration set to describe. *

* * @return

* The name of the configuration set to describe. *

*/ public String getConfigurationSetName() { return configurationSetName; } /** *

* The name of the configuration set to describe. *

* * @param configurationSetName

* The name of the configuration set to describe. *

*/ public void setConfigurationSetName(String configurationSetName) { this.configurationSetName = configurationSetName; } /** *

* The name of the configuration set to describe. *

*

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

* The name of the configuration set to describe. *

* @return A reference to this updated object so that method calls can be * chained together. */ public DescribeConfigurationSetRequest withConfigurationSetName(String configurationSetName) { this.configurationSetName = configurationSetName; return this; } /** *

* A list of configuration set attributes to return. *

* * @return

* A list of configuration set attributes to return. *

*/ public java.util.List getConfigurationSetAttributeNames() { return configurationSetAttributeNames; } /** *

* A list of configuration set attributes to return. *

* * @param configurationSetAttributeNames

* A list of configuration set attributes to return. *

*/ public void setConfigurationSetAttributeNames( java.util.Collection configurationSetAttributeNames) { if (configurationSetAttributeNames == null) { this.configurationSetAttributeNames = null; return; } this.configurationSetAttributeNames = new java.util.ArrayList( configurationSetAttributeNames); } /** *

* A list of configuration set attributes to return. *

*

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

* A list of configuration set attributes to return. *

* @return A reference to this updated object so that method calls can be * chained together. */ public DescribeConfigurationSetRequest withConfigurationSetAttributeNames( String... configurationSetAttributeNames) { if (getConfigurationSetAttributeNames() == null) { this.configurationSetAttributeNames = new java.util.ArrayList( configurationSetAttributeNames.length); } for (String value : configurationSetAttributeNames) { this.configurationSetAttributeNames.add(value); } return this; } /** *

* A list of configuration set attributes to return. *

*

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

* A list of configuration set attributes to return. *

* @return A reference to this updated object so that method calls can be * chained together. */ public DescribeConfigurationSetRequest withConfigurationSetAttributeNames( java.util.Collection configurationSetAttributeNames) { setConfigurationSetAttributeNames(configurationSetAttributeNames); 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 (getConfigurationSetName() != null) sb.append("ConfigurationSetName: " + getConfigurationSetName() + ","); if (getConfigurationSetAttributeNames() != null) sb.append("ConfigurationSetAttributeNames: " + getConfigurationSetAttributeNames()); sb.append("}"); return sb.toString(); } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getConfigurationSetName() == null) ? 0 : getConfigurationSetName().hashCode()); hashCode = prime * hashCode + ((getConfigurationSetAttributeNames() == null) ? 0 : getConfigurationSetAttributeNames().hashCode()); return hashCode; } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DescribeConfigurationSetRequest == false) return false; DescribeConfigurationSetRequest other = (DescribeConfigurationSetRequest) obj; if (other.getConfigurationSetName() == null ^ this.getConfigurationSetName() == null) return false; if (other.getConfigurationSetName() != null && other.getConfigurationSetName().equals(this.getConfigurationSetName()) == false) return false; if (other.getConfigurationSetAttributeNames() == null ^ this.getConfigurationSetAttributeNames() == null) return false; if (other.getConfigurationSetAttributeNames() != null && other.getConfigurationSetAttributeNames().equals( this.getConfigurationSetAttributeNames()) == false) return false; return true; } }