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

Configures Amazon CloudWatch log settings for a playback * configuration.

See Also:

AWS * API Reference

*/ class ConfigureLogsForPlaybackConfigurationRequest : public MediaTailorRequest { public: AWS_MEDIATAILOR_API ConfigureLogsForPlaybackConfigurationRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "ConfigureLogsForPlaybackConfiguration"; } AWS_MEDIATAILOR_API Aws::String SerializePayload() const override; /** *

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 ConfigureLogsForPlaybackConfigurationRequest& WithPercentEnabled(int value) { SetPercentEnabled(value); return *this;} /** *

The name of the playback configuration.

*/ inline const Aws::String& GetPlaybackConfigurationName() const{ return m_playbackConfigurationName; } /** *

The name of the playback configuration.

*/ inline bool PlaybackConfigurationNameHasBeenSet() const { return m_playbackConfigurationNameHasBeenSet; } /** *

The name of the playback configuration.

*/ inline void SetPlaybackConfigurationName(const Aws::String& value) { m_playbackConfigurationNameHasBeenSet = true; m_playbackConfigurationName = value; } /** *

The name of the playback configuration.

*/ inline void SetPlaybackConfigurationName(Aws::String&& value) { m_playbackConfigurationNameHasBeenSet = true; m_playbackConfigurationName = std::move(value); } /** *

The name of the playback configuration.

*/ inline void SetPlaybackConfigurationName(const char* value) { m_playbackConfigurationNameHasBeenSet = true; m_playbackConfigurationName.assign(value); } /** *

The name of the playback configuration.

*/ inline ConfigureLogsForPlaybackConfigurationRequest& WithPlaybackConfigurationName(const Aws::String& value) { SetPlaybackConfigurationName(value); return *this;} /** *

The name of the playback configuration.

*/ inline ConfigureLogsForPlaybackConfigurationRequest& WithPlaybackConfigurationName(Aws::String&& value) { SetPlaybackConfigurationName(std::move(value)); return *this;} /** *

The name of the playback configuration.

*/ inline ConfigureLogsForPlaybackConfigurationRequest& WithPlaybackConfigurationName(const char* value) { SetPlaybackConfigurationName(value); return *this;} private: int m_percentEnabled; bool m_percentEnabledHasBeenSet = false; Aws::String m_playbackConfigurationName; bool m_playbackConfigurationNameHasBeenSet = false; }; } // namespace Model } // namespace MediaTailor } // namespace Aws