@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class StreamDescriptionSummary extends Object implements Serializable, Cloneable, StructuredPojo
Represents the output for DescribeStreamSummary
Constructor and Description |
---|
StreamDescriptionSummary() |
Modifier and Type | Method and Description |
---|---|
StreamDescriptionSummary |
clone() |
boolean |
equals(Object obj) |
Integer |
getConsumerCount()
The number of enhanced fan-out consumers registered with the stream.
|
String |
getEncryptionType()
The encryption type used.
|
List<EnhancedMetrics> |
getEnhancedMonitoring()
Represents the current enhanced monitoring settings of the stream.
|
String |
getKeyId()
The GUID for the customer-managed AWS KMS key to use for encryption.
|
Integer |
getOpenShardCount()
The number of open shards in the stream.
|
Integer |
getRetentionPeriodHours()
The current retention period, in hours.
|
String |
getStreamARN()
The Amazon Resource Name (ARN) for the stream being described.
|
Date |
getStreamCreationTimestamp()
The approximate time that the stream was created.
|
String |
getStreamName()
The name of the stream being described.
|
String |
getStreamStatus()
The current status of the stream being described.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller) |
void |
setConsumerCount(Integer consumerCount)
The number of enhanced fan-out consumers registered with the stream.
|
void |
setEncryptionType(String encryptionType)
The encryption type used.
|
void |
setEnhancedMonitoring(Collection<EnhancedMetrics> enhancedMonitoring)
Represents the current enhanced monitoring settings of the stream.
|
void |
setKeyId(String keyId)
The GUID for the customer-managed AWS KMS key to use for encryption.
|
void |
setOpenShardCount(Integer openShardCount)
The number of open shards in the stream.
|
void |
setRetentionPeriodHours(Integer retentionPeriodHours)
The current retention period, in hours.
|
void |
setStreamARN(String streamARN)
The Amazon Resource Name (ARN) for the stream being described.
|
void |
setStreamCreationTimestamp(Date streamCreationTimestamp)
The approximate time that the stream was created.
|
void |
setStreamName(String streamName)
The name of the stream being described.
|
void |
setStreamStatus(String streamStatus)
The current status of the stream being described.
|
String |
toString()
Returns a string representation of this object.
|
StreamDescriptionSummary |
withConsumerCount(Integer consumerCount)
The number of enhanced fan-out consumers registered with the stream.
|
StreamDescriptionSummary |
withEncryptionType(EncryptionType encryptionType)
The encryption type used.
|
StreamDescriptionSummary |
withEncryptionType(String encryptionType)
The encryption type used.
|
StreamDescriptionSummary |
withEnhancedMonitoring(Collection<EnhancedMetrics> enhancedMonitoring)
Represents the current enhanced monitoring settings of the stream.
|
StreamDescriptionSummary |
withEnhancedMonitoring(EnhancedMetrics... enhancedMonitoring)
Represents the current enhanced monitoring settings of the stream.
|
StreamDescriptionSummary |
withKeyId(String keyId)
The GUID for the customer-managed AWS KMS key to use for encryption.
|
StreamDescriptionSummary |
withOpenShardCount(Integer openShardCount)
The number of open shards in the stream.
|
StreamDescriptionSummary |
withRetentionPeriodHours(Integer retentionPeriodHours)
The current retention period, in hours.
|
StreamDescriptionSummary |
withStreamARN(String streamARN)
The Amazon Resource Name (ARN) for the stream being described.
|
StreamDescriptionSummary |
withStreamCreationTimestamp(Date streamCreationTimestamp)
The approximate time that the stream was created.
|
StreamDescriptionSummary |
withStreamName(String streamName)
The name of the stream being described.
|
StreamDescriptionSummary |
withStreamStatus(StreamStatus streamStatus)
The current status of the stream being described.
|
StreamDescriptionSummary |
withStreamStatus(String streamStatus)
The current status of the stream being described.
|
public void setStreamName(String streamName)
The name of the stream being described.
streamName
- The name of the stream being described.public String getStreamName()
The name of the stream being described.
public StreamDescriptionSummary withStreamName(String streamName)
The name of the stream being described.
streamName
- The name of the stream being described.public void setStreamARN(String streamARN)
The Amazon Resource Name (ARN) for the stream being described.
streamARN
- The Amazon Resource Name (ARN) for the stream being described.public String getStreamARN()
The Amazon Resource Name (ARN) for the stream being described.
public StreamDescriptionSummary withStreamARN(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(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. Kinesis Data Streams immediately returns and sets
StreamStatus
to CREATING
.
DELETING
- The stream is being deleted. The specified stream is in the DELETING
state
until Kinesis Data Streams 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. Kinesis Data Streams immediately returns and sets
StreamStatus
to CREATING
.
DELETING
- The stream is being deleted. The specified stream is in the DELETING
state until Kinesis Data Streams 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 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. Kinesis Data Streams immediately returns and sets
StreamStatus
to CREATING
.
DELETING
- The stream is being deleted. The specified stream is in the DELETING
state
until Kinesis Data Streams 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. Kinesis Data Streams immediately returns and sets
StreamStatus
to CREATING
.
DELETING
- The stream is being deleted. The specified stream is in the DELETING
state until Kinesis Data Streams 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 StreamDescriptionSummary withStreamStatus(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. Kinesis Data Streams immediately returns and sets
StreamStatus
to CREATING
.
DELETING
- The stream is being deleted. The specified stream is in the DELETING
state
until Kinesis Data Streams 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. Kinesis Data Streams immediately returns and sets
StreamStatus
to CREATING
.
DELETING
- The stream is being deleted. The specified stream is in the DELETING
state until Kinesis Data Streams 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 StreamDescriptionSummary 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. Kinesis Data Streams immediately returns and sets
StreamStatus
to CREATING
.
DELETING
- The stream is being deleted. The specified stream is in the DELETING
state
until Kinesis Data Streams 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. Kinesis Data Streams immediately returns and sets
StreamStatus
to CREATING
.
DELETING
- The stream is being deleted. The specified stream is in the DELETING
state until Kinesis Data Streams 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 setRetentionPeriodHours(Integer retentionPeriodHours)
The current retention period, in hours.
retentionPeriodHours
- The current retention period, in hours.public Integer getRetentionPeriodHours()
The current retention period, in hours.
public StreamDescriptionSummary withRetentionPeriodHours(Integer retentionPeriodHours)
The current retention period, in hours.
retentionPeriodHours
- The current retention period, in hours.public void setStreamCreationTimestamp(Date streamCreationTimestamp)
The approximate time that the stream was created.
streamCreationTimestamp
- The approximate time that the stream was created.public Date getStreamCreationTimestamp()
The approximate time that the stream was created.
public StreamDescriptionSummary withStreamCreationTimestamp(Date streamCreationTimestamp)
The approximate time that the stream was created.
streamCreationTimestamp
- The approximate time that the stream was created.public List<EnhancedMetrics> getEnhancedMonitoring()
Represents the current enhanced monitoring settings of the stream.
public void setEnhancedMonitoring(Collection<EnhancedMetrics> enhancedMonitoring)
Represents the current enhanced monitoring settings of the stream.
enhancedMonitoring
- Represents the current enhanced monitoring settings of the stream.public StreamDescriptionSummary 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 StreamDescriptionSummary withEnhancedMonitoring(Collection<EnhancedMetrics> enhancedMonitoring)
Represents the current enhanced monitoring settings of the stream.
enhancedMonitoring
- Represents the current enhanced monitoring settings of the stream.public void setEncryptionType(String encryptionType)
The encryption type used. This value is one of the following:
KMS
NONE
encryptionType
- The encryption type used. This value is one of the following:
KMS
NONE
EncryptionType
public String getEncryptionType()
The encryption type used. This value is one of the following:
KMS
NONE
KMS
NONE
EncryptionType
public StreamDescriptionSummary withEncryptionType(String encryptionType)
The encryption type used. This value is one of the following:
KMS
NONE
encryptionType
- The encryption type used. This value is one of the following:
KMS
NONE
EncryptionType
public StreamDescriptionSummary withEncryptionType(EncryptionType encryptionType)
The encryption type used. This value is one of the following:
KMS
NONE
encryptionType
- The encryption type used. This value is one of the following:
KMS
NONE
EncryptionType
public void setKeyId(String keyId)
The GUID for the customer-managed AWS KMS key to use for encryption. This value can be a globally unique
identifier, a fully specified ARN to either an alias or a key, or an alias name prefixed by "alias/".You can also
use a master key owned by Kinesis Data Streams by specifying the alias aws/kinesis
.
Key ARN example: arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012
Alias ARN example: arn:aws:kms:us-east-1:123456789012:alias/MyAliasName
Globally unique key ID example: 12345678-1234-1234-1234-123456789012
Alias name example: alias/MyAliasName
Master key owned by Kinesis Data Streams: alias/aws/kinesis
keyId
- The GUID for the customer-managed AWS KMS key to use for encryption. This value can be a globally unique
identifier, a fully specified ARN to either an alias or a key, or an alias name prefixed by "alias/".You
can also use a master key owned by Kinesis Data Streams by specifying the alias aws/kinesis
.
Key ARN example: arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012
Alias ARN example: arn:aws:kms:us-east-1:123456789012:alias/MyAliasName
Globally unique key ID example: 12345678-1234-1234-1234-123456789012
Alias name example: alias/MyAliasName
Master key owned by Kinesis Data Streams: alias/aws/kinesis
public String getKeyId()
The GUID for the customer-managed AWS KMS key to use for encryption. This value can be a globally unique
identifier, a fully specified ARN to either an alias or a key, or an alias name prefixed by "alias/".You can also
use a master key owned by Kinesis Data Streams by specifying the alias aws/kinesis
.
Key ARN example: arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012
Alias ARN example: arn:aws:kms:us-east-1:123456789012:alias/MyAliasName
Globally unique key ID example: 12345678-1234-1234-1234-123456789012
Alias name example: alias/MyAliasName
Master key owned by Kinesis Data Streams: alias/aws/kinesis
aws/kinesis
.
Key ARN example: arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012
Alias ARN example: arn:aws:kms:us-east-1:123456789012:alias/MyAliasName
Globally unique key ID example: 12345678-1234-1234-1234-123456789012
Alias name example: alias/MyAliasName
Master key owned by Kinesis Data Streams: alias/aws/kinesis
public StreamDescriptionSummary withKeyId(String keyId)
The GUID for the customer-managed AWS KMS key to use for encryption. This value can be a globally unique
identifier, a fully specified ARN to either an alias or a key, or an alias name prefixed by "alias/".You can also
use a master key owned by Kinesis Data Streams by specifying the alias aws/kinesis
.
Key ARN example: arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012
Alias ARN example: arn:aws:kms:us-east-1:123456789012:alias/MyAliasName
Globally unique key ID example: 12345678-1234-1234-1234-123456789012
Alias name example: alias/MyAliasName
Master key owned by Kinesis Data Streams: alias/aws/kinesis
keyId
- The GUID for the customer-managed AWS KMS key to use for encryption. This value can be a globally unique
identifier, a fully specified ARN to either an alias or a key, or an alias name prefixed by "alias/".You
can also use a master key owned by Kinesis Data Streams by specifying the alias aws/kinesis
.
Key ARN example: arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012
Alias ARN example: arn:aws:kms:us-east-1:123456789012:alias/MyAliasName
Globally unique key ID example: 12345678-1234-1234-1234-123456789012
Alias name example: alias/MyAliasName
Master key owned by Kinesis Data Streams: alias/aws/kinesis
public void setOpenShardCount(Integer openShardCount)
The number of open shards in the stream.
openShardCount
- The number of open shards in the stream.public Integer getOpenShardCount()
The number of open shards in the stream.
public StreamDescriptionSummary withOpenShardCount(Integer openShardCount)
The number of open shards in the stream.
openShardCount
- The number of open shards in the stream.public void setConsumerCount(Integer consumerCount)
The number of enhanced fan-out consumers registered with the stream.
consumerCount
- The number of enhanced fan-out consumers registered with the stream.public Integer getConsumerCount()
The number of enhanced fan-out consumers registered with the stream.
public StreamDescriptionSummary withConsumerCount(Integer consumerCount)
The number of enhanced fan-out consumers registered with the stream.
consumerCount
- The number of enhanced fan-out consumers registered with the stream.public String toString()
toString
in class Object
Object.toString()
public StreamDescriptionSummary clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
marshall
in interface StructuredPojo
Copyright © 2021. All rights reserved.