public ByoipCidr withAsnAssociations(AsnAssociation... asnAssociations) {
        if (this.asnAssociations == null) {
            setAsnAssociations(new com.amazonaws.internal.SdkInternalList<AsnAssociation>(asnAssociations.length));
        }
        for (AsnAssociation ele : asnAssociations) {
            this.asnAssociations.add(ele);
        }
        return this;
    }
<p>
The BYOIP CIDR associations with ASNs.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setAsnAssociations(java.util.Collection)} or {@link #withAsnAssociations(java.util.Collection)} if you
want to override the existing values.
</p>

@param asnAssociations
       The BYOIP CIDR associations with ASNs.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/model/ByoipCidr.java