public CreateDistributionConfigurationRequest withDistributions(Distribution... distributions) {
        if (this.distributions == null) {
            setDistributions(new java.util.ArrayList<Distribution>(distributions.length));
        }
        for (Distribution ele : distributions) {
            this.distributions.add(ele);
        }
        return this;
    }
<p>
The distributions of the distribution configuration.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setDistributions(java.util.Collection)} or {@link #withDistributions(java.util.Collection)} if you want
to override the existing values.
</p>

@param distributions
       The distributions of the distribution configuration.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-imagebuilder/src/main/java/com/amazonaws/services/imagebuilder/model/CreateDistributionConfigurationRequest.java