public NetworkAcl withAssociations(NetworkAclAssociation... associations) {
        if (this.associations == null) {
            setAssociations(new com.amazonaws.internal.SdkInternalList<NetworkAclAssociation>(associations.length));
        }
        for (NetworkAclAssociation ele : associations) {
            this.associations.add(ele);
        }
        return this;
    }
public NetworkAcl withAssociations ( NetworkAclAssociation ... associations ) { if ( this . associations == null ) { setAssociations ( new com . amazonaws . internal . SdkInternalList < NetworkAclAssociation > ( associations . length ) ) ; } for ( NetworkAclAssociation ele : associations ) { this . associations . add ( ele ) ; } return this ; }
<p>
Any associations between the network ACL and one or more subnets
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setAssociations(java.util.Collection)} or {@link #withAssociations(java.util.Collection)} if you want to
override the existing values.
</p>

@param associations
Any associations between the network ACL and one or more subnets
@return Returns a reference to this object so that method calls can be chained together.