/** * The list of attributes. * * @param attributes * The list of attributes. * @return Returns a reference to this object so that method calls can be chained together. */ public PutAttributesRequest withAttributes(java.util.Collection<ReplaceableAttribute> attributes) { setAttributes(attributes); return this; }
/** * Constructs a new PutAttributesRequest object. Callers should use the setter or fluent setter (with...) methods to * initialize any additional object members. * * @param domainName * The name of the domain in which to perform the operation. * @param itemName * The name of the item. * @param attributes * The list of attributes. */ public PutAttributesRequest(String domainName, String itemName, java.util.List<ReplaceableAttribute> attributes) { setDomainName(domainName); setItemName(itemName); setAttributes(attributes); }
/** * The 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 * The list of attributes. * @return Returns a reference to this object so that method calls can be chained together. */ public PutAttributesRequest 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 PutAttributesRequest object. Callers should use the setter or fluent setter (with...) methods to * initialize any additional object members. * * @param domainName * The name of the domain in which to perform the operation. * @param itemName * The name of the item. * @param attributes * The list of attributes. * @param expected * The update condition which, if specified, determines whether the specified attributes will be updated or * not. The update condition must be satisfied in order for this request to be processed and the attributes * to be updated. */ public PutAttributesRequest(String domainName, String itemName, java.util.List<ReplaceableAttribute> attributes, UpdateCondition expected) { setDomainName(domainName); setItemName(itemName); setAttributes(attributes); setExpected(expected); }
/** * The list of attributes. * <p> * Returns a reference to this object so that method calls can be chained together. * * @param attributes The list of attributes. * * @return A reference to this updated object so that method calls can be chained * together. */ public PutAttributesRequest withAttributes(ReplaceableAttribute... attributes) { if (getAttributes() == null) setAttributes(new java.util.ArrayList<ReplaceableAttribute>(attributes.length)); for (ReplaceableAttribute value : attributes) { getAttributes().add(value); } return this; }
/** * Constructs a new PutAttributesRequest object. * Callers should use the setter or fluent setter (with...) methods to * initialize any additional object members. * * @param domainName The name of the domain in which to perform the * operation. * @param itemName The name of the item. * @param attributes The list of attributes. */ public PutAttributesRequest(String domainName, String itemName, java.util.List<ReplaceableAttribute> attributes) { setDomainName(domainName); setItemName(itemName); setAttributes(attributes); }
/** * Constructs a new PutAttributesRequest object. * Callers should use the setter or fluent setter (with...) methods to * initialize any additional object members. * * @param domainName The name of the domain in which to perform the * operation. * @param itemName The name of the item. * @param attributes The list of attributes. * @param expected The update condition which, if specified, determines * whether the specified attributes will be updated or not. The update * condition must be satisfied in order for this request to be processed * and the attributes to be updated. */ public PutAttributesRequest(String domainName, String itemName, java.util.List<ReplaceableAttribute> attributes, UpdateCondition expected) { setDomainName(domainName); setItemName(itemName); setAttributes(attributes); setExpected(expected); }
/** * The list of attributes. * * @param attributes * The list of attributes. * @return Returns a reference to this object so that method calls can be chained together. */ public PutAttributesRequest withAttributes(java.util.Collection<ReplaceableAttribute> attributes) { setAttributes(attributes); return this; }
/** * Constructs a new PutAttributesRequest object. Callers should use the setter or fluent setter (with...) methods to * initialize any additional object members. * * @param domainName * The name of the domain in which to perform the operation. * @param itemName * The name of the item. * @param attributes * The list of attributes. */ public PutAttributesRequest(String domainName, String itemName, java.util.List<ReplaceableAttribute> attributes) { setDomainName(domainName); setItemName(itemName); setAttributes(attributes); }
/** * The 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 * The list of attributes. * @return Returns a reference to this object so that method calls can be chained together. */ public PutAttributesRequest 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 PutAttributesRequest object. Callers should use the setter or fluent setter (with...) methods to * initialize any additional object members. * * @param domainName * The name of the domain in which to perform the operation. * @param itemName * The name of the item. * @param attributes * The list of attributes. * @param expected * The update condition which, if specified, determines whether the specified attributes will be updated or * not. The update condition must be satisfied in order for this request to be processed and the attributes * to be updated. */ public PutAttributesRequest(String domainName, String itemName, java.util.List<ReplaceableAttribute> attributes, UpdateCondition expected) { setDomainName(domainName); setItemName(itemName); setAttributes(attributes); setExpected(expected); }