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

        this.destinations = new java.util.ArrayList<NetworkRouteDestination>(destinations);
    }
<p>
The destinations.
</p>

@param destinations
       The destinations.
aws-java-sdk-networkmanager/src/main/java/com/amazonaws/services/networkmanager/model/NetworkRoute.java