This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
pxz-hos-client-cpp-module/support/aws-sdk-cpp-master/aws-cpp-sdk-kinesis/include/aws/kinesis/model/StreamDescription.h

608 lines
28 KiB
C++

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/kinesis/Kinesis_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/kinesis/model/StreamStatus.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/core/utils/DateTime.h>
#include <aws/kinesis/model/EncryptionType.h>
#include <aws/kinesis/model/Shard.h>
#include <aws/kinesis/model/EnhancedMetrics.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace Kinesis
{
namespace Model
{
/**
* <p>Represents the output for <a>DescribeStream</a>.</p><p><h3>See Also:</h3>
* <a
* href="http://docs.aws.amazon.com/goto/WebAPI/kinesis-2013-12-02/StreamDescription">AWS
* API Reference</a></p>
*/
class AWS_KINESIS_API StreamDescription
{
public:
StreamDescription();
StreamDescription(Aws::Utils::Json::JsonView jsonValue);
StreamDescription& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The name of the stream being described.</p>
*/
inline const Aws::String& GetStreamName() const{ return m_streamName; }
/**
* <p>The name of the stream being described.</p>
*/
inline bool StreamNameHasBeenSet() const { return m_streamNameHasBeenSet; }
/**
* <p>The name of the stream being described.</p>
*/
inline void SetStreamName(const Aws::String& value) { m_streamNameHasBeenSet = true; m_streamName = value; }
/**
* <p>The name of the stream being described.</p>
*/
inline void SetStreamName(Aws::String&& value) { m_streamNameHasBeenSet = true; m_streamName = std::move(value); }
/**
* <p>The name of the stream being described.</p>
*/
inline void SetStreamName(const char* value) { m_streamNameHasBeenSet = true; m_streamName.assign(value); }
/**
* <p>The name of the stream being described.</p>
*/
inline StreamDescription& WithStreamName(const Aws::String& value) { SetStreamName(value); return *this;}
/**
* <p>The name of the stream being described.</p>
*/
inline StreamDescription& WithStreamName(Aws::String&& value) { SetStreamName(std::move(value)); return *this;}
/**
* <p>The name of the stream being described.</p>
*/
inline StreamDescription& WithStreamName(const char* value) { SetStreamName(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) for the stream being described.</p>
*/
inline const Aws::String& GetStreamARN() const{ return m_streamARN; }
/**
* <p>The Amazon Resource Name (ARN) for the stream being described.</p>
*/
inline bool StreamARNHasBeenSet() const { return m_streamARNHasBeenSet; }
/**
* <p>The Amazon Resource Name (ARN) for the stream being described.</p>
*/
inline void SetStreamARN(const Aws::String& value) { m_streamARNHasBeenSet = true; m_streamARN = value; }
/**
* <p>The Amazon Resource Name (ARN) for the stream being described.</p>
*/
inline void SetStreamARN(Aws::String&& value) { m_streamARNHasBeenSet = true; m_streamARN = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) for the stream being described.</p>
*/
inline void SetStreamARN(const char* value) { m_streamARNHasBeenSet = true; m_streamARN.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) for the stream being described.</p>
*/
inline StreamDescription& WithStreamARN(const Aws::String& value) { SetStreamARN(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) for the stream being described.</p>
*/
inline StreamDescription& WithStreamARN(Aws::String&& value) { SetStreamARN(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) for the stream being described.</p>
*/
inline StreamDescription& WithStreamARN(const char* value) { SetStreamARN(value); return *this;}
/**
* <p>The current status of the stream being described. The stream status is one of
* the following states:</p> <ul> <li> <p> <code>CREATING</code> - The stream is
* being created. Kinesis Data Streams immediately returns and sets
* <code>StreamStatus</code> to <code>CREATING</code>.</p> </li> <li> <p>
* <code>DELETING</code> - The stream is being deleted. The specified stream is in
* the <code>DELETING</code> state until Kinesis Data Streams completes the
* deletion.</p> </li> <li> <p> <code>ACTIVE</code> - The stream exists and is
* ready for read and write operations or deletion. You should perform read and
* write operations only on an <code>ACTIVE</code> stream.</p> </li> <li> <p>
* <code>UPDATING</code> - Shards in the stream are being merged or split. Read and
* write operations continue to work while the stream is in the
* <code>UPDATING</code> state.</p> </li> </ul>
*/
inline const StreamStatus& GetStreamStatus() const{ return m_streamStatus; }
/**
* <p>The current status of the stream being described. The stream status is one of
* the following states:</p> <ul> <li> <p> <code>CREATING</code> - The stream is
* being created. Kinesis Data Streams immediately returns and sets
* <code>StreamStatus</code> to <code>CREATING</code>.</p> </li> <li> <p>
* <code>DELETING</code> - The stream is being deleted. The specified stream is in
* the <code>DELETING</code> state until Kinesis Data Streams completes the
* deletion.</p> </li> <li> <p> <code>ACTIVE</code> - The stream exists and is
* ready for read and write operations or deletion. You should perform read and
* write operations only on an <code>ACTIVE</code> stream.</p> </li> <li> <p>
* <code>UPDATING</code> - Shards in the stream are being merged or split. Read and
* write operations continue to work while the stream is in the
* <code>UPDATING</code> state.</p> </li> </ul>
*/
inline bool StreamStatusHasBeenSet() const { return m_streamStatusHasBeenSet; }
/**
* <p>The current status of the stream being described. The stream status is one of
* the following states:</p> <ul> <li> <p> <code>CREATING</code> - The stream is
* being created. Kinesis Data Streams immediately returns and sets
* <code>StreamStatus</code> to <code>CREATING</code>.</p> </li> <li> <p>
* <code>DELETING</code> - The stream is being deleted. The specified stream is in
* the <code>DELETING</code> state until Kinesis Data Streams completes the
* deletion.</p> </li> <li> <p> <code>ACTIVE</code> - The stream exists and is
* ready for read and write operations or deletion. You should perform read and
* write operations only on an <code>ACTIVE</code> stream.</p> </li> <li> <p>
* <code>UPDATING</code> - Shards in the stream are being merged or split. Read and
* write operations continue to work while the stream is in the
* <code>UPDATING</code> state.</p> </li> </ul>
*/
inline void SetStreamStatus(const StreamStatus& value) { m_streamStatusHasBeenSet = true; m_streamStatus = value; }
/**
* <p>The current status of the stream being described. The stream status is one of
* the following states:</p> <ul> <li> <p> <code>CREATING</code> - The stream is
* being created. Kinesis Data Streams immediately returns and sets
* <code>StreamStatus</code> to <code>CREATING</code>.</p> </li> <li> <p>
* <code>DELETING</code> - The stream is being deleted. The specified stream is in
* the <code>DELETING</code> state until Kinesis Data Streams completes the
* deletion.</p> </li> <li> <p> <code>ACTIVE</code> - The stream exists and is
* ready for read and write operations or deletion. You should perform read and
* write operations only on an <code>ACTIVE</code> stream.</p> </li> <li> <p>
* <code>UPDATING</code> - Shards in the stream are being merged or split. Read and
* write operations continue to work while the stream is in the
* <code>UPDATING</code> state.</p> </li> </ul>
*/
inline void SetStreamStatus(StreamStatus&& value) { m_streamStatusHasBeenSet = true; m_streamStatus = std::move(value); }
/**
* <p>The current status of the stream being described. The stream status is one of
* the following states:</p> <ul> <li> <p> <code>CREATING</code> - The stream is
* being created. Kinesis Data Streams immediately returns and sets
* <code>StreamStatus</code> to <code>CREATING</code>.</p> </li> <li> <p>
* <code>DELETING</code> - The stream is being deleted. The specified stream is in
* the <code>DELETING</code> state until Kinesis Data Streams completes the
* deletion.</p> </li> <li> <p> <code>ACTIVE</code> - The stream exists and is
* ready for read and write operations or deletion. You should perform read and
* write operations only on an <code>ACTIVE</code> stream.</p> </li> <li> <p>
* <code>UPDATING</code> - Shards in the stream are being merged or split. Read and
* write operations continue to work while the stream is in the
* <code>UPDATING</code> state.</p> </li> </ul>
*/
inline StreamDescription& WithStreamStatus(const StreamStatus& value) { SetStreamStatus(value); return *this;}
/**
* <p>The current status of the stream being described. The stream status is one of
* the following states:</p> <ul> <li> <p> <code>CREATING</code> - The stream is
* being created. Kinesis Data Streams immediately returns and sets
* <code>StreamStatus</code> to <code>CREATING</code>.</p> </li> <li> <p>
* <code>DELETING</code> - The stream is being deleted. The specified stream is in
* the <code>DELETING</code> state until Kinesis Data Streams completes the
* deletion.</p> </li> <li> <p> <code>ACTIVE</code> - The stream exists and is
* ready for read and write operations or deletion. You should perform read and
* write operations only on an <code>ACTIVE</code> stream.</p> </li> <li> <p>
* <code>UPDATING</code> - Shards in the stream are being merged or split. Read and
* write operations continue to work while the stream is in the
* <code>UPDATING</code> state.</p> </li> </ul>
*/
inline StreamDescription& WithStreamStatus(StreamStatus&& value) { SetStreamStatus(std::move(value)); return *this;}
/**
* <p>The shards that comprise the stream.</p>
*/
inline const Aws::Vector<Shard>& GetShards() const{ return m_shards; }
/**
* <p>The shards that comprise the stream.</p>
*/
inline bool ShardsHasBeenSet() const { return m_shardsHasBeenSet; }
/**
* <p>The shards that comprise the stream.</p>
*/
inline void SetShards(const Aws::Vector<Shard>& value) { m_shardsHasBeenSet = true; m_shards = value; }
/**
* <p>The shards that comprise the stream.</p>
*/
inline void SetShards(Aws::Vector<Shard>&& value) { m_shardsHasBeenSet = true; m_shards = std::move(value); }
/**
* <p>The shards that comprise the stream.</p>
*/
inline StreamDescription& WithShards(const Aws::Vector<Shard>& value) { SetShards(value); return *this;}
/**
* <p>The shards that comprise the stream.</p>
*/
inline StreamDescription& WithShards(Aws::Vector<Shard>&& value) { SetShards(std::move(value)); return *this;}
/**
* <p>The shards that comprise the stream.</p>
*/
inline StreamDescription& AddShards(const Shard& value) { m_shardsHasBeenSet = true; m_shards.push_back(value); return *this; }
/**
* <p>The shards that comprise the stream.</p>
*/
inline StreamDescription& AddShards(Shard&& value) { m_shardsHasBeenSet = true; m_shards.push_back(std::move(value)); return *this; }
/**
* <p>If set to <code>true</code>, more shards in the stream are available to
* describe.</p>
*/
inline bool GetHasMoreShards() const{ return m_hasMoreShards; }
/**
* <p>If set to <code>true</code>, more shards in the stream are available to
* describe.</p>
*/
inline bool HasMoreShardsHasBeenSet() const { return m_hasMoreShardsHasBeenSet; }
/**
* <p>If set to <code>true</code>, more shards in the stream are available to
* describe.</p>
*/
inline void SetHasMoreShards(bool value) { m_hasMoreShardsHasBeenSet = true; m_hasMoreShards = value; }
/**
* <p>If set to <code>true</code>, more shards in the stream are available to
* describe.</p>
*/
inline StreamDescription& WithHasMoreShards(bool value) { SetHasMoreShards(value); return *this;}
/**
* <p>The current retention period, in hours. Minimum value of 24. Maximum value of
* 168.</p>
*/
inline int GetRetentionPeriodHours() const{ return m_retentionPeriodHours; }
/**
* <p>The current retention period, in hours. Minimum value of 24. Maximum value of
* 168.</p>
*/
inline bool RetentionPeriodHoursHasBeenSet() const { return m_retentionPeriodHoursHasBeenSet; }
/**
* <p>The current retention period, in hours. Minimum value of 24. Maximum value of
* 168.</p>
*/
inline void SetRetentionPeriodHours(int value) { m_retentionPeriodHoursHasBeenSet = true; m_retentionPeriodHours = value; }
/**
* <p>The current retention period, in hours. Minimum value of 24. Maximum value of
* 168.</p>
*/
inline StreamDescription& WithRetentionPeriodHours(int value) { SetRetentionPeriodHours(value); return *this;}
/**
* <p>The approximate time that the stream was created.</p>
*/
inline const Aws::Utils::DateTime& GetStreamCreationTimestamp() const{ return m_streamCreationTimestamp; }
/**
* <p>The approximate time that the stream was created.</p>
*/
inline bool StreamCreationTimestampHasBeenSet() const { return m_streamCreationTimestampHasBeenSet; }
/**
* <p>The approximate time that the stream was created.</p>
*/
inline void SetStreamCreationTimestamp(const Aws::Utils::DateTime& value) { m_streamCreationTimestampHasBeenSet = true; m_streamCreationTimestamp = value; }
/**
* <p>The approximate time that the stream was created.</p>
*/
inline void SetStreamCreationTimestamp(Aws::Utils::DateTime&& value) { m_streamCreationTimestampHasBeenSet = true; m_streamCreationTimestamp = std::move(value); }
/**
* <p>The approximate time that the stream was created.</p>
*/
inline StreamDescription& WithStreamCreationTimestamp(const Aws::Utils::DateTime& value) { SetStreamCreationTimestamp(value); return *this;}
/**
* <p>The approximate time that the stream was created.</p>
*/
inline StreamDescription& WithStreamCreationTimestamp(Aws::Utils::DateTime&& value) { SetStreamCreationTimestamp(std::move(value)); return *this;}
/**
* <p>Represents the current enhanced monitoring settings of the stream.</p>
*/
inline const Aws::Vector<EnhancedMetrics>& GetEnhancedMonitoring() const{ return m_enhancedMonitoring; }
/**
* <p>Represents the current enhanced monitoring settings of the stream.</p>
*/
inline bool EnhancedMonitoringHasBeenSet() const { return m_enhancedMonitoringHasBeenSet; }
/**
* <p>Represents the current enhanced monitoring settings of the stream.</p>
*/
inline void SetEnhancedMonitoring(const Aws::Vector<EnhancedMetrics>& value) { m_enhancedMonitoringHasBeenSet = true; m_enhancedMonitoring = value; }
/**
* <p>Represents the current enhanced monitoring settings of the stream.</p>
*/
inline void SetEnhancedMonitoring(Aws::Vector<EnhancedMetrics>&& value) { m_enhancedMonitoringHasBeenSet = true; m_enhancedMonitoring = std::move(value); }
/**
* <p>Represents the current enhanced monitoring settings of the stream.</p>
*/
inline StreamDescription& WithEnhancedMonitoring(const Aws::Vector<EnhancedMetrics>& value) { SetEnhancedMonitoring(value); return *this;}
/**
* <p>Represents the current enhanced monitoring settings of the stream.</p>
*/
inline StreamDescription& WithEnhancedMonitoring(Aws::Vector<EnhancedMetrics>&& value) { SetEnhancedMonitoring(std::move(value)); return *this;}
/**
* <p>Represents the current enhanced monitoring settings of the stream.</p>
*/
inline StreamDescription& AddEnhancedMonitoring(const EnhancedMetrics& value) { m_enhancedMonitoringHasBeenSet = true; m_enhancedMonitoring.push_back(value); return *this; }
/**
* <p>Represents the current enhanced monitoring settings of the stream.</p>
*/
inline StreamDescription& AddEnhancedMonitoring(EnhancedMetrics&& value) { m_enhancedMonitoringHasBeenSet = true; m_enhancedMonitoring.push_back(std::move(value)); return *this; }
/**
* <p>The server-side encryption type used on the stream. This parameter can be one
* of the following values:</p> <ul> <li> <p> <code>NONE</code>: Do not encrypt the
* records in the stream.</p> </li> <li> <p> <code>KMS</code>: Use server-side
* encryption on the records in the stream using a customer-managed AWS KMS
* key.</p> </li> </ul>
*/
inline const EncryptionType& GetEncryptionType() const{ return m_encryptionType; }
/**
* <p>The server-side encryption type used on the stream. This parameter can be one
* of the following values:</p> <ul> <li> <p> <code>NONE</code>: Do not encrypt the
* records in the stream.</p> </li> <li> <p> <code>KMS</code>: Use server-side
* encryption on the records in the stream using a customer-managed AWS KMS
* key.</p> </li> </ul>
*/
inline bool EncryptionTypeHasBeenSet() const { return m_encryptionTypeHasBeenSet; }
/**
* <p>The server-side encryption type used on the stream. This parameter can be one
* of the following values:</p> <ul> <li> <p> <code>NONE</code>: Do not encrypt the
* records in the stream.</p> </li> <li> <p> <code>KMS</code>: Use server-side
* encryption on the records in the stream using a customer-managed AWS KMS
* key.</p> </li> </ul>
*/
inline void SetEncryptionType(const EncryptionType& value) { m_encryptionTypeHasBeenSet = true; m_encryptionType = value; }
/**
* <p>The server-side encryption type used on the stream. This parameter can be one
* of the following values:</p> <ul> <li> <p> <code>NONE</code>: Do not encrypt the
* records in the stream.</p> </li> <li> <p> <code>KMS</code>: Use server-side
* encryption on the records in the stream using a customer-managed AWS KMS
* key.</p> </li> </ul>
*/
inline void SetEncryptionType(EncryptionType&& value) { m_encryptionTypeHasBeenSet = true; m_encryptionType = std::move(value); }
/**
* <p>The server-side encryption type used on the stream. This parameter can be one
* of the following values:</p> <ul> <li> <p> <code>NONE</code>: Do not encrypt the
* records in the stream.</p> </li> <li> <p> <code>KMS</code>: Use server-side
* encryption on the records in the stream using a customer-managed AWS KMS
* key.</p> </li> </ul>
*/
inline StreamDescription& WithEncryptionType(const EncryptionType& value) { SetEncryptionType(value); return *this;}
/**
* <p>The server-side encryption type used on the stream. This parameter can be one
* of the following values:</p> <ul> <li> <p> <code>NONE</code>: Do not encrypt the
* records in the stream.</p> </li> <li> <p> <code>KMS</code>: Use server-side
* encryption on the records in the stream using a customer-managed AWS KMS
* key.</p> </li> </ul>
*/
inline StreamDescription& WithEncryptionType(EncryptionType&& value) { SetEncryptionType(std::move(value)); return *this;}
/**
* <p>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
* <code>aws/kinesis</code>.</p> <ul> <li> <p>Key ARN example:
* <code>arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012</code>
* </p> </li> <li> <p>Alias ARN example:
* <code>arn:aws:kms:us-east-1:123456789012:alias/MyAliasName</code> </p> </li>
* <li> <p>Globally unique key ID example:
* <code>12345678-1234-1234-1234-123456789012</code> </p> </li> <li> <p>Alias name
* example: <code>alias/MyAliasName</code> </p> </li> <li> <p>Master key owned by
* Kinesis Data Streams: <code>alias/aws/kinesis</code> </p> </li> </ul>
*/
inline const Aws::String& GetKeyId() const{ return m_keyId; }
/**
* <p>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
* <code>aws/kinesis</code>.</p> <ul> <li> <p>Key ARN example:
* <code>arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012</code>
* </p> </li> <li> <p>Alias ARN example:
* <code>arn:aws:kms:us-east-1:123456789012:alias/MyAliasName</code> </p> </li>
* <li> <p>Globally unique key ID example:
* <code>12345678-1234-1234-1234-123456789012</code> </p> </li> <li> <p>Alias name
* example: <code>alias/MyAliasName</code> </p> </li> <li> <p>Master key owned by
* Kinesis Data Streams: <code>alias/aws/kinesis</code> </p> </li> </ul>
*/
inline bool KeyIdHasBeenSet() const { return m_keyIdHasBeenSet; }
/**
* <p>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
* <code>aws/kinesis</code>.</p> <ul> <li> <p>Key ARN example:
* <code>arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012</code>
* </p> </li> <li> <p>Alias ARN example:
* <code>arn:aws:kms:us-east-1:123456789012:alias/MyAliasName</code> </p> </li>
* <li> <p>Globally unique key ID example:
* <code>12345678-1234-1234-1234-123456789012</code> </p> </li> <li> <p>Alias name
* example: <code>alias/MyAliasName</code> </p> </li> <li> <p>Master key owned by
* Kinesis Data Streams: <code>alias/aws/kinesis</code> </p> </li> </ul>
*/
inline void SetKeyId(const Aws::String& value) { m_keyIdHasBeenSet = true; m_keyId = value; }
/**
* <p>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
* <code>aws/kinesis</code>.</p> <ul> <li> <p>Key ARN example:
* <code>arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012</code>
* </p> </li> <li> <p>Alias ARN example:
* <code>arn:aws:kms:us-east-1:123456789012:alias/MyAliasName</code> </p> </li>
* <li> <p>Globally unique key ID example:
* <code>12345678-1234-1234-1234-123456789012</code> </p> </li> <li> <p>Alias name
* example: <code>alias/MyAliasName</code> </p> </li> <li> <p>Master key owned by
* Kinesis Data Streams: <code>alias/aws/kinesis</code> </p> </li> </ul>
*/
inline void SetKeyId(Aws::String&& value) { m_keyIdHasBeenSet = true; m_keyId = std::move(value); }
/**
* <p>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
* <code>aws/kinesis</code>.</p> <ul> <li> <p>Key ARN example:
* <code>arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012</code>
* </p> </li> <li> <p>Alias ARN example:
* <code>arn:aws:kms:us-east-1:123456789012:alias/MyAliasName</code> </p> </li>
* <li> <p>Globally unique key ID example:
* <code>12345678-1234-1234-1234-123456789012</code> </p> </li> <li> <p>Alias name
* example: <code>alias/MyAliasName</code> </p> </li> <li> <p>Master key owned by
* Kinesis Data Streams: <code>alias/aws/kinesis</code> </p> </li> </ul>
*/
inline void SetKeyId(const char* value) { m_keyIdHasBeenSet = true; m_keyId.assign(value); }
/**
* <p>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
* <code>aws/kinesis</code>.</p> <ul> <li> <p>Key ARN example:
* <code>arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012</code>
* </p> </li> <li> <p>Alias ARN example:
* <code>arn:aws:kms:us-east-1:123456789012:alias/MyAliasName</code> </p> </li>
* <li> <p>Globally unique key ID example:
* <code>12345678-1234-1234-1234-123456789012</code> </p> </li> <li> <p>Alias name
* example: <code>alias/MyAliasName</code> </p> </li> <li> <p>Master key owned by
* Kinesis Data Streams: <code>alias/aws/kinesis</code> </p> </li> </ul>
*/
inline StreamDescription& WithKeyId(const Aws::String& value) { SetKeyId(value); return *this;}
/**
* <p>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
* <code>aws/kinesis</code>.</p> <ul> <li> <p>Key ARN example:
* <code>arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012</code>
* </p> </li> <li> <p>Alias ARN example:
* <code>arn:aws:kms:us-east-1:123456789012:alias/MyAliasName</code> </p> </li>
* <li> <p>Globally unique key ID example:
* <code>12345678-1234-1234-1234-123456789012</code> </p> </li> <li> <p>Alias name
* example: <code>alias/MyAliasName</code> </p> </li> <li> <p>Master key owned by
* Kinesis Data Streams: <code>alias/aws/kinesis</code> </p> </li> </ul>
*/
inline StreamDescription& WithKeyId(Aws::String&& value) { SetKeyId(std::move(value)); return *this;}
/**
* <p>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
* <code>aws/kinesis</code>.</p> <ul> <li> <p>Key ARN example:
* <code>arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012</code>
* </p> </li> <li> <p>Alias ARN example:
* <code>arn:aws:kms:us-east-1:123456789012:alias/MyAliasName</code> </p> </li>
* <li> <p>Globally unique key ID example:
* <code>12345678-1234-1234-1234-123456789012</code> </p> </li> <li> <p>Alias name
* example: <code>alias/MyAliasName</code> </p> </li> <li> <p>Master key owned by
* Kinesis Data Streams: <code>alias/aws/kinesis</code> </p> </li> </ul>
*/
inline StreamDescription& WithKeyId(const char* value) { SetKeyId(value); return *this;}
private:
Aws::String m_streamName;
bool m_streamNameHasBeenSet;
Aws::String m_streamARN;
bool m_streamARNHasBeenSet;
StreamStatus m_streamStatus;
bool m_streamStatusHasBeenSet;
Aws::Vector<Shard> m_shards;
bool m_shardsHasBeenSet;
bool m_hasMoreShards;
bool m_hasMoreShardsHasBeenSet;
int m_retentionPeriodHours;
bool m_retentionPeriodHoursHasBeenSet;
Aws::Utils::DateTime m_streamCreationTimestamp;
bool m_streamCreationTimestampHasBeenSet;
Aws::Vector<EnhancedMetrics> m_enhancedMonitoring;
bool m_enhancedMonitoringHasBeenSet;
EncryptionType m_encryptionType;
bool m_encryptionTypeHasBeenSet;
Aws::String m_keyId;
bool m_keyIdHasBeenSet;
};
} // namespace Model
} // namespace Kinesis
} // namespace Aws