public DenyCustomRoutingTrafficRequest withDestinationPorts(Integer... destinationPorts) {
        if (this.destinationPorts == null) {
            setDestinationPorts(new java.util.ArrayList<Integer>(destinationPorts.length));
        }
        for (Integer ele : destinationPorts) {
            this.destinationPorts.add(ele);
        }
        return this;
    }
<p>
A list of specific Amazon EC2 instance ports (destination ports) in a subnet endpoint that you want to prevent
from receiving traffic.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setDestinationPorts(java.util.Collection)} or {@link #withDestinationPorts(java.util.Collection)} if you
want to override the existing values.
</p>

@param destinationPorts
       A list of specific Amazon EC2 instance ports (destination ports) in a subnet endpoint that you want to
       prevent from receiving traffic.
@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