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

com.amazonaws.services.elasticbeanstalk.model.DescribeConfigurationOptionsResult Maven / Gradle / Ivy

Go to download

The AWS Java SDK for AWS Elastic Beanstalk module holds the client classes that are used for communicating with AWS Elastic Beanstalk Service

The newest version!
/*
 * Copyright 2010-2016 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.elasticbeanstalk.model;

import java.io.Serializable;

/**
 * 

* Describes the settings for a specified configuration set. *

*/ public class DescribeConfigurationOptionsResult implements Serializable, Cloneable { /** *

* The name of the solution stack these configuration options belong to. *

*/ private String solutionStackName; /** *

* A list of ConfigurationOptionDescription. *

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

* The name of the solution stack these configuration options belong to. *

* * @param solutionStackName * The name of the solution stack these configuration options belong * to. */ public void setSolutionStackName(String solutionStackName) { this.solutionStackName = solutionStackName; } /** *

* The name of the solution stack these configuration options belong to. *

* * @return The name of the solution stack these configuration options belong * to. */ public String getSolutionStackName() { return this.solutionStackName; } /** *

* The name of the solution stack these configuration options belong to. *

* * @param solutionStackName * The name of the solution stack these configuration options belong * to. * @return Returns a reference to this object so that method calls can be * chained together. */ public DescribeConfigurationOptionsResult withSolutionStackName( String solutionStackName) { setSolutionStackName(solutionStackName); return this; } /** *

* A list of ConfigurationOptionDescription. *

* * @return A list of ConfigurationOptionDescription. */ public java.util.List getOptions() { if (options == null) { options = new com.amazonaws.internal.SdkInternalList(); } return options; } /** *

* A list of ConfigurationOptionDescription. *

* * @param options * A list of ConfigurationOptionDescription. */ public void setOptions( java.util.Collection options) { if (options == null) { this.options = null; return; } this.options = new com.amazonaws.internal.SdkInternalList( options); } /** *

* A list of ConfigurationOptionDescription. *

*

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

* * @param options * A list of ConfigurationOptionDescription. * @return Returns a reference to this object so that method calls can be * chained together. */ public DescribeConfigurationOptionsResult withOptions( ConfigurationOptionDescription... options) { if (this.options == null) { setOptions(new com.amazonaws.internal.SdkInternalList( options.length)); } for (ConfigurationOptionDescription ele : options) { this.options.add(ele); } return this; } /** *

* A list of ConfigurationOptionDescription. *

* * @param options * A list of ConfigurationOptionDescription. * @return Returns a reference to this object so that method calls can be * chained together. */ public DescribeConfigurationOptionsResult withOptions( java.util.Collection options) { setOptions(options); 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 (getSolutionStackName() != null) sb.append("SolutionStackName: " + getSolutionStackName() + ","); if (getOptions() != null) sb.append("Options: " + getOptions()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DescribeConfigurationOptionsResult == false) return false; DescribeConfigurationOptionsResult other = (DescribeConfigurationOptionsResult) obj; if (other.getSolutionStackName() == null ^ this.getSolutionStackName() == null) return false; if (other.getSolutionStackName() != null && other.getSolutionStackName().equals( this.getSolutionStackName()) == false) return false; if (other.getOptions() == null ^ this.getOptions() == null) return false; if (other.getOptions() != null && other.getOptions().equals(this.getOptions()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getSolutionStackName() == null) ? 0 : getSolutionStackName().hashCode()); hashCode = prime * hashCode + ((getOptions() == null) ? 0 : getOptions().hashCode()); return hashCode; } @Override public DescribeConfigurationOptionsResult clone() { try { return (DescribeConfigurationOptionsResult) 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