/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.kinesis.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *

* Represents the output for DescribeStream. *

* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class StreamDescription implements Serializable, Cloneable, StructuredPojo { /** *

* The name of the stream being described. *

*/ private String streamName; /** *

* The Amazon Resource Name (ARN) for the stream being described. *

*/ private String streamARN; /** *

* The current status of the stream being described. The stream status is one of the following states: *

* */ private String streamStatus; /** *

* Specifies the capacity mode to which you want to set your data stream. Currently, in Kinesis Data Streams, you * can choose between an on-demand capacity mode and a provisioned capacity mode for your data * streams. *

*/ private StreamModeDetails streamModeDetails; /** *

* The shards that comprise the stream. *

*/ private com.amazonaws.internal.SdkInternalList shards; /** *

* If set to true, more shards in the stream are available to describe. *

*/ private Boolean hasMoreShards; /** *

* The current retention period, in hours. Minimum value of 24. Maximum value of 168. *

*/ private Integer retentionPeriodHours; /** *

* The approximate time that the stream was created. *

*/ private java.util.Date streamCreationTimestamp; /** *

* Represents the current enhanced monitoring settings of the stream. *

*/ private com.amazonaws.internal.SdkInternalList enhancedMonitoring; /** *

* The server-side encryption type used on the stream. This parameter can be one of the following values: *

* */ private String encryptionType; /** *

* The GUID for the customer-managed Amazon Web Services 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. *

* */ private String keyId; /** *

* The name of the stream being described. *

* * @param streamName * The name of the stream being described. */ public void setStreamName(String streamName) { this.streamName = streamName; } /** *

* The name of the stream being described. *

* * @return The name of the stream being described. */ public String getStreamName() { return this.streamName; } /** *

* The name of the stream being described. *

* * @param streamName * The name of the stream being described. * @return Returns a reference to this object so that method calls can be chained together. */ public StreamDescription withStreamName(String streamName) { setStreamName(streamName); return this; } /** *

* The Amazon Resource Name (ARN) for the stream being described. *

* * @param streamARN * The Amazon Resource Name (ARN) for the stream being described. */ public void setStreamARN(String streamARN) { this.streamARN = streamARN; } /** *

* The Amazon Resource Name (ARN) for the stream being described. *

* * @return The Amazon Resource Name (ARN) for the stream being described. */ public String getStreamARN() { return this.streamARN; } /** *

* The Amazon Resource Name (ARN) for the stream being described. *

* * @param streamARN * The Amazon Resource Name (ARN) for the stream being described. * @return Returns a reference to this object so that method calls can be chained together. */ public StreamDescription withStreamARN(String streamARN) { setStreamARN(streamARN); return this; } /** *

* The current status of the stream being described. The stream status is one of the following states: *

* * * @param streamStatus * The current status of the stream being described. The stream status is one of the following states:

*