/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace MediaTailor { namespace Model { /** */ class ConfigureLogsForChannelRequest : public MediaTailorRequest { public: AWS_MEDIATAILOR_API ConfigureLogsForChannelRequest(); // 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 "ConfigureLogsForChannel"; } AWS_MEDIATAILOR_API Aws::String SerializePayload() const override; /** *

The name of the channel.

*/ inline const Aws::String& GetChannelName() const{ return m_channelName; } /** *

The name of the channel.

*/ inline bool ChannelNameHasBeenSet() const { return m_channelNameHasBeenSet; } /** *

The name of the channel.

*/ inline void SetChannelName(const Aws::String& value) { m_channelNameHasBeenSet = true; m_channelName = value; } /** *

The name of the channel.

*/ inline void SetChannelName(Aws::String&& value) { m_channelNameHasBeenSet = true; m_channelName = std::move(value); } /** *

The name of the channel.

*/ inline void SetChannelName(const char* value) { m_channelNameHasBeenSet = true; m_channelName.assign(value); } /** *

The name of the channel.

*/ inline ConfigureLogsForChannelRequest& WithChannelName(const Aws::String& value) { SetChannelName(value); return *this;} /** *

The name of the channel.

*/ inline ConfigureLogsForChannelRequest& WithChannelName(Aws::String&& value) { SetChannelName(std::move(value)); return *this;} /** *

The name of the channel.

*/ inline ConfigureLogsForChannelRequest& WithChannelName(const char* value) { SetChannelName(value); return *this;} /** *

The types of logs to collect.

*/ inline const Aws::Vector& GetLogTypes() const{ return m_logTypes; } /** *

The types of logs to collect.

*/ inline bool LogTypesHasBeenSet() const { return m_logTypesHasBeenSet; } /** *

The types of logs to collect.

*/ inline void SetLogTypes(const Aws::Vector& value) { m_logTypesHasBeenSet = true; m_logTypes = value; } /** *

The types of logs to collect.

*/ inline void SetLogTypes(Aws::Vector&& value) { m_logTypesHasBeenSet = true; m_logTypes = std::move(value); } /** *

The types of logs to collect.

*/ inline ConfigureLogsForChannelRequest& WithLogTypes(const Aws::Vector& value) { SetLogTypes(value); return *this;} /** *

The types of logs to collect.

*/ inline ConfigureLogsForChannelRequest& WithLogTypes(Aws::Vector&& value) { SetLogTypes(std::move(value)); return *this;} /** *

The types of logs to collect.

*/ inline ConfigureLogsForChannelRequest& AddLogTypes(const LogType& value) { m_logTypesHasBeenSet = true; m_logTypes.push_back(value); return *this; } /** *

The types of logs to collect.

*/ inline ConfigureLogsForChannelRequest& AddLogTypes(LogType&& value) { m_logTypesHasBeenSet = true; m_logTypes.push_back(std::move(value)); return *this; } private: Aws::String m_channelName; bool m_channelNameHasBeenSet = false; Aws::Vector m_logTypes; bool m_logTypesHasBeenSet = false; }; } // namespace Model } // namespace MediaTailor } // namespace Aws