public class CognitoStreams extends Object implements Serializable, Cloneable
Configuration options for configure Cognito streams.
| Constructor and Description |
|---|
CognitoStreams() |
| Modifier and Type | Method and Description |
|---|---|
CognitoStreams |
clone() |
boolean |
equals(Object obj) |
String |
getRoleArn()
The ARN of the role Amazon Cognito can assume in order to publish to
the stream.
|
String |
getStreamingStatus()
Status of the Cognito streams.
|
String |
getStreamName()
The name of the Cognito stream to receive updates.
|
int |
hashCode() |
void |
setRoleArn(String roleArn)
The ARN of the role Amazon Cognito can assume in order to publish to
the stream.
|
void |
setStreamingStatus(StreamingStatus streamingStatus)
Status of the Cognito streams.
|
void |
setStreamingStatus(String streamingStatus)
Status of the Cognito streams.
|
void |
setStreamName(String streamName)
The name of the Cognito stream to receive updates.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
CognitoStreams |
withRoleArn(String roleArn)
The ARN of the role Amazon Cognito can assume in order to publish to
the stream.
|
CognitoStreams |
withStreamingStatus(StreamingStatus streamingStatus)
Status of the Cognito streams.
|
CognitoStreams |
withStreamingStatus(String streamingStatus)
Status of the Cognito streams.
|
CognitoStreams |
withStreamName(String streamName)
The name of the Cognito stream to receive updates.
|
public String getStreamName()
Constraints:
Length: 1 - 128
public void setStreamName(String streamName)
Constraints:
Length: 1 - 128
streamName - The name of the Cognito stream to receive updates. This stream must be
in the developers account and in the same region as the identity pool.public CognitoStreams withStreamName(String streamName)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 128
streamName - The name of the Cognito stream to receive updates. This stream must be
in the developers account and in the same region as the identity pool.public String getRoleArn()
Constraints:
Length: 20 - 2048
Pattern: arn:aws:iam::\d+:role/.*
public void setRoleArn(String roleArn)
Constraints:
Length: 20 - 2048
Pattern: arn:aws:iam::\d+:role/.*
roleArn - The ARN of the role Amazon Cognito can assume in order to publish to
the stream. This role must grant access to Amazon Cognito
(cognito-sync) to invoke PutRecord on your Cognito stream.public CognitoStreams withRoleArn(String roleArn)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 20 - 2048
Pattern: arn:aws:iam::\d+:role/.*
roleArn - The ARN of the role Amazon Cognito can assume in order to publish to
the stream. This role must grant access to Amazon Cognito
(cognito-sync) to invoke PutRecord on your Cognito stream.public String getStreamingStatus()
ENABLED - Streaming of updates to identity pool is enabled.
DISABLED - Streaming of updates to identity pool is disabled. Bulk publish will also fail if StreamingStatus is DISABLED.
Constraints:
Allowed Values: ENABLED, DISABLED
ENABLED - Streaming of updates to identity pool is enabled.
DISABLED - Streaming of updates to identity pool is disabled. Bulk publish will also fail if StreamingStatus is DISABLED.
StreamingStatuspublic void setStreamingStatus(String streamingStatus)
ENABLED - Streaming of updates to identity pool is enabled.
DISABLED - Streaming of updates to identity pool is disabled. Bulk publish will also fail if StreamingStatus is DISABLED.
Constraints:
Allowed Values: ENABLED, DISABLED
streamingStatus - Status of the Cognito streams. Valid values are: ENABLED - Streaming of updates to identity pool is enabled.
DISABLED - Streaming of updates to identity pool is disabled. Bulk publish will also fail if StreamingStatus is DISABLED.
StreamingStatuspublic CognitoStreams withStreamingStatus(String streamingStatus)
ENABLED - Streaming of updates to identity pool is enabled.
DISABLED - Streaming of updates to identity pool is disabled. Bulk publish will also fail if StreamingStatus is DISABLED.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: ENABLED, DISABLED
streamingStatus - Status of the Cognito streams. Valid values are: ENABLED - Streaming of updates to identity pool is enabled.
DISABLED - Streaming of updates to identity pool is disabled. Bulk publish will also fail if StreamingStatus is DISABLED.
StreamingStatuspublic void setStreamingStatus(StreamingStatus streamingStatus)
ENABLED - Streaming of updates to identity pool is enabled.
DISABLED - Streaming of updates to identity pool is disabled. Bulk publish will also fail if StreamingStatus is DISABLED.
Constraints:
Allowed Values: ENABLED, DISABLED
streamingStatus - Status of the Cognito streams. Valid values are: ENABLED - Streaming of updates to identity pool is enabled.
DISABLED - Streaming of updates to identity pool is disabled. Bulk publish will also fail if StreamingStatus is DISABLED.
StreamingStatuspublic CognitoStreams withStreamingStatus(StreamingStatus streamingStatus)
ENABLED - Streaming of updates to identity pool is enabled.
DISABLED - Streaming of updates to identity pool is disabled. Bulk publish will also fail if StreamingStatus is DISABLED.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: ENABLED, DISABLED
streamingStatus - Status of the Cognito streams. Valid values are: ENABLED - Streaming of updates to identity pool is enabled.
DISABLED - Streaming of updates to identity pool is disabled. Bulk publish will also fail if StreamingStatus is DISABLED.
StreamingStatuspublic String toString()
toString in class ObjectObject.toString()public CognitoStreams clone()
Copyright © 2015. All rights reserved.