/** * A list of attributes. * * @param attributes * A list of attributes. * @return Returns a reference to this object so that method calls can be chained together. */ public Item withAttributes(java.util.Collection<Attribute> attributes) { setAttributes(attributes); return this; }
/** * Constructs a new Item object. Callers should use the setter or fluent setter (with...) methods to initialize any * additional object members. * * @param name * The name of the item. * @param attributes * A list of attributes. */ public Item(String name, java.util.List<Attribute> attributes) { setName(name); setAttributes(attributes); }
/** * A list of attributes. * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setAttributes(java.util.Collection)} or {@link #withAttributes(java.util.Collection)} if you want to * override the existing values. * </p> * * @param attributes * A list of attributes. * @return Returns a reference to this object so that method calls can be chained together. */ public Item withAttributes(Attribute... attributes) { if (this.attributes == null) { setAttributes(new com.amazonaws.internal.SdkInternalList<Attribute>(attributes.length)); } for (Attribute ele : attributes) { this.attributes.add(ele); } return this; }
/** * Constructs a new Item object. * Callers should use the setter or fluent setter (with...) methods to * initialize any additional object members. * * @param name The name of the item. * @param attributes A list of attributes. */ public Item(String name, java.util.List<Attribute> attributes) { setName(name); setAttributes(attributes); }
/** * A list of attributes. * <p> * Returns a reference to this object so that method calls can be chained together. * * @param attributes A list of attributes. * * @return A reference to this updated object so that method calls can be chained * together. */ public Item withAttributes(Attribute... attributes) { if (getAttributes() == null) setAttributes(new java.util.ArrayList<Attribute>(attributes.length)); for (Attribute value : attributes) { getAttributes().add(value); } return this; }
/** * A list of attributes. * * @param attributes * A list of attributes. * @return Returns a reference to this object so that method calls can be chained together. */ public Item withAttributes(java.util.Collection<Attribute> attributes) { setAttributes(attributes); return this; }
/** * Constructs a new Item object. Callers should use the setter or fluent setter (with...) methods to initialize any * additional object members. * * @param name * The name of the item. * @param attributes * A list of attributes. */ public Item(String name, java.util.List<Attribute> attributes) { setName(name); setAttributes(attributes); }
/** * A list of attributes. * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setAttributes(java.util.Collection)} or {@link #withAttributes(java.util.Collection)} if you want to * override the existing values. * </p> * * @param attributes * A list of attributes. * @return Returns a reference to this object so that method calls can be chained together. */ public Item withAttributes(Attribute... attributes) { if (this.attributes == null) { setAttributes(new com.amazonaws.internal.SdkInternalList<Attribute>(attributes.length)); } for (Attribute ele : attributes) { this.attributes.add(ele); } return this; }