public CreateWorkspaceRequest withAuthenticationProviders(String... authenticationProviders) {
        if (this.authenticationProviders == null) {
            setAuthenticationProviders(new java.util.ArrayList<String>(authenticationProviders.length));
        }
        for (String ele : authenticationProviders) {
            this.authenticationProviders.add(ele);
        }
        return this;
    }
<p>
Specifies whether this workspace uses SAML 2.0, IAM Identity Center, or both to authenticate users for using the
Grafana console within a workspace. For more information, see <a
href="https://docs.aws.amazon.com/grafana/latest/userguide/authentication-in-AMG.html">User authentication in
Amazon Managed Grafana</a>.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setAuthenticationProviders(java.util.Collection)} or
{@link #withAuthenticationProviders(java.util.Collection)} if you want to override the existing values.
</p>

@param authenticationProviders
       Specifies whether this workspace uses SAML 2.0, IAM Identity Center, or both to authenticate users for
       using the Grafana console within a workspace. For more information, see <a
       href="https://docs.aws.amazon.com/grafana/latest/userguide/authentication-in-AMG.html">User authentication
       in Amazon Managed Grafana</a>.
@return Returns a reference to this object so that method calls can be chained together.
@see AuthenticationProviderTypes
aws-java-sdk-managedgrafana/src/main/java/com/amazonaws/services/managedgrafana/model/CreateWorkspaceRequest.java