AWS SDK for C++  1.8.71
AWS SDK for C++
UpdateInputRequest.h
Go to the documentation of this file.
1 
6 #pragma once
15 #include <utility>
16 
17 namespace Aws
18 {
19 namespace MediaLive
20 {
21 namespace Model
22 {
23 
30  {
31  public:
33 
34  // Service request name is the Operation name which will send this request out,
35  // each operation should has unique request name, so that we can get operation's name from this request.
36  // Note: this is not true for response, multiple operations may have the same response name,
37  // so we can not get operation's name from response.
38  inline virtual const char* GetServiceRequestName() const override { return "UpdateInput"; }
39 
40  Aws::String SerializePayload() const override;
41 
42 
46  inline const Aws::Vector<InputDestinationRequest>& GetDestinations() const{ return m_destinations; }
47 
51  inline bool DestinationsHasBeenSet() const { return m_destinationsHasBeenSet; }
52 
56  inline void SetDestinations(const Aws::Vector<InputDestinationRequest>& value) { m_destinationsHasBeenSet = true; m_destinations = value; }
57 
61  inline void SetDestinations(Aws::Vector<InputDestinationRequest>&& value) { m_destinationsHasBeenSet = true; m_destinations = std::move(value); }
62 
66  inline UpdateInputRequest& WithDestinations(const Aws::Vector<InputDestinationRequest>& value) { SetDestinations(value); return *this;}
67 
71  inline UpdateInputRequest& WithDestinations(Aws::Vector<InputDestinationRequest>&& value) { SetDestinations(std::move(value)); return *this;}
72 
76  inline UpdateInputRequest& AddDestinations(const InputDestinationRequest& value) { m_destinationsHasBeenSet = true; m_destinations.push_back(value); return *this; }
77 
81  inline UpdateInputRequest& AddDestinations(InputDestinationRequest&& value) { m_destinationsHasBeenSet = true; m_destinations.push_back(std::move(value)); return *this; }
82 
83 
87  inline const Aws::Vector<InputDeviceRequest>& GetInputDevices() const{ return m_inputDevices; }
88 
92  inline bool InputDevicesHasBeenSet() const { return m_inputDevicesHasBeenSet; }
93 
97  inline void SetInputDevices(const Aws::Vector<InputDeviceRequest>& value) { m_inputDevicesHasBeenSet = true; m_inputDevices = value; }
98 
102  inline void SetInputDevices(Aws::Vector<InputDeviceRequest>&& value) { m_inputDevicesHasBeenSet = true; m_inputDevices = std::move(value); }
103 
107  inline UpdateInputRequest& WithInputDevices(const Aws::Vector<InputDeviceRequest>& value) { SetInputDevices(value); return *this;}
108 
112  inline UpdateInputRequest& WithInputDevices(Aws::Vector<InputDeviceRequest>&& value) { SetInputDevices(std::move(value)); return *this;}
113 
117  inline UpdateInputRequest& AddInputDevices(const InputDeviceRequest& value) { m_inputDevicesHasBeenSet = true; m_inputDevices.push_back(value); return *this; }
118 
122  inline UpdateInputRequest& AddInputDevices(InputDeviceRequest&& value) { m_inputDevicesHasBeenSet = true; m_inputDevices.push_back(std::move(value)); return *this; }
123 
124 
128  inline const Aws::String& GetInputId() const{ return m_inputId; }
129 
133  inline bool InputIdHasBeenSet() const { return m_inputIdHasBeenSet; }
134 
138  inline void SetInputId(const Aws::String& value) { m_inputIdHasBeenSet = true; m_inputId = value; }
139 
143  inline void SetInputId(Aws::String&& value) { m_inputIdHasBeenSet = true; m_inputId = std::move(value); }
144 
148  inline void SetInputId(const char* value) { m_inputIdHasBeenSet = true; m_inputId.assign(value); }
149 
153  inline UpdateInputRequest& WithInputId(const Aws::String& value) { SetInputId(value); return *this;}
154 
158  inline UpdateInputRequest& WithInputId(Aws::String&& value) { SetInputId(std::move(value)); return *this;}
159 
163  inline UpdateInputRequest& WithInputId(const char* value) { SetInputId(value); return *this;}
164 
165 
169  inline const Aws::Vector<Aws::String>& GetInputSecurityGroups() const{ return m_inputSecurityGroups; }
170 
174  inline bool InputSecurityGroupsHasBeenSet() const { return m_inputSecurityGroupsHasBeenSet; }
175 
179  inline void SetInputSecurityGroups(const Aws::Vector<Aws::String>& value) { m_inputSecurityGroupsHasBeenSet = true; m_inputSecurityGroups = value; }
180 
184  inline void SetInputSecurityGroups(Aws::Vector<Aws::String>&& value) { m_inputSecurityGroupsHasBeenSet = true; m_inputSecurityGroups = std::move(value); }
185 
189  inline UpdateInputRequest& WithInputSecurityGroups(const Aws::Vector<Aws::String>& value) { SetInputSecurityGroups(value); return *this;}
190 
194  inline UpdateInputRequest& WithInputSecurityGroups(Aws::Vector<Aws::String>&& value) { SetInputSecurityGroups(std::move(value)); return *this;}
195 
199  inline UpdateInputRequest& AddInputSecurityGroups(const Aws::String& value) { m_inputSecurityGroupsHasBeenSet = true; m_inputSecurityGroups.push_back(value); return *this; }
200 
204  inline UpdateInputRequest& AddInputSecurityGroups(Aws::String&& value) { m_inputSecurityGroupsHasBeenSet = true; m_inputSecurityGroups.push_back(std::move(value)); return *this; }
205 
209  inline UpdateInputRequest& AddInputSecurityGroups(const char* value) { m_inputSecurityGroupsHasBeenSet = true; m_inputSecurityGroups.push_back(value); return *this; }
210 
211 
222  inline const Aws::Vector<MediaConnectFlowRequest>& GetMediaConnectFlows() const{ return m_mediaConnectFlows; }
223 
234  inline bool MediaConnectFlowsHasBeenSet() const { return m_mediaConnectFlowsHasBeenSet; }
235 
246  inline void SetMediaConnectFlows(const Aws::Vector<MediaConnectFlowRequest>& value) { m_mediaConnectFlowsHasBeenSet = true; m_mediaConnectFlows = value; }
247 
258  inline void SetMediaConnectFlows(Aws::Vector<MediaConnectFlowRequest>&& value) { m_mediaConnectFlowsHasBeenSet = true; m_mediaConnectFlows = std::move(value); }
259 
270  inline UpdateInputRequest& WithMediaConnectFlows(const Aws::Vector<MediaConnectFlowRequest>& value) { SetMediaConnectFlows(value); return *this;}
271 
282  inline UpdateInputRequest& WithMediaConnectFlows(Aws::Vector<MediaConnectFlowRequest>&& value) { SetMediaConnectFlows(std::move(value)); return *this;}
283 
294  inline UpdateInputRequest& AddMediaConnectFlows(const MediaConnectFlowRequest& value) { m_mediaConnectFlowsHasBeenSet = true; m_mediaConnectFlows.push_back(value); return *this; }
295 
306  inline UpdateInputRequest& AddMediaConnectFlows(MediaConnectFlowRequest&& value) { m_mediaConnectFlowsHasBeenSet = true; m_mediaConnectFlows.push_back(std::move(value)); return *this; }
307 
308 
312  inline const Aws::String& GetName() const{ return m_name; }
313 
317  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
318 
322  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
323 
327  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
328 
332  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
333 
337  inline UpdateInputRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
338 
342  inline UpdateInputRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
343 
347  inline UpdateInputRequest& WithName(const char* value) { SetName(value); return *this;}
348 
349 
354  inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
355 
360  inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
361 
366  inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
367 
372  inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
373 
378  inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
379 
384  inline UpdateInputRequest& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
385 
390  inline UpdateInputRequest& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
391 
396  inline UpdateInputRequest& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
397 
398 
407  inline const Aws::Vector<InputSourceRequest>& GetSources() const{ return m_sources; }
408 
417  inline bool SourcesHasBeenSet() const { return m_sourcesHasBeenSet; }
418 
427  inline void SetSources(const Aws::Vector<InputSourceRequest>& value) { m_sourcesHasBeenSet = true; m_sources = value; }
428 
437  inline void SetSources(Aws::Vector<InputSourceRequest>&& value) { m_sourcesHasBeenSet = true; m_sources = std::move(value); }
438 
447  inline UpdateInputRequest& WithSources(const Aws::Vector<InputSourceRequest>& value) { SetSources(value); return *this;}
448 
457  inline UpdateInputRequest& WithSources(Aws::Vector<InputSourceRequest>&& value) { SetSources(std::move(value)); return *this;}
458 
467  inline UpdateInputRequest& AddSources(const InputSourceRequest& value) { m_sourcesHasBeenSet = true; m_sources.push_back(value); return *this; }
468 
477  inline UpdateInputRequest& AddSources(InputSourceRequest&& value) { m_sourcesHasBeenSet = true; m_sources.push_back(std::move(value)); return *this; }
478 
479  private:
480 
482  bool m_destinationsHasBeenSet;
483 
484  Aws::Vector<InputDeviceRequest> m_inputDevices;
485  bool m_inputDevicesHasBeenSet;
486 
487  Aws::String m_inputId;
488  bool m_inputIdHasBeenSet;
489 
490  Aws::Vector<Aws::String> m_inputSecurityGroups;
491  bool m_inputSecurityGroupsHasBeenSet;
492 
493  Aws::Vector<MediaConnectFlowRequest> m_mediaConnectFlows;
494  bool m_mediaConnectFlowsHasBeenSet;
495 
496  Aws::String m_name;
497  bool m_nameHasBeenSet;
498 
499  Aws::String m_roleArn;
500  bool m_roleArnHasBeenSet;
501 
503  bool m_sourcesHasBeenSet;
504  };
505 
506 } // namespace Model
507 } // namespace MediaLive
508 } // namespace Aws
UpdateInputRequest & WithRoleArn(const Aws::String &value)
UpdateInputRequest & WithInputId(Aws::String &&value)
void SetMediaConnectFlows(Aws::Vector< MediaConnectFlowRequest > &&value)
UpdateInputRequest & WithInputSecurityGroups(Aws::Vector< Aws::String > &&value)
const Aws::Vector< InputDestinationRequest > & GetDestinations() const
void SetSources(Aws::Vector< InputSourceRequest > &&value)
void SetInputId(const Aws::String &value)
void SetRoleArn(const Aws::String &value)
UpdateInputRequest & AddDestinations(InputDestinationRequest &&value)
void SetDestinations(const Aws::Vector< InputDestinationRequest > &value)
const Aws::Vector< MediaConnectFlowRequest > & GetMediaConnectFlows() const
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
void SetName(const Aws::String &value)
const Aws::Vector< InputDeviceRequest > & GetInputDevices() const
UpdateInputRequest & AddSources(InputSourceRequest &&value)
virtual const char * GetServiceRequestName() const override
void SetDestinations(Aws::Vector< InputDestinationRequest > &&value)
UpdateInputRequest & WithInputSecurityGroups(const Aws::Vector< Aws::String > &value)
UpdateInputRequest & WithDestinations(Aws::Vector< InputDestinationRequest > &&value)
UpdateInputRequest & AddInputSecurityGroups(Aws::String &&value)
UpdateInputRequest & WithName(const char *value)
UpdateInputRequest & WithName(const Aws::String &value)
UpdateInputRequest & AddMediaConnectFlows(const MediaConnectFlowRequest &value)
UpdateInputRequest & WithMediaConnectFlows(Aws::Vector< MediaConnectFlowRequest > &&value)
UpdateInputRequest & WithInputDevices(const Aws::Vector< InputDeviceRequest > &value)
UpdateInputRequest & WithInputId(const Aws::String &value)
void SetMediaConnectFlows(const Aws::Vector< MediaConnectFlowRequest > &value)
const Aws::Vector< InputSourceRequest > & GetSources() const
const Aws::Vector< Aws::String > & GetInputSecurityGroups() const
#define AWS_MEDIALIVE_API
UpdateInputRequest & AddInputDevices(InputDeviceRequest &&value)
UpdateInputRequest & WithMediaConnectFlows(const Aws::Vector< MediaConnectFlowRequest > &value)
UpdateInputRequest & WithName(Aws::String &&value)
void SetInputSecurityGroups(const Aws::Vector< Aws::String > &value)
UpdateInputRequest & WithSources(Aws::Vector< InputSourceRequest > &&value)
void SetInputDevices(const Aws::Vector< InputDeviceRequest > &value)
UpdateInputRequest & WithInputDevices(Aws::Vector< InputDeviceRequest > &&value)
void SetInputSecurityGroups(Aws::Vector< Aws::String > &&value)
void SetInputDevices(Aws::Vector< InputDeviceRequest > &&value)
UpdateInputRequest & AddInputSecurityGroups(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
UpdateInputRequest & AddSources(const InputSourceRequest &value)
UpdateInputRequest & WithRoleArn(const char *value)
UpdateInputRequest & WithRoleArn(Aws::String &&value)
UpdateInputRequest & WithSources(const Aws::Vector< InputSourceRequest > &value)
UpdateInputRequest & AddMediaConnectFlows(MediaConnectFlowRequest &&value)
UpdateInputRequest & AddInputSecurityGroups(const char *value)
UpdateInputRequest & WithInputId(const char *value)
UpdateInputRequest & AddDestinations(const InputDestinationRequest &value)
UpdateInputRequest & AddInputDevices(const InputDeviceRequest &value)
void SetSources(const Aws::Vector< InputSourceRequest > &value)
UpdateInputRequest & WithDestinations(const Aws::Vector< InputDestinationRequest > &value)