/** * <p> * Any tags assigned to the security group. * </p> * * @param tags * Any tags assigned to the security group. * @return Returns a reference to this object so that method calls can be chained together. */ public SecurityGroup withTags(java.util.Collection<Tag> tags) { setTags(tags); return this; }
/** * <p> * Any tags assigned to the security group. * </p> * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setTags(java.util.Collection)} or {@link #withTags(java.util.Collection)} if you want to override the * existing values. * </p> * * @param tags * Any tags assigned to the security group. * @return Returns a reference to this object so that method calls can be chained together. */ public SecurityGroup withTags(Tag... tags) { if (this.tags == null) { setTags(new com.amazonaws.internal.SdkInternalList<Tag>(tags.length)); } for (Tag ele : tags) { this.tags.add(ele); } return this; }
/** * Any tags assigned to the security group. * <p> * Returns a reference to this object so that method calls can be chained together. * * @param tags Any tags assigned to the security group. * * @return A reference to this updated object so that method calls can be chained * together. */ public SecurityGroup withTags(Tag... tags) { if (getTags() == null) setTags(new java.util.ArrayList<Tag>(tags.length)); for (Tag value : tags) { getTags().add(value); } return this; }
/** * <p> * Any tags assigned to the security group. * </p> * * @param tags * Any tags assigned to the security group. * @return Returns a reference to this object so that method calls can be chained together. */ public SecurityGroup withTags(java.util.Collection<Tag> tags) { setTags(tags); return this; }
/** * <p> * Any tags assigned to the security group. * </p> * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setTags(java.util.Collection)} or {@link #withTags(java.util.Collection)} if you want to override the * existing values. * </p> * * @param tags * Any tags assigned to the security group. * @return Returns a reference to this object so that method calls can be chained together. */ public SecurityGroup withTags(Tag... tags) { if (this.tags == null) { setTags(new com.amazonaws.internal.SdkInternalList<Tag>(tags.length)); } for (Tag ele : tags) { this.tags.add(ele); } return this; }