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