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

Returns Amazon CloudWatch log settings for a playback * configuration.

See Also:

AWS * API Reference

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

The percentage of session logs that MediaTailor sends to your Cloudwatch Logs * account. For example, if your playback configuration has 1000 sessions and * percentEnabled is set to 60, MediaTailor sends logs * for 600 of the sessions to CloudWatch Logs. MediaTailor decides at random which * of the playback configuration sessions to send logs for. If you want to view * logs for a specific session, you can use the debug * log mode.

Valid values: 0 - 100

*/ inline int GetPercentEnabled() const{ return m_percentEnabled; } /** *

The percentage of session logs that MediaTailor sends to your Cloudwatch Logs * account. For example, if your playback configuration has 1000 sessions and * percentEnabled is set to 60, MediaTailor sends logs * for 600 of the sessions to CloudWatch Logs. MediaTailor decides at random which * of the playback configuration sessions to send logs for. If you want to view * logs for a specific session, you can use the debug * log mode.

Valid values: 0 - 100

*/ inline bool PercentEnabledHasBeenSet() const { return m_percentEnabledHasBeenSet; } /** *

The percentage of session logs that MediaTailor sends to your Cloudwatch Logs * account. For example, if your playback configuration has 1000 sessions and * percentEnabled is set to 60, MediaTailor sends logs * for 600 of the sessions to CloudWatch Logs. MediaTailor decides at random which * of the playback configuration sessions to send logs for. If you want to view * logs for a specific session, you can use the debug * log mode.

Valid values: 0 - 100

*/ inline void SetPercentEnabled(int value) { m_percentEnabledHasBeenSet = true; m_percentEnabled = value; } /** *

The percentage of session logs that MediaTailor sends to your Cloudwatch Logs * account. For example, if your playback configuration has 1000 sessions and * percentEnabled is set to 60, MediaTailor sends logs * for 600 of the sessions to CloudWatch Logs. MediaTailor decides at random which * of the playback configuration sessions to send logs for. If you want to view * logs for a specific session, you can use the debug * log mode.

Valid values: 0 - 100

*/ inline LogConfiguration& WithPercentEnabled(int value) { SetPercentEnabled(value); return *this;} private: int m_percentEnabled; bool m_percentEnabledHasBeenSet = false; }; } // namespace Model } // namespace MediaTailor } // namespace Aws