/** * <p> * List of tags returned by the ListTagsForResource operation. * </p> * * @param tagList * List of tags returned by the ListTagsForResource operation. * @return Returns a reference to this object so that method calls can be chained together. */ public ListTagsForResourceResult withTagList(java.util.Collection<Tag> tagList) { setTagList(tagList); return this; }
/** * <p> * List of tags returned by the ListTagsForResource operation. * </p> * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setTagList(java.util.Collection)} or {@link #withTagList(java.util.Collection)} if you want to override * the existing values. * </p> * * @param tagList * List of tags returned by the ListTagsForResource operation. * @return Returns a reference to this object so that method calls can be chained together. */ public ListTagsForResourceResult withTagList(Tag... tagList) { if (this.tagList == null) { setTagList(new com.amazonaws.internal.SdkInternalList<Tag>(tagList.length)); } for (Tag ele : tagList) { this.tagList.add(ele); } return this; }
/** * <p> * List of tags returned by the ListTagsForResource operation. * </p> * * @param tagList * List of tags returned by the ListTagsForResource operation. * @return Returns a reference to this object so that method calls can be chained together. */ public ListTagsForResourceResult withTagList(java.util.Collection<Tag> tagList) { setTagList(tagList); return this; }
/** * <p> * List of tags returned by the ListTagsForResource operation. * </p> * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setTagList(java.util.Collection)} or {@link #withTagList(java.util.Collection)} if you want to override * the existing values. * </p> * * @param tagList * List of tags returned by the ListTagsForResource operation. * @return Returns a reference to this object so that method calls can be chained together. */ public ListTagsForResourceResult withTagList(Tag... tagList) { if (this.tagList == null) { setTagList(new com.amazonaws.internal.SdkInternalList<Tag>(tagList.length)); } for (Tag ele : tagList) { this.tagList.add(ele); } return this; }