AWS SDK for C++

AWS SDK for C++ Version 1.11.758

Loading...
Searching...
No Matches
DescribeNodeSdkResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/medialive/MediaLive_EXPORTS.h>
11#include <aws/medialive/model/NodeConnectionState.h>
12#include <aws/medialive/model/NodeInterfaceMapping.h>
13#include <aws/medialive/model/NodeRole.h>
14#include <aws/medialive/model/NodeState.h>
15#include <aws/medialive/model/SdiSourceMapping.h>
16
17#include <utility>
18
19namespace Aws {
20template <typename RESULT_TYPE>
21class AmazonWebServiceResult;
22
23namespace Utils {
24namespace Json {
25class JsonValue;
26} // namespace Json
27} // namespace Utils
28namespace MediaLive {
29namespace Model {
36 public:
37 AWS_MEDIALIVE_API DescribeNodeSdkResult() = default;
40
42
45 inline const Aws::String& GetArn() const { return m_arn; }
46 template <typename ArnT = Aws::String>
47 void SetArn(ArnT&& value) {
48 m_arnHasBeenSet = true;
49 m_arn = std::forward<ArnT>(value);
50 }
51 template <typename ArnT = Aws::String>
53 SetArn(std::forward<ArnT>(value));
54 return *this;
55 }
57
59
63 inline const Aws::Vector<Aws::String>& GetChannelPlacementGroups() const { return m_channelPlacementGroups; }
64 template <typename ChannelPlacementGroupsT = Aws::Vector<Aws::String>>
65 void SetChannelPlacementGroups(ChannelPlacementGroupsT&& value) {
66 m_channelPlacementGroupsHasBeenSet = true;
67 m_channelPlacementGroups = std::forward<ChannelPlacementGroupsT>(value);
68 }
69 template <typename ChannelPlacementGroupsT = Aws::Vector<Aws::String>>
70 DescribeNodeSdkResult& WithChannelPlacementGroups(ChannelPlacementGroupsT&& value) {
71 SetChannelPlacementGroups(std::forward<ChannelPlacementGroupsT>(value));
72 return *this;
73 }
74 template <typename ChannelPlacementGroupsT = Aws::String>
75 DescribeNodeSdkResult& AddChannelPlacementGroups(ChannelPlacementGroupsT&& value) {
76 m_channelPlacementGroupsHasBeenSet = true;
77 m_channelPlacementGroups.emplace_back(std::forward<ChannelPlacementGroupsT>(value));
78 return *this;
79 }
81
83
86 inline const Aws::String& GetClusterId() const { return m_clusterId; }
87 template <typename ClusterIdT = Aws::String>
88 void SetClusterId(ClusterIdT&& value) {
89 m_clusterIdHasBeenSet = true;
90 m_clusterId = std::forward<ClusterIdT>(value);
91 }
92 template <typename ClusterIdT = Aws::String>
93 DescribeNodeSdkResult& WithClusterId(ClusterIdT&& value) {
94 SetClusterId(std::forward<ClusterIdT>(value));
95 return *this;
96 }
98
100
103 inline NodeConnectionState GetConnectionState() const { return m_connectionState; }
105 m_connectionStateHasBeenSet = true;
106 m_connectionState = value;
107 }
109 SetConnectionState(value);
110 return *this;
111 }
113
115
119 inline const Aws::String& GetId() const { return m_id; }
120 template <typename IdT = Aws::String>
121 void SetId(IdT&& value) {
122 m_idHasBeenSet = true;
123 m_id = std::forward<IdT>(value);
124 }
125 template <typename IdT = Aws::String>
127 SetId(std::forward<IdT>(value));
128 return *this;
129 }
131
133
136 inline const Aws::String& GetInstanceArn() const { return m_instanceArn; }
137 template <typename InstanceArnT = Aws::String>
138 void SetInstanceArn(InstanceArnT&& value) {
139 m_instanceArnHasBeenSet = true;
140 m_instanceArn = std::forward<InstanceArnT>(value);
141 }
142 template <typename InstanceArnT = Aws::String>
143 DescribeNodeSdkResult& WithInstanceArn(InstanceArnT&& value) {
144 SetInstanceArn(std::forward<InstanceArnT>(value));
145 return *this;
146 }
148
150
153 inline const Aws::String& GetName() const { return m_name; }
154 template <typename NameT = Aws::String>
155 void SetName(NameT&& value) {
156 m_nameHasBeenSet = true;
157 m_name = std::forward<NameT>(value);
158 }
159 template <typename NameT = Aws::String>
161 SetName(std::forward<NameT>(value));
162 return *this;
163 }
165
167
170 inline const Aws::Vector<NodeInterfaceMapping>& GetNodeInterfaceMappings() const { return m_nodeInterfaceMappings; }
171 template <typename NodeInterfaceMappingsT = Aws::Vector<NodeInterfaceMapping>>
172 void SetNodeInterfaceMappings(NodeInterfaceMappingsT&& value) {
173 m_nodeInterfaceMappingsHasBeenSet = true;
174 m_nodeInterfaceMappings = std::forward<NodeInterfaceMappingsT>(value);
175 }
176 template <typename NodeInterfaceMappingsT = Aws::Vector<NodeInterfaceMapping>>
177 DescribeNodeSdkResult& WithNodeInterfaceMappings(NodeInterfaceMappingsT&& value) {
178 SetNodeInterfaceMappings(std::forward<NodeInterfaceMappingsT>(value));
179 return *this;
180 }
181 template <typename NodeInterfaceMappingsT = NodeInterfaceMapping>
182 DescribeNodeSdkResult& AddNodeInterfaceMappings(NodeInterfaceMappingsT&& value) {
183 m_nodeInterfaceMappingsHasBeenSet = true;
184 m_nodeInterfaceMappings.emplace_back(std::forward<NodeInterfaceMappingsT>(value));
185 return *this;
186 }
188
190
195 inline NodeRole GetRole() const { return m_role; }
196 inline void SetRole(NodeRole value) {
197 m_roleHasBeenSet = true;
198 m_role = value;
199 }
201 SetRole(value);
202 return *this;
203 }
205
207
210 inline NodeState GetState() const { return m_state; }
211 inline void SetState(NodeState value) {
212 m_stateHasBeenSet = true;
213 m_state = value;
214 }
216 SetState(value);
217 return *this;
218 }
220
222
226 inline const Aws::Vector<SdiSourceMapping>& GetSdiSourceMappings() const { return m_sdiSourceMappings; }
227 template <typename SdiSourceMappingsT = Aws::Vector<SdiSourceMapping>>
228 void SetSdiSourceMappings(SdiSourceMappingsT&& value) {
229 m_sdiSourceMappingsHasBeenSet = true;
230 m_sdiSourceMappings = std::forward<SdiSourceMappingsT>(value);
231 }
232 template <typename SdiSourceMappingsT = Aws::Vector<SdiSourceMapping>>
233 DescribeNodeSdkResult& WithSdiSourceMappings(SdiSourceMappingsT&& value) {
234 SetSdiSourceMappings(std::forward<SdiSourceMappingsT>(value));
235 return *this;
236 }
237 template <typename SdiSourceMappingsT = SdiSourceMapping>
238 DescribeNodeSdkResult& AddSdiSourceMappings(SdiSourceMappingsT&& value) {
239 m_sdiSourceMappingsHasBeenSet = true;
240 m_sdiSourceMappings.emplace_back(std::forward<SdiSourceMappingsT>(value));
241 return *this;
242 }
244
246
247 inline const Aws::String& GetRequestId() const { return m_requestId; }
248 template <typename RequestIdT = Aws::String>
249 void SetRequestId(RequestIdT&& value) {
250 m_requestIdHasBeenSet = true;
251 m_requestId = std::forward<RequestIdT>(value);
252 }
253 template <typename RequestIdT = Aws::String>
255 SetRequestId(std::forward<RequestIdT>(value));
256 return *this;
257 }
259 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
260
261 private:
262 Aws::String m_arn;
263
264 Aws::Vector<Aws::String> m_channelPlacementGroups;
265
266 Aws::String m_clusterId;
267
269
270 Aws::String m_id;
271
272 Aws::String m_instanceArn;
273
274 Aws::String m_name;
275
276 Aws::Vector<NodeInterfaceMapping> m_nodeInterfaceMappings;
277
279
281
282 Aws::Vector<SdiSourceMapping> m_sdiSourceMappings;
283
284 Aws::String m_requestId;
285 Aws::Http::HttpResponseCode m_HttpResponseCode;
286 bool m_arnHasBeenSet = false;
287 bool m_channelPlacementGroupsHasBeenSet = false;
288 bool m_clusterIdHasBeenSet = false;
289 bool m_connectionStateHasBeenSet = false;
290 bool m_idHasBeenSet = false;
291 bool m_instanceArnHasBeenSet = false;
292 bool m_nameHasBeenSet = false;
293 bool m_nodeInterfaceMappingsHasBeenSet = false;
294 bool m_roleHasBeenSet = false;
295 bool m_stateHasBeenSet = false;
296 bool m_sdiSourceMappingsHasBeenSet = false;
297 bool m_requestIdHasBeenSet = false;
298};
299
300} // namespace Model
301} // namespace MediaLive
302} // namespace Aws
DescribeNodeSdkResult & AddNodeInterfaceMappings(NodeInterfaceMappingsT &&value)
DescribeNodeSdkResult & WithChannelPlacementGroups(ChannelPlacementGroupsT &&value)
DescribeNodeSdkResult & AddSdiSourceMappings(SdiSourceMappingsT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
DescribeNodeSdkResult & WithSdiSourceMappings(SdiSourceMappingsT &&value)
DescribeNodeSdkResult & WithId(IdT &&value)
const Aws::Vector< Aws::String > & GetChannelPlacementGroups() const
AWS_MEDIALIVE_API DescribeNodeSdkResult()=default
DescribeNodeSdkResult & WithRole(NodeRole value)
void SetNodeInterfaceMappings(NodeInterfaceMappingsT &&value)
const Aws::Vector< NodeInterfaceMapping > & GetNodeInterfaceMappings() const
DescribeNodeSdkResult & WithName(NameT &&value)
DescribeNodeSdkResult & AddChannelPlacementGroups(ChannelPlacementGroupsT &&value)
DescribeNodeSdkResult & WithConnectionState(NodeConnectionState value)
AWS_MEDIALIVE_API DescribeNodeSdkResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DescribeNodeSdkResult & WithArn(ArnT &&value)
void SetChannelPlacementGroups(ChannelPlacementGroupsT &&value)
AWS_MEDIALIVE_API DescribeNodeSdkResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DescribeNodeSdkResult & WithRequestId(RequestIdT &&value)
DescribeNodeSdkResult & WithClusterId(ClusterIdT &&value)
DescribeNodeSdkResult & WithInstanceArn(InstanceArnT &&value)
const Aws::Vector< SdiSourceMapping > & GetSdiSourceMappings() const
void SetConnectionState(NodeConnectionState value)
void SetSdiSourceMappings(SdiSourceMappingsT &&value)
DescribeNodeSdkResult & WithState(NodeState value)
DescribeNodeSdkResult & WithNodeInterfaceMappings(NodeInterfaceMappingsT &&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