AWS SDK for C++  1.9.105
AWS SDK for C++
UpdateChannelRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace MediaTailor
17 {
18 namespace Model
19 {
20 
24  {
25  public:
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.
32  inline virtual const char* GetServiceRequestName() const override { return "UpdateChannel"; }
33 
34  Aws::String SerializePayload() const override;
35 
36 
40  inline const Aws::String& GetChannelName() const{ return m_channelName; }
41 
45  inline bool ChannelNameHasBeenSet() const { return m_channelNameHasBeenSet; }
46 
50  inline void SetChannelName(const Aws::String& value) { m_channelNameHasBeenSet = true; m_channelName = value; }
51 
55  inline void SetChannelName(Aws::String&& value) { m_channelNameHasBeenSet = true; m_channelName = std::move(value); }
56 
60  inline void SetChannelName(const char* value) { m_channelNameHasBeenSet = true; m_channelName.assign(value); }
61 
65  inline UpdateChannelRequest& WithChannelName(const Aws::String& value) { SetChannelName(value); return *this;}
66 
70  inline UpdateChannelRequest& WithChannelName(Aws::String&& value) { SetChannelName(std::move(value)); return *this;}
71 
75  inline UpdateChannelRequest& WithChannelName(const char* value) { SetChannelName(value); return *this;}
76 
77 
81  inline const Aws::Vector<RequestOutputItem>& GetOutputs() const{ return m_outputs; }
82 
86  inline bool OutputsHasBeenSet() const { return m_outputsHasBeenSet; }
87 
91  inline void SetOutputs(const Aws::Vector<RequestOutputItem>& value) { m_outputsHasBeenSet = true; m_outputs = value; }
92 
96  inline void SetOutputs(Aws::Vector<RequestOutputItem>&& value) { m_outputsHasBeenSet = true; m_outputs = std::move(value); }
97 
101  inline UpdateChannelRequest& WithOutputs(const Aws::Vector<RequestOutputItem>& value) { SetOutputs(value); return *this;}
102 
106  inline UpdateChannelRequest& WithOutputs(Aws::Vector<RequestOutputItem>&& value) { SetOutputs(std::move(value)); return *this;}
107 
111  inline UpdateChannelRequest& AddOutputs(const RequestOutputItem& value) { m_outputsHasBeenSet = true; m_outputs.push_back(value); return *this; }
112 
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 
124  bool m_outputsHasBeenSet;
125  };
126 
127 } // namespace Model
128 } // namespace MediaTailor
129 } // namespace Aws
Aws::MediaTailor::Model::UpdateChannelRequest::UpdateChannelRequest
UpdateChannelRequest()
AWS_MEDIATAILOR_API
#define AWS_MEDIATAILOR_API
Definition: MediaTailor_EXPORTS.h:28
Aws::MediaTailor::Model::UpdateChannelRequest
Definition: UpdateChannelRequest.h:24
Aws::MediaTailor::Model::UpdateChannelRequest::SetOutputs
void SetOutputs(const Aws::Vector< RequestOutputItem > &value)
Definition: UpdateChannelRequest.h:91
Aws::MediaTailor::Model::UpdateChannelRequest::WithOutputs
UpdateChannelRequest & WithOutputs(const Aws::Vector< RequestOutputItem > &value)
Definition: UpdateChannelRequest.h:101
Aws::MediaTailor::Model::UpdateChannelRequest::WithChannelName
UpdateChannelRequest & WithChannelName(Aws::String &&value)
Definition: UpdateChannelRequest.h:70
Aws::MediaTailor::Model::UpdateChannelRequest::AddOutputs
UpdateChannelRequest & AddOutputs(RequestOutputItem &&value)
Definition: UpdateChannelRequest.h:116
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::MediaTailor::Model::UpdateChannelRequest::SetChannelName
void SetChannelName(Aws::String &&value)
Definition: UpdateChannelRequest.h:55
AWSVector.h
Aws::MediaTailor::Model::UpdateChannelRequest::WithOutputs
UpdateChannelRequest & WithOutputs(Aws::Vector< RequestOutputItem > &&value)
Definition: UpdateChannelRequest.h:106
Aws::MediaTailor::Model::UpdateChannelRequest::AddOutputs
UpdateChannelRequest & AddOutputs(const RequestOutputItem &value)
Definition: UpdateChannelRequest.h:111
Aws::MediaTailor::Model::UpdateChannelRequest::ChannelNameHasBeenSet
bool ChannelNameHasBeenSet() const
Definition: UpdateChannelRequest.h:45
Aws::MediaTailor::Model::UpdateChannelRequest::WithChannelName
UpdateChannelRequest & WithChannelName(const char *value)
Definition: UpdateChannelRequest.h:75
Aws::MediaTailor::Model::UpdateChannelRequest::GetChannelName
const Aws::String & GetChannelName() const
Definition: UpdateChannelRequest.h:40
Aws::MediaTailor::Model::UpdateChannelRequest::SetOutputs
void SetOutputs(Aws::Vector< RequestOutputItem > &&value)
Definition: UpdateChannelRequest.h:96
RequestOutputItem.h
Aws::MediaTailor::Model::UpdateChannelRequest::WithChannelName
UpdateChannelRequest & WithChannelName(const Aws::String &value)
Definition: UpdateChannelRequest.h:65
Aws::MediaTailor::MediaTailorRequest
Definition: MediaTailorRequest.h:17
Aws::MediaTailor::Model::UpdateChannelRequest::OutputsHasBeenSet
bool OutputsHasBeenSet() const
Definition: UpdateChannelRequest.h:86
AWSString.h
Aws::MediaTailor::Model::UpdateChannelRequest::SerializePayload
Aws::String SerializePayload() const override
MediaTailorRequest.h
Aws::MediaTailor::Model::UpdateChannelRequest::GetOutputs
const Aws::Vector< RequestOutputItem > & GetOutputs() const
Definition: UpdateChannelRequest.h:81
MediaTailor_EXPORTS.h
Aws::MediaTailor::Model::UpdateChannelRequest::SetChannelName
void SetChannelName(const Aws::String &value)
Definition: UpdateChannelRequest.h:50
Aws
Definition: AccessManagementClient.h:15
Aws::MediaTailor::Model::UpdateChannelRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: UpdateChannelRequest.h:32
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::MediaTailor::Model::UpdateChannelRequest::SetChannelName
void SetChannelName(const char *value)
Definition: UpdateChannelRequest.h:60
Aws::MediaTailor::Model::RequestOutputItem
Definition: RequestOutputItem.h:34