public class StreamDescription
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Represents the output for DescribeStream.
Modifier and Type | Field and Description |
---|---|
private SdkInternalList<EnhancedMetrics> |
enhancedMonitoring
Represents the current enhanced monitoring settings of the stream.
|
private java.lang.Boolean |
hasMoreShards
If set to
true , more shards in the stream are available to
describe. |
private java.lang.Integer |
retentionPeriodHours
The current retention period, in hours.
|
private SdkInternalList<Shard> |
shards
The shards that comprise the stream.
|
private java.lang.String |
streamARN
The Amazon Resource Name (ARN) for the stream being described.
|
private java.lang.String |
streamName
The name of the stream being described.
|
private java.lang.String |
streamStatus
The current status of the stream being described.
|
Constructor and Description |
---|
StreamDescription() |
Modifier and Type | Method and Description |
---|---|
StreamDescription |
clone() |
boolean |
equals(java.lang.Object obj) |
java.util.List<EnhancedMetrics> |
getEnhancedMonitoring()
Represents the current enhanced monitoring settings of the stream.
|
java.lang.Boolean |
getHasMoreShards()
If set to
true , more shards in the stream are available to
describe. |
java.lang.Integer |
getRetentionPeriodHours()
The current retention period, in hours.
|
java.util.List<Shard> |
getShards()
The shards that comprise the stream.
|
java.lang.String |
getStreamARN()
The Amazon Resource Name (ARN) for the stream being described.
|
java.lang.String |
getStreamName()
The name of the stream being described.
|
java.lang.String |
getStreamStatus()
The current status of the stream being described.
|
int |
hashCode() |
java.lang.Boolean |
isHasMoreShards()
If set to
true , more shards in the stream are available to
describe. |
void |
setEnhancedMonitoring(java.util.Collection<EnhancedMetrics> enhancedMonitoring)
Represents the current enhanced monitoring settings of the stream.
|
void |
setHasMoreShards(java.lang.Boolean hasMoreShards)
If set to
true , more shards in the stream are available to
describe. |
void |
setRetentionPeriodHours(java.lang.Integer retentionPeriodHours)
The current retention period, in hours.
|
void |
setShards(java.util.Collection<Shard> shards)
The shards that comprise the stream.
|
void |
setStreamARN(java.lang.String streamARN)
The Amazon Resource Name (ARN) for the stream being described.
|
void |
setStreamName(java.lang.String streamName)
The name of the stream being described.
|
void |
setStreamStatus(StreamStatus streamStatus)
The current status of the stream being described.
|
void |
setStreamStatus(java.lang.String streamStatus)
The current status of the stream being described.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
StreamDescription |
withEnhancedMonitoring(java.util.Collection<EnhancedMetrics> enhancedMonitoring)
Represents the current enhanced monitoring settings of the stream.
|
StreamDescription |
withEnhancedMonitoring(EnhancedMetrics... enhancedMonitoring)
Represents the current enhanced monitoring settings of the stream.
|
StreamDescription |
withHasMoreShards(java.lang.Boolean hasMoreShards)
If set to
true , more shards in the stream are available to
describe. |
StreamDescription |
withRetentionPeriodHours(java.lang.Integer retentionPeriodHours)
The current retention period, in hours.
|
StreamDescription |
withShards(java.util.Collection<Shard> shards)
The shards that comprise the stream.
|
StreamDescription |
withShards(Shard... shards)
The shards that comprise the stream.
|
StreamDescription |
withStreamARN(java.lang.String streamARN)
The Amazon Resource Name (ARN) for the stream being described.
|
StreamDescription |
withStreamName(java.lang.String streamName)
The name of the stream being described.
|
StreamDescription |
withStreamStatus(StreamStatus streamStatus)
The current status of the stream being described.
|
StreamDescription |
withStreamStatus(java.lang.String streamStatus)
The current status of the stream being described.
|
private java.lang.String streamName
The name of the stream being described.
private java.lang.String streamARN
The Amazon Resource Name (ARN) for the stream being described.
private java.lang.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.private SdkInternalList<Shard> shards
The shards that comprise the stream.
private java.lang.Boolean hasMoreShards
If set to true
, more shards in the stream are available to
describe.
private java.lang.Integer retentionPeriodHours
The current retention period, in hours.
private SdkInternalList<EnhancedMetrics> enhancedMonitoring
Represents the current enhanced monitoring settings of the stream.
public void setStreamName(java.lang.String streamName)
The name of the stream being described.
streamName
- The name of the stream being described.public java.lang.String getStreamName()
The name of the stream being described.
public StreamDescription withStreamName(java.lang.String streamName)
The name of the stream being described.
streamName
- The name of the stream being described.public void setStreamARN(java.lang.String streamARN)
The Amazon Resource Name (ARN) for the stream being described.
streamARN
- The Amazon Resource Name (ARN) for the stream being described.public java.lang.String getStreamARN()
The Amazon Resource Name (ARN) for the stream being described.
public StreamDescription withStreamARN(java.lang.String streamARN)
The Amazon Resource Name (ARN) for the stream being described.
streamARN
- The Amazon Resource Name (ARN) for the stream being described.public void setStreamStatus(java.lang.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.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.StreamStatus
public java.lang.String getStreamStatus()
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.StreamStatus
public StreamDescription withStreamStatus(java.lang.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.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.StreamStatus
public void setStreamStatus(StreamStatus 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.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.StreamStatus
public StreamDescription withStreamStatus(StreamStatus 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.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.StreamStatus
public java.util.List<Shard> getShards()
The shards that comprise the stream.
public void setShards(java.util.Collection<Shard> shards)
The shards that comprise the stream.
shards
- The shards that comprise the stream.public StreamDescription withShards(Shard... shards)
The shards that comprise the stream.
NOTE: This method appends the values to the existing list (if
any). Use setShards(java.util.Collection)
or
withShards(java.util.Collection)
if you want to override the
existing values.
shards
- The shards that comprise the stream.public StreamDescription withShards(java.util.Collection<Shard> shards)
The shards that comprise the stream.
shards
- The shards that comprise the stream.public void setHasMoreShards(java.lang.Boolean hasMoreShards)
If set to true
, more shards in the stream are available to
describe.
hasMoreShards
- If set to true
, more shards in the stream are
available to describe.public java.lang.Boolean getHasMoreShards()
If set to true
, more shards in the stream are available to
describe.
true
, more shards in the stream are
available to describe.public StreamDescription withHasMoreShards(java.lang.Boolean hasMoreShards)
If set to true
, more shards in the stream are available to
describe.
hasMoreShards
- If set to true
, more shards in the stream are
available to describe.public java.lang.Boolean isHasMoreShards()
If set to true
, more shards in the stream are available to
describe.
true
, more shards in the stream are
available to describe.public void setRetentionPeriodHours(java.lang.Integer retentionPeriodHours)
The current retention period, in hours.
retentionPeriodHours
- The current retention period, in hours.public java.lang.Integer getRetentionPeriodHours()
The current retention period, in hours.
public StreamDescription withRetentionPeriodHours(java.lang.Integer retentionPeriodHours)
The current retention period, in hours.
retentionPeriodHours
- The current retention period, in hours.public java.util.List<EnhancedMetrics> getEnhancedMonitoring()
Represents the current enhanced monitoring settings of the stream.
public void setEnhancedMonitoring(java.util.Collection<EnhancedMetrics> enhancedMonitoring)
Represents the current enhanced monitoring settings of the stream.
enhancedMonitoring
- Represents the current enhanced monitoring settings of the stream.public StreamDescription withEnhancedMonitoring(EnhancedMetrics... enhancedMonitoring)
Represents the current enhanced monitoring settings of the stream.
NOTE: This method appends the values to the existing list (if
any). Use setEnhancedMonitoring(java.util.Collection)
or
withEnhancedMonitoring(java.util.Collection)
if you want to
override the existing values.
enhancedMonitoring
- Represents the current enhanced monitoring settings of the stream.public StreamDescription withEnhancedMonitoring(java.util.Collection<EnhancedMetrics> enhancedMonitoring)
Represents the current enhanced monitoring settings of the stream.
enhancedMonitoring
- Represents the current enhanced monitoring settings of the stream.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 StreamDescription clone()
clone
in class java.lang.Object