public UpdateStackRequest withAccessEndpoints(AccessEndpoint... accessEndpoints) {
        if (this.accessEndpoints == null) {
            setAccessEndpoints(new java.util.ArrayList<AccessEndpoint>(accessEndpoints.length));
        }
        for (AccessEndpoint ele : accessEndpoints) {
            this.accessEndpoints.add(ele);
        }
        return this;
    }
<p>
The list of interface VPC endpoint (interface endpoint) objects. Users of the stack can connect to AppStream 2.0
only through the specified endpoints.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setAccessEndpoints(java.util.Collection)} or {@link #withAccessEndpoints(java.util.Collection)} if you
want to override the existing values.
</p>

@param accessEndpoints
       The list of interface VPC endpoint (interface endpoint) objects. Users of the stack can connect to
       AppStream 2.0 only through the specified endpoints.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-appstream/src/main/java/com/amazonaws/services/appstream/model/UpdateStackRequest.java