public UpdateTableRequest withAttributeDefinitions(AttributeDefinition... attributeDefinitions) {
        if (this.attributeDefinitions == null) {
            setAttributeDefinitions(new java.util.ArrayList<AttributeDefinition>(attributeDefinitions.length));
        }
        for (AttributeDefinition ele : attributeDefinitions) {
            this.attributeDefinitions.add(ele);
        }
        return this;
    }
<p>
An array of attributes that describe the key schema for the table and indexes. If you are adding a new global
secondary index to the table, <code>AttributeDefinitions</code> must include the key element(s) of the new index.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setAttributeDefinitions(java.util.Collection)} or {@link #withAttributeDefinitions(java.util.Collection)}
if you want to override the existing values.
</p>

@param attributeDefinitions
       An array of attributes that describe the key schema for the table and indexes. If you are adding a new
       global secondary index to the table, <code>AttributeDefinitions</code> must include the key element(s) of
       the new index.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-dynamodb/src/main/java/com/amazonaws/services/dynamodbv2/model/UpdateTableRequest.java