/** * <p> * A list of tags with their associated resources. * </p> * * @param taggedResources * A list of tags with their associated resources. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeTagsResult withTaggedResources(java.util.Collection<TaggedResource> taggedResources) { setTaggedResources(taggedResources); return this; }
/** * <p> * A list of tags with their associated resources. * </p> * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setTaggedResources(java.util.Collection)} or {@link #withTaggedResources(java.util.Collection)} if you * want to override the existing values. * </p> * * @param taggedResources * A list of tags with their associated resources. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeTagsResult withTaggedResources(TaggedResource... taggedResources) { if (this.taggedResources == null) { setTaggedResources(new com.amazonaws.internal.SdkInternalList<TaggedResource>(taggedResources.length)); } for (TaggedResource ele : taggedResources) { this.taggedResources.add(ele); } return this; }
/** * <p> * A list of tags with their associated resources. * </p> * * @param taggedResources * A list of tags with their associated resources. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeTagsResult withTaggedResources(java.util.Collection<TaggedResource> taggedResources) { setTaggedResources(taggedResources); return this; }
/** * <p> * A list of tags with their associated resources. * </p> * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setTaggedResources(java.util.Collection)} or {@link #withTaggedResources(java.util.Collection)} if you * want to override the existing values. * </p> * * @param taggedResources * A list of tags with their associated resources. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeTagsResult withTaggedResources(TaggedResource... taggedResources) { if (this.taggedResources == null) { setTaggedResources(new com.amazonaws.internal.SdkInternalList<TaggedResource>(taggedResources.length)); } for (TaggedResource ele : taggedResources) { this.taggedResources.add(ele); } return this; }