public DenyCustomRoutingTrafficRequest withDestinationAddresses(String... destinationAddresses) {
        if (this.destinationAddresses == null) {
            setDestinationAddresses(new java.util.ArrayList<String>(destinationAddresses.length));
        }
        for (String ele : destinationAddresses) {
            this.destinationAddresses.add(ele);
        }
        return this;
    }
<p>
A list of specific Amazon EC2 instance IP addresses (destination addresses) in a subnet that you want to prevent
from receiving traffic. The IP addresses must be a subset of the IP addresses allowed for the VPC subnet
associated with the endpoint group.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setDestinationAddresses(java.util.Collection)} or {@link #withDestinationAddresses(java.util.Collection)}
if you want to override the existing values.
</p>

@param destinationAddresses
       A list of specific Amazon EC2 instance IP addresses (destination addresses) in a subnet that you want to
       prevent from receiving traffic. The IP addresses must be a subset of the IP addresses allowed for the VPC
       subnet associated with the endpoint group.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-globalaccelerator/src/main/java/com/amazonaws/services/globalaccelerator/model/DenyCustomRoutingTrafficRequest.java