code: public DescribeVpcEndpointServicePermissionsResult withAllowedPrincipals(AllowedPrincipal... allowedPrincipals) {
          if (this.allowedPrincipals == null) {
              setAllowedPrincipals(new com.amazonaws.internal.SdkInternalList<AllowedPrincipal>(allowedPrincipals.length));
          }
          for (AllowedPrincipal ele : allowedPrincipals) {
              this.allowedPrincipals.add(ele);
          }
          return this;
      }
docs: <p>
  Information about one or more allowed principals.
  </p>
  <p>
  <b>NOTE:</b> This method appends the values to the existing list (if any). Use
  {@link #setAllowedPrincipals(java.util.Collection)} or {@link #withAllowedPrincipals(java.util.Collection)} if
  you want to override the existing values.
  </p>
  
  @param allowedPrincipals
  Information about one or more allowed principals.
  @return Returns a reference to this object so that method calls can be chained together.