/** * 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 Chime { namespace Model { /** *

The streaming configuration associated with an Amazon Chime Voice Connector. * Specifies whether media streaming is enabled for sending to Amazon Kinesis, and * shows the retention period for the Amazon Kinesis data, in hours.

See * Also:

AWS * API Reference

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

The retention period, in hours, for the Amazon Kinesis data.

*/ inline int GetDataRetentionInHours() const{ return m_dataRetentionInHours; } /** *

The retention period, in hours, for the Amazon Kinesis data.

*/ inline bool DataRetentionInHoursHasBeenSet() const { return m_dataRetentionInHoursHasBeenSet; } /** *

The retention period, in hours, for the Amazon Kinesis data.

*/ inline void SetDataRetentionInHours(int value) { m_dataRetentionInHoursHasBeenSet = true; m_dataRetentionInHours = value; } /** *

The retention period, in hours, for the Amazon Kinesis data.

*/ inline StreamingConfiguration& WithDataRetentionInHours(int value) { SetDataRetentionInHours(value); return *this;} /** *

When true, media streaming to Amazon Kinesis is turned off.

*/ inline bool GetDisabled() const{ return m_disabled; } /** *

When true, media streaming to Amazon Kinesis is turned off.

*/ inline bool DisabledHasBeenSet() const { return m_disabledHasBeenSet; } /** *

When true, media streaming to Amazon Kinesis is turned off.

*/ inline void SetDisabled(bool value) { m_disabledHasBeenSet = true; m_disabled = value; } /** *

When true, media streaming to Amazon Kinesis is turned off.

*/ inline StreamingConfiguration& WithDisabled(bool value) { SetDisabled(value); return *this;} /** *

The streaming notification targets.

*/ inline const Aws::Vector& GetStreamingNotificationTargets() const{ return m_streamingNotificationTargets; } /** *

The streaming notification targets.

*/ inline bool StreamingNotificationTargetsHasBeenSet() const { return m_streamingNotificationTargetsHasBeenSet; } /** *

The streaming notification targets.

*/ inline void SetStreamingNotificationTargets(const Aws::Vector& value) { m_streamingNotificationTargetsHasBeenSet = true; m_streamingNotificationTargets = value; } /** *

The streaming notification targets.

*/ inline void SetStreamingNotificationTargets(Aws::Vector&& value) { m_streamingNotificationTargetsHasBeenSet = true; m_streamingNotificationTargets = std::move(value); } /** *

The streaming notification targets.

*/ inline StreamingConfiguration& WithStreamingNotificationTargets(const Aws::Vector& value) { SetStreamingNotificationTargets(value); return *this;} /** *

The streaming notification targets.

*/ inline StreamingConfiguration& WithStreamingNotificationTargets(Aws::Vector&& value) { SetStreamingNotificationTargets(std::move(value)); return *this;} /** *

The streaming notification targets.

*/ inline StreamingConfiguration& AddStreamingNotificationTargets(const StreamingNotificationTarget& value) { m_streamingNotificationTargetsHasBeenSet = true; m_streamingNotificationTargets.push_back(value); return *this; } /** *

The streaming notification targets.

*/ inline StreamingConfiguration& AddStreamingNotificationTargets(StreamingNotificationTarget&& value) { m_streamingNotificationTargetsHasBeenSet = true; m_streamingNotificationTargets.push_back(std::move(value)); return *this; } private: int m_dataRetentionInHours; bool m_dataRetentionInHoursHasBeenSet = false; bool m_disabled; bool m_disabledHasBeenSet = false; Aws::Vector m_streamingNotificationTargets; bool m_streamingNotificationTargetsHasBeenSet = false; }; } // namespace Model } // namespace Chime } // namespace Aws