StructuredPojo, ToCopyableBuilder<StreamDescription.Builder,StreamDescription>@Generated("software.amazon.awssdk:codegen") public class StreamDescription extends Object implements StructuredPojo, ToCopyableBuilder<StreamDescription.Builder,StreamDescription>
Represents the output for DescribeStream.
| Modifier and Type | Class | Description |
|---|---|---|
static interface |
StreamDescription.Builder |
| Modifier and Type | Method | Description |
|---|---|---|
static StreamDescription.Builder |
builder() |
|
List<EnhancedMetrics> |
enhancedMonitoring() |
Represents the current enhanced monitoring settings of the stream.
|
boolean |
equals(Object obj) |
|
int |
hashCode() |
|
Boolean |
hasMoreShards() |
If set to
true, more shards in the stream are available to describe. |
void |
marshall(ProtocolMarshaller protocolMarshaller) |
Marshalls this structured data using the given
ProtocolMarshaller. |
Integer |
retentionPeriodHours() |
The current retention period, in hours.
|
static Class<? extends StreamDescription.Builder> |
serializableBuilderClass() |
|
List<Shard> |
shards() |
The shards that comprise the stream.
|
String |
streamARN() |
The Amazon Resource Name (ARN) for the stream being described.
|
Date |
streamCreationTimestamp() |
The approximate time that the stream was created.
|
String |
streamName() |
The name of the stream being described.
|
String |
streamStatus() |
The current status of the stream being described.
|
StreamDescription.Builder |
toBuilder() |
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
public String streamName()
The name of the stream being described.
public String streamARN()
The Amazon Resource Name (ARN) for the stream being described.
public String streamStatus()
The current status of the stream being described. The stream status is one of the following states:
CREATING - The stream is being created. Amazon Kinesis immediately returns and sets
StreamStatus to CREATING.
DELETING - The stream is being deleted. The specified stream is in the DELETING state
until Amazon Kinesis completes the deletion.
ACTIVE - The stream exists and is ready for read and write operations or deletion. You should
perform read and write operations only on an ACTIVE stream.
UPDATING - Shards in the stream are being merged or split. Read and write operations continue to
work while the stream is in the UPDATING state.
CREATING - The stream is being created. Amazon Kinesis immediately returns and sets
StreamStatus to CREATING.
DELETING - The stream is being deleted. The specified stream is in the DELETING
state until Amazon Kinesis completes the deletion.
ACTIVE - The stream exists and is ready for read and write operations or deletion. You
should perform read and write operations only on an ACTIVE stream.
UPDATING - Shards in the stream are being merged or split. Read and write operations
continue to work while the stream is in the UPDATING state.
StreamStatuspublic List<Shard> shards()
The shards that comprise the stream.
public Boolean hasMoreShards()
If set to true, more shards in the stream are available to describe.
true, more shards in the stream are available to describe.public Integer retentionPeriodHours()
The current retention period, in hours.
public Date streamCreationTimestamp()
The approximate time that the stream was created.
public List<EnhancedMetrics> enhancedMonitoring()
Represents the current enhanced monitoring settings of the stream.
public StreamDescription.Builder toBuilder()
ToCopyableBuildertoBuilder in interface ToCopyableBuilder<StreamDescription.Builder,StreamDescription>public static StreamDescription.Builder builder()
public static Class<? extends StreamDescription.Builder> serializableBuilderClass()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.