AWS SDK for C++

AWS SDK for C++ Version 1.11.609

Loading...
Searching...
No Matches
CreateNodeResult.h
1
6#pragma once
7#include <aws/medialive/MediaLive_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/medialive/model/NodeConnectionState.h>
11#include <aws/medialive/model/NodeRole.h>
12#include <aws/medialive/model/NodeState.h>
13#include <aws/medialive/model/NodeInterfaceMapping.h>
14#include <aws/medialive/model/SdiSourceMapping.h>
15#include <utility>
16
17namespace Aws
18{
19template<typename RESULT_TYPE>
20class AmazonWebServiceResult;
21
22namespace Utils
23{
24namespace Json
25{
26 class JsonValue;
27} // namespace Json
28} // namespace Utils
29namespace MediaLive
30{
31namespace Model
32{
39 {
40 public:
41 AWS_MEDIALIVE_API CreateNodeResult() = default;
44
45
47
50 inline const Aws::String& GetArn() const { return m_arn; }
51 template<typename ArnT = Aws::String>
52 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
53 template<typename ArnT = Aws::String>
54 CreateNodeResult& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
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) { m_channelPlacementGroupsHasBeenSet = true; m_channelPlacementGroups = std::forward<ChannelPlacementGroupsT>(value); }
65 template<typename ChannelPlacementGroupsT = Aws::Vector<Aws::String>>
66 CreateNodeResult& WithChannelPlacementGroups(ChannelPlacementGroupsT&& value) { SetChannelPlacementGroups(std::forward<ChannelPlacementGroupsT>(value)); return *this;}
67 template<typename ChannelPlacementGroupsT = Aws::String>
68 CreateNodeResult& AddChannelPlacementGroups(ChannelPlacementGroupsT&& value) { m_channelPlacementGroupsHasBeenSet = true; m_channelPlacementGroups.emplace_back(std::forward<ChannelPlacementGroupsT>(value)); return *this; }
70
72
75 inline const Aws::String& GetClusterId() const { return m_clusterId; }
76 template<typename ClusterIdT = Aws::String>
77 void SetClusterId(ClusterIdT&& value) { m_clusterIdHasBeenSet = true; m_clusterId = std::forward<ClusterIdT>(value); }
78 template<typename ClusterIdT = Aws::String>
79 CreateNodeResult& WithClusterId(ClusterIdT&& value) { SetClusterId(std::forward<ClusterIdT>(value)); return *this;}
81
83
86 inline NodeConnectionState GetConnectionState() const { return m_connectionState; }
87 inline void SetConnectionState(NodeConnectionState value) { m_connectionStateHasBeenSet = true; m_connectionState = value; }
90
92
96 inline const Aws::String& GetId() const { return m_id; }
97 template<typename IdT = Aws::String>
98 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
99 template<typename IdT = Aws::String>
100 CreateNodeResult& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
102
104
107 inline const Aws::String& GetInstanceArn() const { return m_instanceArn; }
108 template<typename InstanceArnT = Aws::String>
109 void SetInstanceArn(InstanceArnT&& value) { m_instanceArnHasBeenSet = true; m_instanceArn = std::forward<InstanceArnT>(value); }
110 template<typename InstanceArnT = Aws::String>
111 CreateNodeResult& WithInstanceArn(InstanceArnT&& value) { SetInstanceArn(std::forward<InstanceArnT>(value)); return *this;}
113
115
118 inline const Aws::String& GetName() const { return m_name; }
119 template<typename NameT = Aws::String>
120 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
121 template<typename NameT = Aws::String>
122 CreateNodeResult& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
124
126
129 inline const Aws::Vector<NodeInterfaceMapping>& GetNodeInterfaceMappings() const { return m_nodeInterfaceMappings; }
130 template<typename NodeInterfaceMappingsT = Aws::Vector<NodeInterfaceMapping>>
131 void SetNodeInterfaceMappings(NodeInterfaceMappingsT&& value) { m_nodeInterfaceMappingsHasBeenSet = true; m_nodeInterfaceMappings = std::forward<NodeInterfaceMappingsT>(value); }
132 template<typename NodeInterfaceMappingsT = Aws::Vector<NodeInterfaceMapping>>
133 CreateNodeResult& WithNodeInterfaceMappings(NodeInterfaceMappingsT&& value) { SetNodeInterfaceMappings(std::forward<NodeInterfaceMappingsT>(value)); return *this;}
134 template<typename NodeInterfaceMappingsT = NodeInterfaceMapping>
135 CreateNodeResult& AddNodeInterfaceMappings(NodeInterfaceMappingsT&& value) { m_nodeInterfaceMappingsHasBeenSet = true; m_nodeInterfaceMappings.emplace_back(std::forward<NodeInterfaceMappingsT>(value)); return *this; }
137
139
144 inline NodeRole GetRole() const { return m_role; }
145 inline void SetRole(NodeRole value) { m_roleHasBeenSet = true; m_role = value; }
146 inline CreateNodeResult& WithRole(NodeRole value) { SetRole(value); return *this;}
148
150
153 inline NodeState GetState() const { return m_state; }
154 inline void SetState(NodeState value) { m_stateHasBeenSet = true; m_state = value; }
155 inline CreateNodeResult& WithState(NodeState value) { SetState(value); return *this;}
157
159
163 inline const Aws::Vector<SdiSourceMapping>& GetSdiSourceMappings() const { return m_sdiSourceMappings; }
164 template<typename SdiSourceMappingsT = Aws::Vector<SdiSourceMapping>>
165 void SetSdiSourceMappings(SdiSourceMappingsT&& value) { m_sdiSourceMappingsHasBeenSet = true; m_sdiSourceMappings = std::forward<SdiSourceMappingsT>(value); }
166 template<typename SdiSourceMappingsT = Aws::Vector<SdiSourceMapping>>
167 CreateNodeResult& WithSdiSourceMappings(SdiSourceMappingsT&& value) { SetSdiSourceMappings(std::forward<SdiSourceMappingsT>(value)); return *this;}
168 template<typename SdiSourceMappingsT = SdiSourceMapping>
169 CreateNodeResult& AddSdiSourceMappings(SdiSourceMappingsT&& value) { m_sdiSourceMappingsHasBeenSet = true; m_sdiSourceMappings.emplace_back(std::forward<SdiSourceMappingsT>(value)); return *this; }
171
173
174 inline const Aws::String& GetRequestId() const { return m_requestId; }
175 template<typename RequestIdT = Aws::String>
176 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
177 template<typename RequestIdT = Aws::String>
178 CreateNodeResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
180 private:
181
182 Aws::String m_arn;
183 bool m_arnHasBeenSet = false;
184
185 Aws::Vector<Aws::String> m_channelPlacementGroups;
186 bool m_channelPlacementGroupsHasBeenSet = false;
187
188 Aws::String m_clusterId;
189 bool m_clusterIdHasBeenSet = false;
190
192 bool m_connectionStateHasBeenSet = false;
193
194 Aws::String m_id;
195 bool m_idHasBeenSet = false;
196
197 Aws::String m_instanceArn;
198 bool m_instanceArnHasBeenSet = false;
199
200 Aws::String m_name;
201 bool m_nameHasBeenSet = false;
202
203 Aws::Vector<NodeInterfaceMapping> m_nodeInterfaceMappings;
204 bool m_nodeInterfaceMappingsHasBeenSet = false;
205
207 bool m_roleHasBeenSet = false;
208
210 bool m_stateHasBeenSet = false;
211
212 Aws::Vector<SdiSourceMapping> m_sdiSourceMappings;
213 bool m_sdiSourceMappingsHasBeenSet = false;
214
215 Aws::String m_requestId;
216 bool m_requestIdHasBeenSet = false;
217 };
218
219} // namespace Model
220} // namespace MediaLive
221} // namespace Aws
CreateNodeResult & WithInstanceArn(InstanceArnT &&value)
void SetConnectionState(NodeConnectionState value)
void SetChannelPlacementGroups(ChannelPlacementGroupsT &&value)
CreateNodeResult & WithId(IdT &&value)
CreateNodeResult & AddNodeInterfaceMappings(NodeInterfaceMappingsT &&value)
AWS_MEDIALIVE_API CreateNodeResult()=default
const Aws::Vector< SdiSourceMapping > & GetSdiSourceMappings() const
void SetInstanceArn(InstanceArnT &&value)
CreateNodeResult & WithRequestId(RequestIdT &&value)
void SetSdiSourceMappings(SdiSourceMappingsT &&value)
NodeConnectionState GetConnectionState() const
CreateNodeResult & AddSdiSourceMappings(SdiSourceMappingsT &&value)
CreateNodeResult & WithConnectionState(NodeConnectionState value)
const Aws::Vector< NodeInterfaceMapping > & GetNodeInterfaceMappings() const
const Aws::Vector< Aws::String > & GetChannelPlacementGroups() const
CreateNodeResult & WithArn(ArnT &&value)
AWS_MEDIALIVE_API CreateNodeResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateNodeResult & WithSdiSourceMappings(SdiSourceMappingsT &&value)
CreateNodeResult & WithState(NodeState value)
CreateNodeResult & WithChannelPlacementGroups(ChannelPlacementGroupsT &&value)
AWS_MEDIALIVE_API CreateNodeResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::String & GetInstanceArn() const
CreateNodeResult & WithClusterId(ClusterIdT &&value)
CreateNodeResult & WithRole(NodeRole value)
const Aws::String & GetRequestId() const
const Aws::String & GetClusterId() const
void SetNodeInterfaceMappings(NodeInterfaceMappingsT &&value)
CreateNodeResult & AddChannelPlacementGroups(ChannelPlacementGroupsT &&value)
CreateNodeResult & WithNodeInterfaceMappings(NodeInterfaceMappingsT &&value)
CreateNodeResult & WithName(NameT &&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