public ReplicationRule withDestinations(java.util.Collection<ReplicationDestination> destinations) {
        setDestinations(destinations);
        return this;
    }
<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.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-ecr/src/main/java/com/amazonaws/services/ecr/model/ReplicationRule.java