/** * The names of the attributes. * * @param attributeNames * The names of the attributes. * @return Returns a reference to this object so that method calls can be chained together. */ public GetAttributesRequest withAttributeNames(java.util.Collection<String> attributeNames) { setAttributeNames(attributeNames); return this; }
/** * The names of the attributes. * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setAttributeNames(java.util.Collection)} or {@link #withAttributeNames(java.util.Collection)} if you want * to override the existing values. * </p> * * @param attributeNames * The names of the attributes. * @return Returns a reference to this object so that method calls can be chained together. */ public GetAttributesRequest withAttributeNames(String... attributeNames) { if (this.attributeNames == null) { setAttributeNames(new com.amazonaws.internal.SdkInternalList<String>(attributeNames.length)); } for (String ele : attributeNames) { this.attributeNames.add(ele); } return this; }
/** * The names of the attributes. * <p> * Returns a reference to this object so that method calls can be chained together. * * @param attributeNames The names of the attributes. * * @return A reference to this updated object so that method calls can be chained * together. */ public GetAttributesRequest withAttributeNames(String... attributeNames) { if (getAttributeNames() == null) setAttributeNames(new java.util.ArrayList<String>(attributeNames.length)); for (String value : attributeNames) { getAttributeNames().add(value); } return this; }
/** * The names of the attributes. * * @param attributeNames * The names of the attributes. * @return Returns a reference to this object so that method calls can be chained together. */ public GetAttributesRequest withAttributeNames(java.util.Collection<String> attributeNames) { setAttributeNames(attributeNames); return this; }
/** * The names of the attributes. * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setAttributeNames(java.util.Collection)} or {@link #withAttributeNames(java.util.Collection)} if you want * to override the existing values. * </p> * * @param attributeNames * The names of the attributes. * @return Returns a reference to this object so that method calls can be chained together. */ public GetAttributesRequest withAttributeNames(String... attributeNames) { if (this.attributeNames == null) { setAttributeNames(new com.amazonaws.internal.SdkInternalList<String>(attributeNames.length)); } for (String ele : attributeNames) { this.attributeNames.add(ele); } return this; }