public void setDestinations(java.util.Collection<ReplicationDestination> destinations) {
        if (destinations == null) {
            this.destinations = null;
            return;
        }

        this.destinations = new java.util.ArrayList<ReplicationDestination>(destinations);
    }
<p>
An array of objects representing the destination for a replication rule.
</p>

@param destinations
       An array of objects representing the destination for a replication rule.
aws-java-sdk-ecr/src/main/java/com/amazonaws/services/ecr/model/ReplicationRule.java