public LoadBalancer withPublicPorts(Integer... publicPorts) {
        if (this.publicPorts == null) {
            setPublicPorts(new java.util.ArrayList<Integer>(publicPorts.length));
        }
        for (Integer ele : publicPorts) {
            this.publicPorts.add(ele);
        }
        return this;
    }
<p>
An array of public port settings for your load balancer. For HTTP, use port 80. For HTTPS, use port 443.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setPublicPorts(java.util.Collection)} or {@link #withPublicPorts(java.util.Collection)} if you want to
override the existing values.
</p>

@param publicPorts
       An array of public port settings for your load balancer. For HTTP, use port 80. For HTTPS, use port 443.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-lightsail/src/main/java/com/amazonaws/services/lightsail/model/LoadBalancer.java