public TrafficRoute withListenerArns(String... listenerArns) {
        if (this.listenerArns == null) {
            setListenerArns(new com.amazonaws.internal.SdkInternalList<String>(listenerArns.length));
        }
        for (String ele : listenerArns) {
            this.listenerArns.add(ele);
        }
        return this;
    }
<p>
The Amazon Resource Name (ARN) of one listener. The listener identifies the route between a target group and a
load balancer. This is an array of strings with a maximum size of one.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setListenerArns(java.util.Collection)} or {@link #withListenerArns(java.util.Collection)} if you want to
override the existing values.
</p>

@param listenerArns
       The Amazon Resource Name (ARN) of one listener. The listener identifies the route between a target group
       and a load balancer. This is an array of strings with a maximum size of one.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-codedeploy/src/main/java/com/amazonaws/services/codedeploy/model/TrafficRoute.java