AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
CreateNodeRegistrationScriptRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/medialive/MediaLiveRequest.h>
11#include <aws/medialive/MediaLive_EXPORTS.h>
12#include <aws/medialive/model/NodeInterfaceMapping.h>
13#include <aws/medialive/model/NodeRole.h>
14
15#include <utility>
16
17namespace Aws {
18namespace MediaLive {
19namespace Model {
20
27 public:
28 AWS_MEDIALIVE_API CreateNodeRegistrationScriptRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "CreateNodeRegistrationScript"; }
35
36 AWS_MEDIALIVE_API Aws::String SerializePayload() const override;
37
39
42 inline const Aws::String& GetClusterId() const { return m_clusterId; }
43 inline bool ClusterIdHasBeenSet() const { return m_clusterIdHasBeenSet; }
44 template <typename ClusterIdT = Aws::String>
45 void SetClusterId(ClusterIdT&& value) {
46 m_clusterIdHasBeenSet = true;
47 m_clusterId = std::forward<ClusterIdT>(value);
48 }
49 template <typename ClusterIdT = Aws::String>
51 SetClusterId(std::forward<ClusterIdT>(value));
52 return *this;
53 }
55
57
61 inline const Aws::String& GetId() const { return m_id; }
62 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
63 template <typename IdT = Aws::String>
64 void SetId(IdT&& value) {
65 m_idHasBeenSet = true;
66 m_id = std::forward<IdT>(value);
67 }
68 template <typename IdT = Aws::String>
70 SetId(std::forward<IdT>(value));
71 return *this;
72 }
74
76
82 inline const Aws::String& GetName() const { return m_name; }
83 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
84 template <typename NameT = Aws::String>
85 void SetName(NameT&& value) {
86 m_nameHasBeenSet = true;
87 m_name = std::forward<NameT>(value);
88 }
89 template <typename NameT = Aws::String>
91 SetName(std::forward<NameT>(value));
92 return *this;
93 }
95
97
100 inline const Aws::Vector<NodeInterfaceMapping>& GetNodeInterfaceMappings() const { return m_nodeInterfaceMappings; }
101 inline bool NodeInterfaceMappingsHasBeenSet() const { return m_nodeInterfaceMappingsHasBeenSet; }
102 template <typename NodeInterfaceMappingsT = Aws::Vector<NodeInterfaceMapping>>
103 void SetNodeInterfaceMappings(NodeInterfaceMappingsT&& value) {
104 m_nodeInterfaceMappingsHasBeenSet = true;
105 m_nodeInterfaceMappings = std::forward<NodeInterfaceMappingsT>(value);
106 }
107 template <typename NodeInterfaceMappingsT = Aws::Vector<NodeInterfaceMapping>>
109 SetNodeInterfaceMappings(std::forward<NodeInterfaceMappingsT>(value));
110 return *this;
111 }
112 template <typename NodeInterfaceMappingsT = NodeInterfaceMapping>
114 m_nodeInterfaceMappingsHasBeenSet = true;
115 m_nodeInterfaceMappings.emplace_back(std::forward<NodeInterfaceMappingsT>(value));
116 return *this;
117 }
119
121
125 inline const Aws::String& GetRequestId() const { return m_requestId; }
126 inline bool RequestIdHasBeenSet() const { return m_requestIdHasBeenSet; }
127 template <typename RequestIdT = Aws::String>
128 void SetRequestId(RequestIdT&& value) {
129 m_requestIdHasBeenSet = true;
130 m_requestId = std::forward<RequestIdT>(value);
131 }
132 template <typename RequestIdT = Aws::String>
134 SetRequestId(std::forward<RequestIdT>(value));
135 return *this;
136 }
138
140
145 inline NodeRole GetRole() const { return m_role; }
146 inline bool RoleHasBeenSet() const { return m_roleHasBeenSet; }
147 inline void SetRole(NodeRole value) {
148 m_roleHasBeenSet = true;
149 m_role = value;
150 }
152 SetRole(value);
153 return *this;
154 }
156 private:
157 Aws::String m_clusterId;
158
159 Aws::String m_id;
160
161 Aws::String m_name;
162
163 Aws::Vector<NodeInterfaceMapping> m_nodeInterfaceMappings;
164
166
168 bool m_clusterIdHasBeenSet = false;
169 bool m_idHasBeenSet = false;
170 bool m_nameHasBeenSet = false;
171 bool m_nodeInterfaceMappingsHasBeenSet = false;
172 bool m_requestIdHasBeenSet = true;
173 bool m_roleHasBeenSet = false;
174};
175
176} // namespace Model
177} // namespace MediaLive
178} // namespace Aws
CreateNodeRegistrationScriptRequest & AddNodeInterfaceMappings(NodeInterfaceMappingsT &&value)
AWS_MEDIALIVE_API Aws::String SerializePayload() const override
CreateNodeRegistrationScriptRequest & WithClusterId(ClusterIdT &&value)
CreateNodeRegistrationScriptRequest & WithRequestId(RequestIdT &&value)
CreateNodeRegistrationScriptRequest & WithName(NameT &&value)
CreateNodeRegistrationScriptRequest & WithRole(NodeRole value)
const Aws::Vector< NodeInterfaceMapping > & GetNodeInterfaceMappings() const
CreateNodeRegistrationScriptRequest & WithNodeInterfaceMappings(NodeInterfaceMappingsT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector