public DiscoveryData withPublicIpAddresses(String... publicIpAddresses) {
        if (this.publicIpAddresses == null) {
            setPublicIpAddresses(new java.util.ArrayList<String>(publicIpAddresses.length));
        }
        for (String ele : publicIpAddresses) {
            this.publicIpAddresses.add(ele);
        }
        return this;
    }
<p>
List of public IP addresses to associate with agent.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setPublicIpAddresses(java.util.Collection)} or {@link #withPublicIpAddresses(java.util.Collection)} if
you want to override the existing values.
</p>

@param publicIpAddresses
       List of public IP addresses to associate with agent.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-groundstation/src/main/java/com/amazonaws/services/groundstation/model/DiscoveryData.java