public CreateWorkspaceRequest withAuthenticationProviders(AuthenticationProviderTypes... authenticationProviders) {
        java.util.ArrayList<String> authenticationProvidersCopy = new java.util.ArrayList<String>(authenticationProviders.length);
        for (AuthenticationProviderTypes value : authenticationProviders) {
            authenticationProvidersCopy.add(value.toString());
        }
        if (getAuthenticationProviders() == null) {
            setAuthenticationProviders(authenticationProvidersCopy);
        } else {
            getAuthenticationProviders().addAll(authenticationProvidersCopy);
        }
        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>

@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