/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace SecurityHub { namespace Model { /** *

Provides information about an Amazon Kinesis data stream.

See * Also:

AWS * API Reference

*/ class AwsKinesisStreamDetails { public: AWS_SECURITYHUB_API AwsKinesisStreamDetails(); AWS_SECURITYHUB_API AwsKinesisStreamDetails(Aws::Utils::Json::JsonView jsonValue); AWS_SECURITYHUB_API AwsKinesisStreamDetails& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The name of the Kinesis stream. If you don't specify a name, CloudFront * generates a unique physical ID and uses that ID for the stream name.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The name of the Kinesis stream. If you don't specify a name, CloudFront * generates a unique physical ID and uses that ID for the stream name.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The name of the Kinesis stream. If you don't specify a name, CloudFront * generates a unique physical ID and uses that ID for the stream name.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The name of the Kinesis stream. If you don't specify a name, CloudFront * generates a unique physical ID and uses that ID for the stream name.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The name of the Kinesis stream. If you don't specify a name, CloudFront * generates a unique physical ID and uses that ID for the stream name.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

The name of the Kinesis stream. If you don't specify a name, CloudFront * generates a unique physical ID and uses that ID for the stream name.

*/ inline AwsKinesisStreamDetails& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name of the Kinesis stream. If you don't specify a name, CloudFront * generates a unique physical ID and uses that ID for the stream name.

*/ inline AwsKinesisStreamDetails& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The name of the Kinesis stream. If you don't specify a name, CloudFront * generates a unique physical ID and uses that ID for the stream name.

*/ inline AwsKinesisStreamDetails& WithName(const char* value) { SetName(value); return *this;} /** *

The Amazon Resource Name (ARN) of the Kinesis data stream.

*/ inline const Aws::String& GetArn() const{ return m_arn; } /** *

The Amazon Resource Name (ARN) of the Kinesis data stream.

*/ inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the Kinesis data stream.

*/ inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; } /** *

The Amazon Resource Name (ARN) of the Kinesis data stream.

*/ inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the Kinesis data stream.

*/ inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); } /** *

The Amazon Resource Name (ARN) of the Kinesis data stream.

*/ inline AwsKinesisStreamDetails& WithArn(const Aws::String& value) { SetArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the Kinesis data stream.

*/ inline AwsKinesisStreamDetails& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the Kinesis data stream.

*/ inline AwsKinesisStreamDetails& WithArn(const char* value) { SetArn(value); return *this;} /** *

When specified, enables or updates server-side encryption using an KMS key * for a specified stream. Removing this property from your stack template and * updating your stack disables encryption.

*/ inline const AwsKinesisStreamStreamEncryptionDetails& GetStreamEncryption() const{ return m_streamEncryption; } /** *

When specified, enables or updates server-side encryption using an KMS key * for a specified stream. Removing this property from your stack template and * updating your stack disables encryption.

*/ inline bool StreamEncryptionHasBeenSet() const { return m_streamEncryptionHasBeenSet; } /** *

When specified, enables or updates server-side encryption using an KMS key * for a specified stream. Removing this property from your stack template and * updating your stack disables encryption.

*/ inline void SetStreamEncryption(const AwsKinesisStreamStreamEncryptionDetails& value) { m_streamEncryptionHasBeenSet = true; m_streamEncryption = value; } /** *

When specified, enables or updates server-side encryption using an KMS key * for a specified stream. Removing this property from your stack template and * updating your stack disables encryption.

*/ inline void SetStreamEncryption(AwsKinesisStreamStreamEncryptionDetails&& value) { m_streamEncryptionHasBeenSet = true; m_streamEncryption = std::move(value); } /** *

When specified, enables or updates server-side encryption using an KMS key * for a specified stream. Removing this property from your stack template and * updating your stack disables encryption.

*/ inline AwsKinesisStreamDetails& WithStreamEncryption(const AwsKinesisStreamStreamEncryptionDetails& value) { SetStreamEncryption(value); return *this;} /** *

When specified, enables or updates server-side encryption using an KMS key * for a specified stream. Removing this property from your stack template and * updating your stack disables encryption.

*/ inline AwsKinesisStreamDetails& WithStreamEncryption(AwsKinesisStreamStreamEncryptionDetails&& value) { SetStreamEncryption(std::move(value)); return *this;} /** *

The number of shards that the stream uses.

*/ inline int GetShardCount() const{ return m_shardCount; } /** *

The number of shards that the stream uses.

*/ inline bool ShardCountHasBeenSet() const { return m_shardCountHasBeenSet; } /** *

The number of shards that the stream uses.

*/ inline void SetShardCount(int value) { m_shardCountHasBeenSet = true; m_shardCount = value; } /** *

The number of shards that the stream uses.

*/ inline AwsKinesisStreamDetails& WithShardCount(int value) { SetShardCount(value); return *this;} /** *

The number of hours for the data records that are stored in shards to remain * accessible.

*/ inline int GetRetentionPeriodHours() const{ return m_retentionPeriodHours; } /** *

The number of hours for the data records that are stored in shards to remain * accessible.

*/ inline bool RetentionPeriodHoursHasBeenSet() const { return m_retentionPeriodHoursHasBeenSet; } /** *

The number of hours for the data records that are stored in shards to remain * accessible.

*/ inline void SetRetentionPeriodHours(int value) { m_retentionPeriodHoursHasBeenSet = true; m_retentionPeriodHours = value; } /** *

The number of hours for the data records that are stored in shards to remain * accessible.

*/ inline AwsKinesisStreamDetails& WithRetentionPeriodHours(int value) { SetRetentionPeriodHours(value); return *this;} private: Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_arn; bool m_arnHasBeenSet = false; AwsKinesisStreamStreamEncryptionDetails m_streamEncryption; bool m_streamEncryptionHasBeenSet = false; int m_shardCount; bool m_shardCountHasBeenSet = false; int m_retentionPeriodHours; bool m_retentionPeriodHoursHasBeenSet = false; }; } // namespace Model } // namespace SecurityHub } // namespace Aws