1 /** 2 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 * SPDX-License-Identifier: Apache-2.0. 4 */ 5 6 #pragma once 7 #include <aws/mediatailor/MediaTailor_EXPORTS.h> 8 #include <aws/mediatailor/MediaTailorRequest.h> 9 #include <aws/core/utils/memory/stl/AWSString.h> 10 #include <aws/core/utils/memory/stl/AWSVector.h> 11 #include <aws/mediatailor/model/RequestOutputItem.h> 12 #include <utility> 13 14 namespace Aws 15 { 16 namespace MediaTailor 17 { 18 namespace Model 19 { 20 21 /** 22 */ 23 class AWS_MEDIATAILOR_API UpdateChannelRequest : public MediaTailorRequest 24 { 25 public: 26 UpdateChannelRequest(); 27 28 // Service request name is the Operation name which will send this request out, 29 // each operation should has unique request name, so that we can get operation's name from this request. 30 // Note: this is not true for response, multiple operations may have the same response name, 31 // so we can not get operation's name from response. GetServiceRequestName()32 inline virtual const char* GetServiceRequestName() const override { return "UpdateChannel"; } 33 34 Aws::String SerializePayload() const override; 35 36 37 /** 38 * <p>The identifier for the channel you are working on.</p> 39 */ GetChannelName()40 inline const Aws::String& GetChannelName() const{ return m_channelName; } 41 42 /** 43 * <p>The identifier for the channel you are working on.</p> 44 */ ChannelNameHasBeenSet()45 inline bool ChannelNameHasBeenSet() const { return m_channelNameHasBeenSet; } 46 47 /** 48 * <p>The identifier for the channel you are working on.</p> 49 */ SetChannelName(const Aws::String & value)50 inline void SetChannelName(const Aws::String& value) { m_channelNameHasBeenSet = true; m_channelName = value; } 51 52 /** 53 * <p>The identifier for the channel you are working on.</p> 54 */ SetChannelName(Aws::String && value)55 inline void SetChannelName(Aws::String&& value) { m_channelNameHasBeenSet = true; m_channelName = std::move(value); } 56 57 /** 58 * <p>The identifier for the channel you are working on.</p> 59 */ SetChannelName(const char * value)60 inline void SetChannelName(const char* value) { m_channelNameHasBeenSet = true; m_channelName.assign(value); } 61 62 /** 63 * <p>The identifier for the channel you are working on.</p> 64 */ WithChannelName(const Aws::String & value)65 inline UpdateChannelRequest& WithChannelName(const Aws::String& value) { SetChannelName(value); return *this;} 66 67 /** 68 * <p>The identifier for the channel you are working on.</p> 69 */ WithChannelName(Aws::String && value)70 inline UpdateChannelRequest& WithChannelName(Aws::String&& value) { SetChannelName(std::move(value)); return *this;} 71 72 /** 73 * <p>The identifier for the channel you are working on.</p> 74 */ WithChannelName(const char * value)75 inline UpdateChannelRequest& WithChannelName(const char* value) { SetChannelName(value); return *this;} 76 77 78 /** 79 * <p>The channel's output properties.</p> 80 */ GetOutputs()81 inline const Aws::Vector<RequestOutputItem>& GetOutputs() const{ return m_outputs; } 82 83 /** 84 * <p>The channel's output properties.</p> 85 */ OutputsHasBeenSet()86 inline bool OutputsHasBeenSet() const { return m_outputsHasBeenSet; } 87 88 /** 89 * <p>The channel's output properties.</p> 90 */ SetOutputs(const Aws::Vector<RequestOutputItem> & value)91 inline void SetOutputs(const Aws::Vector<RequestOutputItem>& value) { m_outputsHasBeenSet = true; m_outputs = value; } 92 93 /** 94 * <p>The channel's output properties.</p> 95 */ SetOutputs(Aws::Vector<RequestOutputItem> && value)96 inline void SetOutputs(Aws::Vector<RequestOutputItem>&& value) { m_outputsHasBeenSet = true; m_outputs = std::move(value); } 97 98 /** 99 * <p>The channel's output properties.</p> 100 */ WithOutputs(const Aws::Vector<RequestOutputItem> & value)101 inline UpdateChannelRequest& WithOutputs(const Aws::Vector<RequestOutputItem>& value) { SetOutputs(value); return *this;} 102 103 /** 104 * <p>The channel's output properties.</p> 105 */ WithOutputs(Aws::Vector<RequestOutputItem> && value)106 inline UpdateChannelRequest& WithOutputs(Aws::Vector<RequestOutputItem>&& value) { SetOutputs(std::move(value)); return *this;} 107 108 /** 109 * <p>The channel's output properties.</p> 110 */ AddOutputs(const RequestOutputItem & value)111 inline UpdateChannelRequest& AddOutputs(const RequestOutputItem& value) { m_outputsHasBeenSet = true; m_outputs.push_back(value); return *this; } 112 113 /** 114 * <p>The channel's output properties.</p> 115 */ AddOutputs(RequestOutputItem && value)116 inline UpdateChannelRequest& AddOutputs(RequestOutputItem&& value) { m_outputsHasBeenSet = true; m_outputs.push_back(std::move(value)); return *this; } 117 118 private: 119 120 Aws::String m_channelName; 121 bool m_channelNameHasBeenSet; 122 123 Aws::Vector<RequestOutputItem> m_outputs; 124 bool m_outputsHasBeenSet; 125 }; 126 127 } // namespace Model 128 } // namespace MediaTailor 129 } // namespace Aws 130