public ImpactedLocation withIpv4Prefixes(String... ipv4Prefixes) {
        if (this.ipv4Prefixes == null) {
            setIpv4Prefixes(new java.util.ArrayList<String>(ipv4Prefixes.length));
        }
        for (String ele : ipv4Prefixes) {
            this.ipv4Prefixes.add(ele);
        }
        return this;
    }
<p>
The IPv4 prefixes at the client location that was impacted by the health event.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setIpv4Prefixes(java.util.Collection)} or {@link #withIpv4Prefixes(java.util.Collection)} if you want to
override the existing values.
</p>

@param ipv4Prefixes
       The IPv4 prefixes at the client location that was impacted by the health event.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-internetmonitor/src/main/java/com/amazonaws/services/internetmonitor/model/ImpactedLocation.java