AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateInputRequest.h
1
6#pragma once
7#include <aws/medialive/MediaLive_EXPORTS.h>
8#include <aws/medialive/MediaLiveRequest.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/medialive/model/InputType.h>
13#include <aws/medialive/model/InputVpcRequest.h>
14#include <aws/medialive/model/SrtSettingsRequest.h>
15#include <aws/medialive/model/InputNetworkLocation.h>
16#include <aws/medialive/model/MulticastSettingsCreateRequest.h>
17#include <aws/medialive/model/InputDestinationRequest.h>
18#include <aws/medialive/model/InputDeviceSettings.h>
19#include <aws/medialive/model/MediaConnectFlowRequest.h>
20#include <aws/medialive/model/InputSourceRequest.h>
21#include <utility>
22#include <aws/core/utils/UUID.h>
23
24namespace Aws
25{
26namespace MediaLive
27{
28namespace Model
29{
30
37 {
38 public:
39 AWS_MEDIALIVE_API CreateInputRequest();
40
41 // Service request name is the Operation name which will send this request out,
42 // each operation should has unique request name, so that we can get operation's name from this request.
43 // Note: this is not true for response, multiple operations may have the same response name,
44 // so we can not get operation's name from response.
45 inline virtual const char* GetServiceRequestName() const override { return "CreateInput"; }
46
47 AWS_MEDIALIVE_API Aws::String SerializePayload() const override;
48
49
51
54 inline const Aws::Vector<InputDestinationRequest>& GetDestinations() const{ return m_destinations; }
55 inline bool DestinationsHasBeenSet() const { return m_destinationsHasBeenSet; }
56 inline void SetDestinations(const Aws::Vector<InputDestinationRequest>& value) { m_destinationsHasBeenSet = true; m_destinations = value; }
57 inline void SetDestinations(Aws::Vector<InputDestinationRequest>&& value) { m_destinationsHasBeenSet = true; m_destinations = std::move(value); }
60 inline CreateInputRequest& AddDestinations(const InputDestinationRequest& value) { m_destinationsHasBeenSet = true; m_destinations.push_back(value); return *this; }
61 inline CreateInputRequest& AddDestinations(InputDestinationRequest&& value) { m_destinationsHasBeenSet = true; m_destinations.push_back(std::move(value)); return *this; }
63
65
68 inline const Aws::Vector<InputDeviceSettings>& GetInputDevices() const{ return m_inputDevices; }
69 inline bool InputDevicesHasBeenSet() const { return m_inputDevicesHasBeenSet; }
70 inline void SetInputDevices(const Aws::Vector<InputDeviceSettings>& value) { m_inputDevicesHasBeenSet = true; m_inputDevices = value; }
71 inline void SetInputDevices(Aws::Vector<InputDeviceSettings>&& value) { m_inputDevicesHasBeenSet = true; m_inputDevices = std::move(value); }
73 inline CreateInputRequest& WithInputDevices(Aws::Vector<InputDeviceSettings>&& value) { SetInputDevices(std::move(value)); return *this;}
74 inline CreateInputRequest& AddInputDevices(const InputDeviceSettings& value) { m_inputDevicesHasBeenSet = true; m_inputDevices.push_back(value); return *this; }
75 inline CreateInputRequest& AddInputDevices(InputDeviceSettings&& value) { m_inputDevicesHasBeenSet = true; m_inputDevices.push_back(std::move(value)); return *this; }
77
79
82 inline const Aws::Vector<Aws::String>& GetInputSecurityGroups() const{ return m_inputSecurityGroups; }
83 inline bool InputSecurityGroupsHasBeenSet() const { return m_inputSecurityGroupsHasBeenSet; }
84 inline void SetInputSecurityGroups(const Aws::Vector<Aws::String>& value) { m_inputSecurityGroupsHasBeenSet = true; m_inputSecurityGroups = value; }
85 inline void SetInputSecurityGroups(Aws::Vector<Aws::String>&& value) { m_inputSecurityGroupsHasBeenSet = true; m_inputSecurityGroups = std::move(value); }
88 inline CreateInputRequest& AddInputSecurityGroups(const Aws::String& value) { m_inputSecurityGroupsHasBeenSet = true; m_inputSecurityGroups.push_back(value); return *this; }
89 inline CreateInputRequest& AddInputSecurityGroups(Aws::String&& value) { m_inputSecurityGroupsHasBeenSet = true; m_inputSecurityGroups.push_back(std::move(value)); return *this; }
90 inline CreateInputRequest& AddInputSecurityGroups(const char* value) { m_inputSecurityGroupsHasBeenSet = true; m_inputSecurityGroups.push_back(value); return *this; }
92
94
102 inline const Aws::Vector<MediaConnectFlowRequest>& GetMediaConnectFlows() const{ return m_mediaConnectFlows; }
103 inline bool MediaConnectFlowsHasBeenSet() const { return m_mediaConnectFlowsHasBeenSet; }
104 inline void SetMediaConnectFlows(const Aws::Vector<MediaConnectFlowRequest>& value) { m_mediaConnectFlowsHasBeenSet = true; m_mediaConnectFlows = value; }
105 inline void SetMediaConnectFlows(Aws::Vector<MediaConnectFlowRequest>&& value) { m_mediaConnectFlowsHasBeenSet = true; m_mediaConnectFlows = std::move(value); }
108 inline CreateInputRequest& AddMediaConnectFlows(const MediaConnectFlowRequest& value) { m_mediaConnectFlowsHasBeenSet = true; m_mediaConnectFlows.push_back(value); return *this; }
109 inline CreateInputRequest& AddMediaConnectFlows(MediaConnectFlowRequest&& value) { m_mediaConnectFlowsHasBeenSet = true; m_mediaConnectFlows.push_back(std::move(value)); return *this; }
111
113
116 inline const Aws::String& GetName() const{ return m_name; }
117 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
118 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
119 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
120 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
121 inline CreateInputRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
122 inline CreateInputRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
123 inline CreateInputRequest& WithName(const char* value) { SetName(value); return *this;}
125
127
132 inline const Aws::String& GetRequestId() const{ return m_requestId; }
133 inline bool RequestIdHasBeenSet() const { return m_requestIdHasBeenSet; }
134 inline void SetRequestId(const Aws::String& value) { m_requestIdHasBeenSet = true; m_requestId = value; }
135 inline void SetRequestId(Aws::String&& value) { m_requestIdHasBeenSet = true; m_requestId = std::move(value); }
136 inline void SetRequestId(const char* value) { m_requestIdHasBeenSet = true; m_requestId.assign(value); }
137 inline CreateInputRequest& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
138 inline CreateInputRequest& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
139 inline CreateInputRequest& WithRequestId(const char* value) { SetRequestId(value); return *this;}
141
143
147 inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
148 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
149 inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
150 inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
151 inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
152 inline CreateInputRequest& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
153 inline CreateInputRequest& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
154 inline CreateInputRequest& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
156
158
165 inline const Aws::Vector<InputSourceRequest>& GetSources() const{ return m_sources; }
166 inline bool SourcesHasBeenSet() const { return m_sourcesHasBeenSet; }
167 inline void SetSources(const Aws::Vector<InputSourceRequest>& value) { m_sourcesHasBeenSet = true; m_sources = value; }
168 inline void SetSources(Aws::Vector<InputSourceRequest>&& value) { m_sourcesHasBeenSet = true; m_sources = std::move(value); }
169 inline CreateInputRequest& WithSources(const Aws::Vector<InputSourceRequest>& value) { SetSources(value); return *this;}
170 inline CreateInputRequest& WithSources(Aws::Vector<InputSourceRequest>&& value) { SetSources(std::move(value)); return *this;}
171 inline CreateInputRequest& AddSources(const InputSourceRequest& value) { m_sourcesHasBeenSet = true; m_sources.push_back(value); return *this; }
172 inline CreateInputRequest& AddSources(InputSourceRequest&& value) { m_sourcesHasBeenSet = true; m_sources.push_back(std::move(value)); return *this; }
174
176
179 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
180 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
181 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
182 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
183 inline CreateInputRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
184 inline CreateInputRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
185 inline CreateInputRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
186 inline CreateInputRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
187 inline CreateInputRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
188 inline CreateInputRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
189 inline CreateInputRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
190 inline CreateInputRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
191 inline CreateInputRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
193
195
196 inline const InputType& GetType() const{ return m_type; }
197 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
198 inline void SetType(const InputType& value) { m_typeHasBeenSet = true; m_type = value; }
199 inline void SetType(InputType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
200 inline CreateInputRequest& WithType(const InputType& value) { SetType(value); return *this;}
201 inline CreateInputRequest& WithType(InputType&& value) { SetType(std::move(value)); return *this;}
203
205
206 inline const InputVpcRequest& GetVpc() const{ return m_vpc; }
207 inline bool VpcHasBeenSet() const { return m_vpcHasBeenSet; }
208 inline void SetVpc(const InputVpcRequest& value) { m_vpcHasBeenSet = true; m_vpc = value; }
209 inline void SetVpc(InputVpcRequest&& value) { m_vpcHasBeenSet = true; m_vpc = std::move(value); }
210 inline CreateInputRequest& WithVpc(const InputVpcRequest& value) { SetVpc(value); return *this;}
211 inline CreateInputRequest& WithVpc(InputVpcRequest&& value) { SetVpc(std::move(value)); return *this;}
213
215
218 inline const SrtSettingsRequest& GetSrtSettings() const{ return m_srtSettings; }
219 inline bool SrtSettingsHasBeenSet() const { return m_srtSettingsHasBeenSet; }
220 inline void SetSrtSettings(const SrtSettingsRequest& value) { m_srtSettingsHasBeenSet = true; m_srtSettings = value; }
221 inline void SetSrtSettings(SrtSettingsRequest&& value) { m_srtSettingsHasBeenSet = true; m_srtSettings = std::move(value); }
222 inline CreateInputRequest& WithSrtSettings(const SrtSettingsRequest& value) { SetSrtSettings(value); return *this;}
223 inline CreateInputRequest& WithSrtSettings(SrtSettingsRequest&& value) { SetSrtSettings(std::move(value)); return *this;}
225
227
232 inline const InputNetworkLocation& GetInputNetworkLocation() const{ return m_inputNetworkLocation; }
233 inline bool InputNetworkLocationHasBeenSet() const { return m_inputNetworkLocationHasBeenSet; }
234 inline void SetInputNetworkLocation(const InputNetworkLocation& value) { m_inputNetworkLocationHasBeenSet = true; m_inputNetworkLocation = value; }
235 inline void SetInputNetworkLocation(InputNetworkLocation&& value) { m_inputNetworkLocationHasBeenSet = true; m_inputNetworkLocation = std::move(value); }
239
241
244 inline const MulticastSettingsCreateRequest& GetMulticastSettings() const{ return m_multicastSettings; }
245 inline bool MulticastSettingsHasBeenSet() const { return m_multicastSettingsHasBeenSet; }
246 inline void SetMulticastSettings(const MulticastSettingsCreateRequest& value) { m_multicastSettingsHasBeenSet = true; m_multicastSettings = value; }
247 inline void SetMulticastSettings(MulticastSettingsCreateRequest&& value) { m_multicastSettingsHasBeenSet = true; m_multicastSettings = std::move(value); }
251 private:
252
254 bool m_destinationsHasBeenSet = false;
255
257 bool m_inputDevicesHasBeenSet = false;
258
259 Aws::Vector<Aws::String> m_inputSecurityGroups;
260 bool m_inputSecurityGroupsHasBeenSet = false;
261
262 Aws::Vector<MediaConnectFlowRequest> m_mediaConnectFlows;
263 bool m_mediaConnectFlowsHasBeenSet = false;
264
265 Aws::String m_name;
266 bool m_nameHasBeenSet = false;
267
268 Aws::String m_requestId;
269 bool m_requestIdHasBeenSet = false;
270
271 Aws::String m_roleArn;
272 bool m_roleArnHasBeenSet = false;
273
275 bool m_sourcesHasBeenSet = false;
276
278 bool m_tagsHasBeenSet = false;
279
280 InputType m_type;
281 bool m_typeHasBeenSet = false;
282
283 InputVpcRequest m_vpc;
284 bool m_vpcHasBeenSet = false;
285
286 SrtSettingsRequest m_srtSettings;
287 bool m_srtSettingsHasBeenSet = false;
288
289 InputNetworkLocation m_inputNetworkLocation;
290 bool m_inputNetworkLocationHasBeenSet = false;
291
292 MulticastSettingsCreateRequest m_multicastSettings;
293 bool m_multicastSettingsHasBeenSet = false;
294 };
295
296} // namespace Model
297} // namespace MediaLive
298} // namespace Aws
CreateInputRequest & AddMediaConnectFlows(MediaConnectFlowRequest &&value)
void SetRoleArn(const Aws::String &value)
CreateInputRequest & AddTags(const char *key, Aws::String &&value)
CreateInputRequest & WithRequestId(const Aws::String &value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateInputRequest & WithSources(const Aws::Vector< InputSourceRequest > &value)
const Aws::Vector< InputDeviceSettings > & GetInputDevices() const
CreateInputRequest & WithMediaConnectFlows(const Aws::Vector< MediaConnectFlowRequest > &value)
void SetSrtSettings(SrtSettingsRequest &&value)
CreateInputRequest & WithDestinations(Aws::Vector< InputDestinationRequest > &&value)
CreateInputRequest & WithRoleArn(const Aws::String &value)
void SetInputNetworkLocation(InputNetworkLocation &&value)
void SetDestinations(const Aws::Vector< InputDestinationRequest > &value)
CreateInputRequest & WithSrtSettings(SrtSettingsRequest &&value)
CreateInputRequest & WithInputSecurityGroups(const Aws::Vector< Aws::String > &value)
void SetSrtSettings(const SrtSettingsRequest &value)
CreateInputRequest & WithSources(Aws::Vector< InputSourceRequest > &&value)
CreateInputRequest & WithRequestId(Aws::String &&value)
CreateInputRequest & WithRoleArn(const char *value)
const Aws::Vector< InputSourceRequest > & GetSources() const
void SetDestinations(Aws::Vector< InputDestinationRequest > &&value)
void SetInputNetworkLocation(const InputNetworkLocation &value)
const Aws::Vector< InputDestinationRequest > & GetDestinations() const
CreateInputRequest & WithVpc(const InputVpcRequest &value)
CreateInputRequest & AddInputSecurityGroups(const char *value)
CreateInputRequest & WithInputSecurityGroups(Aws::Vector< Aws::String > &&value)
CreateInputRequest & AddInputSecurityGroups(const Aws::String &value)
void SetVpc(const InputVpcRequest &value)
CreateInputRequest & WithRoleArn(Aws::String &&value)
const Aws::Vector< Aws::String > & GetInputSecurityGroups() const
void SetMediaConnectFlows(const Aws::Vector< MediaConnectFlowRequest > &value)
CreateInputRequest & WithInputNetworkLocation(InputNetworkLocation &&value)
void SetSources(const Aws::Vector< InputSourceRequest > &value)
CreateInputRequest & AddInputSecurityGroups(Aws::String &&value)
CreateInputRequest & WithName(const char *value)
const Aws::Vector< MediaConnectFlowRequest > & GetMediaConnectFlows() const
void SetSources(Aws::Vector< InputSourceRequest > &&value)
CreateInputRequest & WithName(const Aws::String &value)
const InputVpcRequest & GetVpc() const
void SetRequestId(const Aws::String &value)
CreateInputRequest & WithType(const InputType &value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateInputRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
void SetInputSecurityGroups(Aws::Vector< Aws::String > &&value)
CreateInputRequest & AddTags(Aws::String &&key, const char *value)
CreateInputRequest & WithSrtSettings(const SrtSettingsRequest &value)
CreateInputRequest & AddMediaConnectFlows(const MediaConnectFlowRequest &value)
CreateInputRequest & AddTags(Aws::String &&key, Aws::String &&value)
CreateInputRequest & WithName(Aws::String &&value)
CreateInputRequest & AddInputDevices(InputDeviceSettings &&value)
void SetInputDevices(Aws::Vector< InputDeviceSettings > &&value)
CreateInputRequest & AddSources(const InputSourceRequest &value)
CreateInputRequest & WithInputNetworkLocation(const InputNetworkLocation &value)
CreateInputRequest & AddDestinations(const InputDestinationRequest &value)
CreateInputRequest & WithVpc(InputVpcRequest &&value)
void SetInputSecurityGroups(const Aws::Vector< Aws::String > &value)
const SrtSettingsRequest & GetSrtSettings() const
void SetMediaConnectFlows(Aws::Vector< MediaConnectFlowRequest > &&value)
CreateInputRequest & WithMulticastSettings(const MulticastSettingsCreateRequest &value)
CreateInputRequest & AddTags(const Aws::String &key, const Aws::String &value)
CreateInputRequest & WithInputDevices(Aws::Vector< InputDeviceSettings > &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateInputRequest & WithType(InputType &&value)
CreateInputRequest & WithMulticastSettings(MulticastSettingsCreateRequest &&value)
AWS_MEDIALIVE_API Aws::String SerializePayload() const override
void SetMulticastSettings(const MulticastSettingsCreateRequest &value)
CreateInputRequest & WithInputDevices(const Aws::Vector< InputDeviceSettings > &value)
CreateInputRequest & WithMediaConnectFlows(Aws::Vector< MediaConnectFlowRequest > &&value)
void SetInputDevices(const Aws::Vector< InputDeviceSettings > &value)
CreateInputRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateInputRequest & AddTags(const Aws::String &key, Aws::String &&value)
void SetMulticastSettings(MulticastSettingsCreateRequest &&value)
CreateInputRequest & AddTags(const char *key, const char *value)
CreateInputRequest & AddInputDevices(const InputDeviceSettings &value)
CreateInputRequest & AddDestinations(InputDestinationRequest &&value)
CreateInputRequest & AddSources(InputSourceRequest &&value)
const MulticastSettingsCreateRequest & GetMulticastSettings() const
const InputNetworkLocation & GetInputNetworkLocation() const
CreateInputRequest & WithDestinations(const Aws::Vector< InputDestinationRequest > &value)
CreateInputRequest & WithRequestId(const char *value)
virtual const char * GetServiceRequestName() const override
CreateInputRequest & AddTags(Aws::String &&key, const Aws::String &value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector