/** * The list of attributes for a replaceable item. * * @param attributes * The list of attributes for a replaceable item. * @return Returns a reference to this object so that method calls can be chained together. */ public ReplaceableItem withAttributes(java.util.Collection<ReplaceableAttribute> attributes) { setAttributes(attributes); return this; }
/** * Constructs a new ReplaceableItem object. Callers should use the setter or fluent setter (with...) methods to * initialize any additional object members. * * @param name * The name of the replaceable item. * @param attributes * The list of attributes for a replaceable item. */ public ReplaceableItem(String name, java.util.List<ReplaceableAttribute> attributes) { setName(name); setAttributes(attributes); }
/** * The list of attributes for a replaceable item. * <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 * The list of attributes for a replaceable item. * @return Returns a reference to this object so that method calls can be chained together. */ public ReplaceableItem withAttributes(ReplaceableAttribute... attributes) { if (this.attributes == null) { setAttributes(new com.amazonaws.internal.SdkInternalList<ReplaceableAttribute>(attributes.length)); } for (ReplaceableAttribute ele : attributes) { this.attributes.add(ele); } return this; }
/** * Constructs a new ReplaceableItem object. * Callers should use the setter or fluent setter (with...) methods to * initialize any additional object members. * * @param name The name of the replaceable item. * @param attributes The list of attributes for a replaceable item. */ public ReplaceableItem(String name, java.util.List<ReplaceableAttribute> attributes) { setName(name); setAttributes(attributes); }
/** * The list of attributes for a replaceable item. * <p> * Returns a reference to this object so that method calls can be chained together. * * @param attributes The list of attributes for a replaceable item. * * @return A reference to this updated object so that method calls can be chained * together. */ public ReplaceableItem withAttributes(ReplaceableAttribute... attributes) { if (getAttributes() == null) setAttributes(new java.util.ArrayList<ReplaceableAttribute>(attributes.length)); for (ReplaceableAttribute value : attributes) { getAttributes().add(value); } return this; }
/** * The list of attributes for a replaceable item. * * @param attributes * The list of attributes for a replaceable item. * @return Returns a reference to this object so that method calls can be chained together. */ public ReplaceableItem withAttributes(java.util.Collection<ReplaceableAttribute> attributes) { setAttributes(attributes); return this; }
/** * Constructs a new ReplaceableItem object. Callers should use the setter or fluent setter (with...) methods to * initialize any additional object members. * * @param name * The name of the replaceable item. * @param attributes * The list of attributes for a replaceable item. */ public ReplaceableItem(String name, java.util.List<ReplaceableAttribute> attributes) { setName(name); setAttributes(attributes); }
/** * The list of attributes for a replaceable item. * <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 * The list of attributes for a replaceable item. * @return Returns a reference to this object so that method calls can be chained together. */ public ReplaceableItem withAttributes(ReplaceableAttribute... attributes) { if (this.attributes == null) { setAttributes(new com.amazonaws.internal.SdkInternalList<ReplaceableAttribute>(attributes.length)); } for (ReplaceableAttribute ele : attributes) { this.attributes.add(ele); } return this; }