AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
BatchStartRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/medialive/MediaLiveRequest.h>
10#include <aws/medialive/MediaLive_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace MediaLive {
16namespace Model {
17
24 public:
25 AWS_MEDIALIVE_API BatchStartRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "BatchStart"; }
32
33 AWS_MEDIALIVE_API Aws::String SerializePayload() const override;
34
36
39 inline const Aws::Vector<Aws::String>& GetChannelIds() const { return m_channelIds; }
40 inline bool ChannelIdsHasBeenSet() const { return m_channelIdsHasBeenSet; }
41 template <typename ChannelIdsT = Aws::Vector<Aws::String>>
42 void SetChannelIds(ChannelIdsT&& value) {
43 m_channelIdsHasBeenSet = true;
44 m_channelIds = std::forward<ChannelIdsT>(value);
45 }
46 template <typename ChannelIdsT = Aws::Vector<Aws::String>>
47 BatchStartRequest& WithChannelIds(ChannelIdsT&& value) {
48 SetChannelIds(std::forward<ChannelIdsT>(value));
49 return *this;
50 }
51 template <typename ChannelIdsT = Aws::String>
52 BatchStartRequest& AddChannelIds(ChannelIdsT&& value) {
53 m_channelIdsHasBeenSet = true;
54 m_channelIds.emplace_back(std::forward<ChannelIdsT>(value));
55 return *this;
56 }
58
60
63 inline const Aws::Vector<Aws::String>& GetMultiplexIds() const { return m_multiplexIds; }
64 inline bool MultiplexIdsHasBeenSet() const { return m_multiplexIdsHasBeenSet; }
65 template <typename MultiplexIdsT = Aws::Vector<Aws::String>>
66 void SetMultiplexIds(MultiplexIdsT&& value) {
67 m_multiplexIdsHasBeenSet = true;
68 m_multiplexIds = std::forward<MultiplexIdsT>(value);
69 }
70 template <typename MultiplexIdsT = Aws::Vector<Aws::String>>
71 BatchStartRequest& WithMultiplexIds(MultiplexIdsT&& value) {
72 SetMultiplexIds(std::forward<MultiplexIdsT>(value));
73 return *this;
74 }
75 template <typename MultiplexIdsT = Aws::String>
76 BatchStartRequest& AddMultiplexIds(MultiplexIdsT&& value) {
77 m_multiplexIdsHasBeenSet = true;
78 m_multiplexIds.emplace_back(std::forward<MultiplexIdsT>(value));
79 return *this;
80 }
82 private:
83 Aws::Vector<Aws::String> m_channelIds;
84
85 Aws::Vector<Aws::String> m_multiplexIds;
86 bool m_channelIdsHasBeenSet = false;
87 bool m_multiplexIdsHasBeenSet = false;
88};
89
90} // namespace Model
91} // namespace MediaLive
92} // namespace Aws
AWS_MEDIALIVE_API Aws::String SerializePayload() const override
const Aws::Vector< Aws::String > & GetMultiplexIds() const
BatchStartRequest & WithChannelIds(ChannelIdsT &&value)
const Aws::Vector< Aws::String > & GetChannelIds() const
AWS_MEDIALIVE_API BatchStartRequest()=default
BatchStartRequest & AddChannelIds(ChannelIdsT &&value)
virtual const char * GetServiceRequestName() const override
BatchStartRequest & WithMultiplexIds(MultiplexIdsT &&value)
void SetMultiplexIds(MultiplexIdsT &&value)
BatchStartRequest & AddMultiplexIds(MultiplexIdsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector