public NetworkAcl withEntries(NetworkAclEntry... entries) {
        if (this.entries == null) {
            setEntries(new com.amazonaws.internal.SdkInternalList<NetworkAclEntry>(entries.length));
        }
        for (NetworkAclEntry ele : entries) {
            this.entries.add(ele);
        }
        return this;
    }
<p>
The entries (rules) in the network ACL.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setEntries(java.util.Collection)} or {@link #withEntries(java.util.Collection)} if you want to override
the existing values.
</p>

@param entries
       The entries (rules) in the network ACL.
@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/NetworkAcl.java