public static final class CognitoOptions.Builder
extends java.lang.Object
CognitoOptions
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
CognitoOptions |
build()
Builds the configured instance.
|
CognitoOptions.Builder |
identityPoolId(java.lang.String identityPoolId)
Sets the value of
CognitoOptions.getIdentityPoolId() |
CognitoOptions.Builder |
role(IRole role)
Sets the value of
CognitoOptions.getRole() |
CognitoOptions.Builder |
userPoolId(java.lang.String userPoolId)
Sets the value of
CognitoOptions.getUserPoolId() |
public CognitoOptions.Builder identityPoolId(java.lang.String identityPoolId)
CognitoOptions.getIdentityPoolId()
identityPoolId
- The Amazon Cognito identity pool ID that you want Amazon OpenSearch Service to use for OpenSearch Dashboards authentication. This parameter is required.this
public CognitoOptions.Builder role(IRole role)
CognitoOptions.getRole()
role
- A role that allows Amazon OpenSearch Service to configure your user pool and identity pool. This parameter is required.
It must have the AmazonESCognitoAccess
policy attached to it.this
public CognitoOptions.Builder userPoolId(java.lang.String userPoolId)
CognitoOptions.getUserPoolId()
userPoolId
- The Amazon Cognito user pool ID that you want Amazon OpenSearch Service to use for OpenSearch Dashboards authentication. This parameter is required.this
public CognitoOptions build()
CognitoOptions
java.lang.NullPointerException
- if any required attribute was not provided