public CreateUserPoolRequest withSchema(SchemaAttributeType... schema) {
        if (this.schema == null) {
            setSchema(new java.util.ArrayList<SchemaAttributeType>(schema.length));
        }
        for (SchemaAttributeType ele : schema) {
            this.schema.add(ele);
        }
        return this;
    }
<p>
An array of schema attributes for the new user pool. These attributes can be standard or custom attributes.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setSchema(java.util.Collection)} or {@link #withSchema(java.util.Collection)} if you want to override the
existing values.
</p>

@param schema
       An array of schema attributes for the new user pool. These attributes can be standard or custom
       attributes.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-cognitoidp/src/main/java/com/amazonaws/services/cognitoidp/model/CreateUserPoolRequest.java