public AssetAttributes withIpv4Addresses(String... ipv4Addresses) {
        if (this.ipv4Addresses == null) {
            setIpv4Addresses(new java.util.ArrayList<String>(ipv4Addresses.length));
        }
        for (String ele : ipv4Addresses) {
            this.ipv4Addresses.add(ele);
        }
        return this;
    }
<p>
The list of IP v4 addresses of the EC2 instance where the finding is generated.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setIpv4Addresses(java.util.Collection)} or {@link #withIpv4Addresses(java.util.Collection)} if you want
to override the existing values.
</p>

@param ipv4Addresses
       The list of IP v4 addresses of the EC2 instance where the finding is generated.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-inspector/src/main/java/com/amazonaws/services/inspector/model/AssetAttributes.java