public ListVpcEndpointAccessResult withAuthorizedPrincipalList(AuthorizedPrincipal... authorizedPrincipalList) {
        if (this.authorizedPrincipalList == null) {
            setAuthorizedPrincipalList(new java.util.ArrayList<AuthorizedPrincipal>(authorizedPrincipalList.length));
        }
        for (AuthorizedPrincipal ele : authorizedPrincipalList) {
            this.authorizedPrincipalList.add(ele);
        }
        return this;
    }
<p>
A list of <a
href="https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_principal.html">IAM
principals</a> that can currently access the domain.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setAuthorizedPrincipalList(java.util.Collection)} or
{@link #withAuthorizedPrincipalList(java.util.Collection)} if you want to override the existing values.
</p>

@param authorizedPrincipalList
       A list of <a
       href="https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_principal.html">IAM
       principals</a> that can currently access the domain.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-opensearch/src/main/java/com/amazonaws/services/opensearch/model/ListVpcEndpointAccessResult.java