public class CognitoStreams
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
roleArn
The ARN of the role Amazon Cognito can assume in order to publish to the
stream.
|
private java.lang.String |
streamingStatus
Status of the Cognito streams.
|
private java.lang.String |
streamName
The name of the Cognito stream to receive updates.
|
Constructor and Description |
---|
CognitoStreams() |
Modifier and Type | Method and Description |
---|---|
CognitoStreams |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getRoleArn()
The ARN of the role Amazon Cognito can assume in order to publish to the
stream.
|
java.lang.String |
getStreamingStatus()
Status of the Cognito streams.
|
java.lang.String |
getStreamName()
The name of the Cognito stream to receive updates.
|
int |
hashCode() |
void |
setRoleArn(java.lang.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(java.lang.String streamingStatus)
Status of the Cognito streams.
|
void |
setStreamName(java.lang.String streamName)
The name of the Cognito stream to receive updates.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
CognitoStreams |
withRoleArn(java.lang.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(java.lang.String streamingStatus)
Status of the Cognito streams.
|
CognitoStreams |
withStreamName(java.lang.String streamName)
The name of the Cognito stream to receive updates.
|
private java.lang.String streamName
private java.lang.String roleArn
private java.lang.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.
public void setStreamName(java.lang.String streamName)
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 java.lang.String getStreamName()
public CognitoStreams withStreamName(java.lang.String streamName)
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 void setRoleArn(java.lang.String roleArn)
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 java.lang.String getRoleArn()
public CognitoStreams withRoleArn(java.lang.String roleArn)
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 void setStreamingStatus(java.lang.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.
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.
StreamingStatus
public java.lang.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.
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.
StreamingStatus
public CognitoStreams withStreamingStatus(java.lang.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.
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.
StreamingStatus
public 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.
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.
StreamingStatus
public 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.
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.
StreamingStatus
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public CognitoStreams clone()
clone
in class java.lang.Object