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