Class CognitoStreams
- java.lang.Object
-
- software.amazon.awssdk.services.cognitosync.model.CognitoStreams
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<CognitoStreams.Builder,CognitoStreams>
@Generated("software.amazon.awssdk:codegen") public final class CognitoStreams extends Object implements SdkPojo, Serializable, ToCopyableBuilder<CognitoStreams.Builder,CognitoStreams>
Configuration options for configure Cognito streams.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceCognitoStreams.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CognitoStreams.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()StringroleArn()The ARN of the role Amazon Cognito can assume in order to publish to the stream.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends CognitoStreams.Builder>serializableBuilderClass()StreamingStatusstreamingStatus()Status of the Cognito streams.StringstreamingStatusAsString()Status of the Cognito streams.StringstreamName()The name of the Cognito stream to receive updates.CognitoStreams.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
streamName
public final String 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.- Returns:
- 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.
-
roleArn
public final String 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.- Returns:
- 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.
-
streamingStatus
public final StreamingStatus 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.
If the service returns an enum value that is not available in the current SDK version,
streamingStatuswill returnStreamingStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstreamingStatusAsString().- Returns:
- 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.
- See Also:
StreamingStatus
-
streamingStatusAsString
public final String streamingStatusAsString()
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.
If the service returns an enum value that is not available in the current SDK version,
streamingStatuswill returnStreamingStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstreamingStatusAsString().- Returns:
- 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.
- See Also:
StreamingStatus
-
toBuilder
public CognitoStreams.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<CognitoStreams.Builder,CognitoStreams>
-
builder
public static CognitoStreams.Builder builder()
-
serializableBuilderClass
public static Class<? extends CognitoStreams.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-