/** * A list of available solution stacks and their <a>SolutionStackDescription</a>. * * <p><b>NOTE:</b> This method appends the values to the existing list (if any). Use {@link * #setSolutionStackDetails(java.util.Collection)} or {@link * #withSolutionStackDetails(java.util.Collection)} if you want to override the existing values. * * @param solutionStackDetails A list of available solution stacks and their * <a>SolutionStackDescription</a>. * @return Returns a reference to this object so that method calls can be chained together. */ public ListAvailableSolutionStacksResult withSolutionStackDetails( SolutionStackDescription... solutionStackDetails) { if (this.solutionStackDetails == null) { setSolutionStackDetails( new com.amazonaws.internal.SdkInternalList<SolutionStackDescription>( solutionStackDetails.length)); } for (SolutionStackDescription ele : solutionStackDetails) { this.solutionStackDetails.add(ele); } return this; }
/** * A list of available solution stacks and their <a>SolutionStackDescription</a>. * * @param solutionStackDetails A list of available solution stacks and their * <a>SolutionStackDescription</a>. * @return Returns a reference to this object so that method calls can be chained together. */ public ListAvailableSolutionStacksResult withSolutionStackDetails( java.util.Collection<SolutionStackDescription> solutionStackDetails) { setSolutionStackDetails(solutionStackDetails); return this; }