public CreateReplicationConfigurationRequest withDestinations(DestinationToCreate... destinations) {
        if (this.destinations == null) {
            setDestinations(new com.amazonaws.internal.SdkInternalList<DestinationToCreate>(destinations.length));
        }
        for (DestinationToCreate ele : destinations) {
            this.destinations.add(ele);
        }
        return this;
    }
<p>
An array of destination configuration objects. Only one destination configuration object is supported.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setDestinations(java.util.Collection)} or {@link #withDestinations(java.util.Collection)} if you want to
override the existing values.
</p>

@param destinations
       An array of destination configuration objects. Only one destination configuration object is supported.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-efs/src/main/java/com/amazonaws/services/elasticfilesystem/model/CreateReplicationConfigurationRequest.java