AWS SDK for C++

AWS SDK for C++ Version 1.11.742

Loading...
Searching...
No Matches
UpdateNodeStateResult.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/MediaLive_EXPORTS.h>
10#include <aws/medialive/model/NodeConnectionState.h>
11#include <aws/medialive/model/NodeInterfaceMapping.h>
12#include <aws/medialive/model/NodeRole.h>
13#include <aws/medialive/model/NodeState.h>
14#include <aws/medialive/model/SdiSourceMapping.h>
15
16#include <utility>
17
18namespace Aws {
19template <typename RESULT_TYPE>
20class AmazonWebServiceResult;
21
22namespace Utils {
23namespace Json {
24class JsonValue;
25} // namespace Json
26} // namespace Utils
27namespace MediaLive {
28namespace Model {
35 public:
36 AWS_MEDIALIVE_API UpdateNodeStateResult() = default;
39
41
44 inline const Aws::String& GetArn() const { return m_arn; }
45 template <typename ArnT = Aws::String>
46 void SetArn(ArnT&& value) {
47 m_arnHasBeenSet = true;
48 m_arn = std::forward<ArnT>(value);
49 }
50 template <typename ArnT = Aws::String>
52 SetArn(std::forward<ArnT>(value));
53 return *this;
54 }
56
58
62 inline const Aws::Vector<Aws::String>& GetChannelPlacementGroups() const { return m_channelPlacementGroups; }
63 template <typename ChannelPlacementGroupsT = Aws::Vector<Aws::String>>
64 void SetChannelPlacementGroups(ChannelPlacementGroupsT&& value) {
65 m_channelPlacementGroupsHasBeenSet = true;
66 m_channelPlacementGroups = std::forward<ChannelPlacementGroupsT>(value);
67 }
68 template <typename ChannelPlacementGroupsT = Aws::Vector<Aws::String>>
69 UpdateNodeStateResult& WithChannelPlacementGroups(ChannelPlacementGroupsT&& value) {
70 SetChannelPlacementGroups(std::forward<ChannelPlacementGroupsT>(value));
71 return *this;
72 }
73 template <typename ChannelPlacementGroupsT = Aws::String>
74 UpdateNodeStateResult& AddChannelPlacementGroups(ChannelPlacementGroupsT&& value) {
75 m_channelPlacementGroupsHasBeenSet = true;
76 m_channelPlacementGroups.emplace_back(std::forward<ChannelPlacementGroupsT>(value));
77 return *this;
78 }
80
82
85 inline const Aws::String& GetClusterId() const { return m_clusterId; }
86 template <typename ClusterIdT = Aws::String>
87 void SetClusterId(ClusterIdT&& value) {
88 m_clusterIdHasBeenSet = true;
89 m_clusterId = std::forward<ClusterIdT>(value);
90 }
91 template <typename ClusterIdT = Aws::String>
92 UpdateNodeStateResult& WithClusterId(ClusterIdT&& value) {
93 SetClusterId(std::forward<ClusterIdT>(value));
94 return *this;
95 }
97
99
102 inline NodeConnectionState GetConnectionState() const { return m_connectionState; }
104 m_connectionStateHasBeenSet = true;
105 m_connectionState = value;
106 }
108 SetConnectionState(value);
109 return *this;
110 }
112
114
118 inline const Aws::String& GetId() const { return m_id; }
119 template <typename IdT = Aws::String>
120 void SetId(IdT&& value) {
121 m_idHasBeenSet = true;
122 m_id = std::forward<IdT>(value);
123 }
124 template <typename IdT = Aws::String>
126 SetId(std::forward<IdT>(value));
127 return *this;
128 }
130
132
135 inline const Aws::String& GetInstanceArn() const { return m_instanceArn; }
136 template <typename InstanceArnT = Aws::String>
137 void SetInstanceArn(InstanceArnT&& value) {
138 m_instanceArnHasBeenSet = true;
139 m_instanceArn = std::forward<InstanceArnT>(value);
140 }
141 template <typename InstanceArnT = Aws::String>
142 UpdateNodeStateResult& WithInstanceArn(InstanceArnT&& value) {
143 SetInstanceArn(std::forward<InstanceArnT>(value));
144 return *this;
145 }
147
149
152 inline const Aws::String& GetName() const { return m_name; }
153 template <typename NameT = Aws::String>
154 void SetName(NameT&& value) {
155 m_nameHasBeenSet = true;
156 m_name = std::forward<NameT>(value);
157 }
158 template <typename NameT = Aws::String>
160 SetName(std::forward<NameT>(value));
161 return *this;
162 }
164
166
169 inline const Aws::Vector<NodeInterfaceMapping>& GetNodeInterfaceMappings() const { return m_nodeInterfaceMappings; }
170 template <typename NodeInterfaceMappingsT = Aws::Vector<NodeInterfaceMapping>>
171 void SetNodeInterfaceMappings(NodeInterfaceMappingsT&& value) {
172 m_nodeInterfaceMappingsHasBeenSet = true;
173 m_nodeInterfaceMappings = std::forward<NodeInterfaceMappingsT>(value);
174 }
175 template <typename NodeInterfaceMappingsT = Aws::Vector<NodeInterfaceMapping>>
176 UpdateNodeStateResult& WithNodeInterfaceMappings(NodeInterfaceMappingsT&& value) {
177 SetNodeInterfaceMappings(std::forward<NodeInterfaceMappingsT>(value));
178 return *this;
179 }
180 template <typename NodeInterfaceMappingsT = NodeInterfaceMapping>
181 UpdateNodeStateResult& AddNodeInterfaceMappings(NodeInterfaceMappingsT&& value) {
182 m_nodeInterfaceMappingsHasBeenSet = true;
183 m_nodeInterfaceMappings.emplace_back(std::forward<NodeInterfaceMappingsT>(value));
184 return *this;
185 }
187
189
194 inline NodeRole GetRole() const { return m_role; }
195 inline void SetRole(NodeRole value) {
196 m_roleHasBeenSet = true;
197 m_role = value;
198 }
200 SetRole(value);
201 return *this;
202 }
204
206
209 inline NodeState GetState() const { return m_state; }
210 inline void SetState(NodeState value) {
211 m_stateHasBeenSet = true;
212 m_state = value;
213 }
215 SetState(value);
216 return *this;
217 }
219
221
225 inline const Aws::Vector<SdiSourceMapping>& GetSdiSourceMappings() const { return m_sdiSourceMappings; }
226 template <typename SdiSourceMappingsT = Aws::Vector<SdiSourceMapping>>
227 void SetSdiSourceMappings(SdiSourceMappingsT&& value) {
228 m_sdiSourceMappingsHasBeenSet = true;
229 m_sdiSourceMappings = std::forward<SdiSourceMappingsT>(value);
230 }
231 template <typename SdiSourceMappingsT = Aws::Vector<SdiSourceMapping>>
232 UpdateNodeStateResult& WithSdiSourceMappings(SdiSourceMappingsT&& value) {
233 SetSdiSourceMappings(std::forward<SdiSourceMappingsT>(value));
234 return *this;
235 }
236 template <typename SdiSourceMappingsT = SdiSourceMapping>
237 UpdateNodeStateResult& AddSdiSourceMappings(SdiSourceMappingsT&& value) {
238 m_sdiSourceMappingsHasBeenSet = true;
239 m_sdiSourceMappings.emplace_back(std::forward<SdiSourceMappingsT>(value));
240 return *this;
241 }
243
245
246 inline const Aws::String& GetRequestId() const { return m_requestId; }
247 template <typename RequestIdT = Aws::String>
248 void SetRequestId(RequestIdT&& value) {
249 m_requestIdHasBeenSet = true;
250 m_requestId = std::forward<RequestIdT>(value);
251 }
252 template <typename RequestIdT = Aws::String>
254 SetRequestId(std::forward<RequestIdT>(value));
255 return *this;
256 }
258 private:
259 Aws::String m_arn;
260
261 Aws::Vector<Aws::String> m_channelPlacementGroups;
262
263 Aws::String m_clusterId;
264
266
267 Aws::String m_id;
268
269 Aws::String m_instanceArn;
270
271 Aws::String m_name;
272
273 Aws::Vector<NodeInterfaceMapping> m_nodeInterfaceMappings;
274
276
278
279 Aws::Vector<SdiSourceMapping> m_sdiSourceMappings;
280
281 Aws::String m_requestId;
282 bool m_arnHasBeenSet = false;
283 bool m_channelPlacementGroupsHasBeenSet = false;
284 bool m_clusterIdHasBeenSet = false;
285 bool m_connectionStateHasBeenSet = false;
286 bool m_idHasBeenSet = false;
287 bool m_instanceArnHasBeenSet = false;
288 bool m_nameHasBeenSet = false;
289 bool m_nodeInterfaceMappingsHasBeenSet = false;
290 bool m_roleHasBeenSet = false;
291 bool m_stateHasBeenSet = false;
292 bool m_sdiSourceMappingsHasBeenSet = false;
293 bool m_requestIdHasBeenSet = false;
294};
295
296} // namespace Model
297} // namespace MediaLive
298} // namespace Aws
UpdateNodeStateResult & WithChannelPlacementGroups(ChannelPlacementGroupsT &&value)
UpdateNodeStateResult & WithArn(ArnT &&value)
UpdateNodeStateResult & WithSdiSourceMappings(SdiSourceMappingsT &&value)
void SetNodeInterfaceMappings(NodeInterfaceMappingsT &&value)
UpdateNodeStateResult & WithId(IdT &&value)
UpdateNodeStateResult & WithInstanceArn(InstanceArnT &&value)
const Aws::Vector< Aws::String > & GetChannelPlacementGroups() const
UpdateNodeStateResult & WithName(NameT &&value)
UpdateNodeStateResult & WithNodeInterfaceMappings(NodeInterfaceMappingsT &&value)
UpdateNodeStateResult & WithClusterId(ClusterIdT &&value)
const Aws::Vector< NodeInterfaceMapping > & GetNodeInterfaceMappings() const
AWS_MEDIALIVE_API UpdateNodeStateResult()=default
UpdateNodeStateResult & AddSdiSourceMappings(SdiSourceMappingsT &&value)
UpdateNodeStateResult & AddNodeInterfaceMappings(NodeInterfaceMappingsT &&value)
const Aws::Vector< SdiSourceMapping > & GetSdiSourceMappings() const
void SetConnectionState(NodeConnectionState value)
void SetSdiSourceMappings(SdiSourceMappingsT &&value)
AWS_MEDIALIVE_API UpdateNodeStateResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetChannelPlacementGroups(ChannelPlacementGroupsT &&value)
UpdateNodeStateResult & WithState(NodeState value)
UpdateNodeStateResult & WithConnectionState(NodeConnectionState value)
UpdateNodeStateResult & WithRequestId(RequestIdT &&value)
UpdateNodeStateResult & AddChannelPlacementGroups(ChannelPlacementGroupsT &&value)
AWS_MEDIALIVE_API UpdateNodeStateResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
UpdateNodeStateResult & WithRole(NodeRole value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue