Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /*
   * Copyright 2010-2015 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;
 

A list of available AWS Elastic Beanstalk solution stacks.

 
 public class ListAvailableSolutionStacksResult implements SerializableCloneable {

    
A list of available solution stacks.
 
A list of available solution stacks and their SolutionStackDescription.
 
A list of available solution stacks.

Returns:
A list of available solution stacks.
 
     public java.util.List<StringgetSolutionStacks() {
         if ( == null) {
                = new com.amazonaws.internal.ListWithAutoConstructFlag<String>();
               .setAutoConstruct(true);
         }
         return ;
     }
    
    
A list of available solution stacks.

Parameters:
solutionStacks A list of available solution stacks.
 
     public void setSolutionStacks(java.util.Collection<StringsolutionStacks) {
         if (solutionStacks == null) {
             this. = null;
             return;
         }
         com.amazonaws.internal.ListWithAutoConstructFlag<StringsolutionStacksCopy = new com.amazonaws.internal.ListWithAutoConstructFlag<String>(solutionStacks.size());
         solutionStacksCopy.addAll(solutionStacks);
         this. = solutionStacksCopy;
     }
    
    
A list of available solution stacks.

Returns a reference to this object so that method calls can be chained together.

Parameters:
solutionStacks A list of available solution stacks.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public ListAvailableSolutionStacksResult withSolutionStacks(String... solutionStacks) {
         if (getSolutionStacks() == nullsetSolutionStacks(new java.util.ArrayList<String>(solutionStacks.length));
         for (String value : solutionStacks) {
             getSolutionStacks().add(value);
         }
         return this;
     }
    
    
A list of available solution stacks.

Returns a reference to this object so that method calls can be chained together.

Parameters:
solutionStacks A list of available solution stacks.
Returns:
A reference to this updated object so that method calls can be chained together.
 
         if (solutionStacks == null) {
             this. = null;
         } else {
             com.amazonaws.internal.ListWithAutoConstructFlag<StringsolutionStacksCopy = new com.amazonaws.internal.ListWithAutoConstructFlag<String>(solutionStacks.size());
             solutionStacksCopy.addAll(solutionStacks);
             this. = solutionStacksCopy;
        }
        return this;
    }

    
A list of available solution stacks and their SolutionStackDescription.

Returns:
A list of available solution stacks and their SolutionStackDescription.
        if ( == null) {
              .setAutoConstruct(true);
        }
        return ;
    }
    
    
A list of available solution stacks and their SolutionStackDescription.

Parameters:
solutionStackDetails A list of available solution stacks and their SolutionStackDescription.
    public void setSolutionStackDetails(java.util.Collection<SolutionStackDescriptionsolutionStackDetails) {
        if (solutionStackDetails == null) {
            this. = null;
            return;
        }
        solutionStackDetailsCopy.addAll(solutionStackDetails);
        this. = solutionStackDetailsCopy;
    }
    
    
A list of available solution stacks and their SolutionStackDescription.

Returns a reference to this object so that method calls can be chained together.

Parameters:
solutionStackDetails A list of available solution stacks and their SolutionStackDescription.
Returns:
A reference to this updated object so that method calls can be chained together.
        if (getSolutionStackDetails() == nullsetSolutionStackDetails(new java.util.ArrayList<SolutionStackDescription>(solutionStackDetails.length));
        for (SolutionStackDescription value : solutionStackDetails) {
            getSolutionStackDetails().add(value);
        }
        return this;
    }
    
    
A list of available solution stacks and their SolutionStackDescription.

Returns a reference to this object so that method calls can be chained together.

Parameters:
solutionStackDetails A list of available solution stacks and their SolutionStackDescription.
Returns:
A reference to this updated object so that method calls can be chained together.
        if (solutionStackDetails == null) {
            this. = null;
        } else {
            solutionStackDetailsCopy.addAll(solutionStackDetails);
            this. = solutionStackDetailsCopy;
        }
        return this;
    }

    
Returns a string representation of this object; useful for testing and debugging.

Returns:
A string representation of this object.
See also:
java.lang.Object.toString()
    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append("{");
        if (getSolutionStacks() != nullsb.append("SolutionStacks: " + getSolutionStacks() + ",");
        if (getSolutionStackDetails() != nullsb.append("SolutionStackDetails: " + getSolutionStackDetails() );
        sb.append("}");
        return sb.toString();
    }
    
    @Override
    public int hashCode() {
        final int prime = 31;
        int hashCode = 1;
        
        hashCode = prime * hashCode + ((getSolutionStacks() == null) ? 0 : getSolutionStacks().hashCode()); 
        hashCode = prime * hashCode + ((getSolutionStackDetails() == null) ? 0 : getSolutionStackDetails().hashCode()); 
        return hashCode;
    }
    
    @Override
    public boolean equals(Object obj) {
        if (this == objreturn true;
        if (obj == nullreturn false;
        if (obj instanceof ListAvailableSolutionStacksResult == falsereturn false;
        
        if (other.getSolutionStacks() == null ^ this.getSolutionStacks() == nullreturn false;
        if (other.getSolutionStacks() != null && other.getSolutionStacks().equals(this.getSolutionStacks()) == falsereturn false
        if (other.getSolutionStackDetails() == null ^ this.getSolutionStackDetails() == nullreturn false;
        if (other.getSolutionStackDetails() != null && other.getSolutionStackDetails().equals(this.getSolutionStackDetails()) == falsereturn false
        return true;
    }
    
    @Override
        try {
            return (ListAvailableSolutionStacksResultsuper.clone();
        
        } catch (CloneNotSupportedException e) {
            throw new IllegalStateException(
                    "Got a CloneNotSupportedException from Object.clone() "
                    + "even though we're Cloneable!",
                    e);
        }
        
    }
}
    
New to GrepCode? Check out our FAQ X