@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CognitoOptions extends Object implements Serializable, Cloneable, StructuredPojo
Options to specify the Cognito user and identity pools for OpenSearch Dashboards authentication. For more information, see Configuring Amazon Cognito authentication for OpenSearch Dashboards.
Constructor and Description |
---|
CognitoOptions() |
Modifier and Type | Method and Description |
---|---|
CognitoOptions |
clone() |
boolean |
equals(Object obj) |
Boolean |
getEnabled()
The option to enable Cognito for OpenSearch Dashboards authentication.
|
String |
getIdentityPoolId()
The Cognito identity pool ID for OpenSearch Dashboards authentication.
|
String |
getRoleArn()
The role ARN that provides OpenSearch permissions for accessing Cognito resources.
|
String |
getUserPoolId()
The Cognito user pool ID for OpenSearch Dashboards authentication.
|
int |
hashCode() |
Boolean |
isEnabled()
The option to enable Cognito for OpenSearch Dashboards authentication.
|
void |
marshall(ProtocolMarshaller protocolMarshaller) |
void |
setEnabled(Boolean enabled)
The option to enable Cognito for OpenSearch Dashboards authentication.
|
void |
setIdentityPoolId(String identityPoolId)
The Cognito identity pool ID for OpenSearch Dashboards authentication.
|
void |
setRoleArn(String roleArn)
The role ARN that provides OpenSearch permissions for accessing Cognito resources.
|
void |
setUserPoolId(String userPoolId)
The Cognito user pool ID for OpenSearch Dashboards authentication.
|
String |
toString()
Returns a string representation of this object.
|
CognitoOptions |
withEnabled(Boolean enabled)
The option to enable Cognito for OpenSearch Dashboards authentication.
|
CognitoOptions |
withIdentityPoolId(String identityPoolId)
The Cognito identity pool ID for OpenSearch Dashboards authentication.
|
CognitoOptions |
withRoleArn(String roleArn)
The role ARN that provides OpenSearch permissions for accessing Cognito resources.
|
CognitoOptions |
withUserPoolId(String userPoolId)
The Cognito user pool ID for OpenSearch Dashboards authentication.
|
public void setEnabled(Boolean enabled)
The option to enable Cognito for OpenSearch Dashboards authentication.
enabled
- The option to enable Cognito for OpenSearch Dashboards authentication.public Boolean getEnabled()
The option to enable Cognito for OpenSearch Dashboards authentication.
public CognitoOptions withEnabled(Boolean enabled)
The option to enable Cognito for OpenSearch Dashboards authentication.
enabled
- The option to enable Cognito for OpenSearch Dashboards authentication.public Boolean isEnabled()
The option to enable Cognito for OpenSearch Dashboards authentication.
public void setUserPoolId(String userPoolId)
The Cognito user pool ID for OpenSearch Dashboards authentication.
userPoolId
- The Cognito user pool ID for OpenSearch Dashboards authentication.public String getUserPoolId()
The Cognito user pool ID for OpenSearch Dashboards authentication.
public CognitoOptions withUserPoolId(String userPoolId)
The Cognito user pool ID for OpenSearch Dashboards authentication.
userPoolId
- The Cognito user pool ID for OpenSearch Dashboards authentication.public void setIdentityPoolId(String identityPoolId)
The Cognito identity pool ID for OpenSearch Dashboards authentication.
identityPoolId
- The Cognito identity pool ID for OpenSearch Dashboards authentication.public String getIdentityPoolId()
The Cognito identity pool ID for OpenSearch Dashboards authentication.
public CognitoOptions withIdentityPoolId(String identityPoolId)
The Cognito identity pool ID for OpenSearch Dashboards authentication.
identityPoolId
- The Cognito identity pool ID for OpenSearch Dashboards authentication.public void setRoleArn(String roleArn)
The role ARN that provides OpenSearch permissions for accessing Cognito resources.
roleArn
- The role ARN that provides OpenSearch permissions for accessing Cognito resources.public String getRoleArn()
The role ARN that provides OpenSearch permissions for accessing Cognito resources.
public CognitoOptions withRoleArn(String roleArn)
The role ARN that provides OpenSearch permissions for accessing Cognito resources.
roleArn
- The role ARN that provides OpenSearch permissions for accessing Cognito resources.public String toString()
toString
in class Object
Object.toString()
public CognitoOptions clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
marshall
in interface StructuredPojo
Copyright © 2022. All rights reserved.