Class CfnIdentityPool.CognitoStreamsProperty.Builder
java.lang.Object
software.amazon.awscdk.services.cognito.CfnIdentityPool.CognitoStreamsProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnIdentityPool.CognitoStreamsProperty>
- Enclosing interface:
CfnIdentityPool.CognitoStreamsProperty
@Stability(Stable)
public static final class CfnIdentityPool.CognitoStreamsProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnIdentityPool.CognitoStreamsProperty>
A builder for
CfnIdentityPool.CognitoStreamsProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnIdentityPool.CognitoStreamsProperty.getRoleArn()streamingStatus(String streamingStatus) Sets the value ofCfnIdentityPool.CognitoStreamsProperty.getStreamingStatus()streamName(String streamName) Sets the value ofCfnIdentityPool.CognitoStreamsProperty.getStreamName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
roleArn
Sets the value ofCfnIdentityPool.CognitoStreamsProperty.getRoleArn()- Parameters:
roleArn- The Amazon Resource Name (ARN) of the role Amazon Cognito can assume to publish to the stream. This role must grant access to Amazon Cognito (cognito-sync) to invokePutRecordon your Amazon Cognito stream.- Returns:
this
-
streamingStatus
@Stability(Stable) public CfnIdentityPool.CognitoStreamsProperty.Builder streamingStatus(String streamingStatus) Sets the value ofCfnIdentityPool.CognitoStreamsProperty.getStreamingStatus()- Parameters:
streamingStatus- Status of the Amazon Cognito streams. Valid values are:ENABLEDorDISABLED.- Returns:
this
-
streamName
@Stability(Stable) public CfnIdentityPool.CognitoStreamsProperty.Builder streamName(String streamName) Sets the value ofCfnIdentityPool.CognitoStreamsProperty.getStreamName()- Parameters:
streamName- The name of the Amazon Cognito stream to receive updates. This stream must be in the developer's account and in the same Region as the identity pool.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnIdentityPool.CognitoStreamsProperty>- Returns:
- a new instance of
CfnIdentityPool.CognitoStreamsProperty - Throws:
NullPointerException- if any required attribute was not provided
-