AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
CreateNodeRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/medialive/MediaLiveRequest.h>
12#include <aws/medialive/MediaLive_EXPORTS.h>
13#include <aws/medialive/model/NodeInterfaceMappingCreateRequest.h>
14#include <aws/medialive/model/NodeRole.h>
15
16#include <utility>
17
18namespace Aws {
19namespace MediaLive {
20namespace Model {
21
28 public:
29 AWS_MEDIALIVE_API CreateNodeRequest() = default;
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "CreateNode"; }
36
37 AWS_MEDIALIVE_API Aws::String SerializePayload() const override;
38
40
43 inline const Aws::String& GetClusterId() const { return m_clusterId; }
44 inline bool ClusterIdHasBeenSet() const { return m_clusterIdHasBeenSet; }
45 template <typename ClusterIdT = Aws::String>
46 void SetClusterId(ClusterIdT&& value) {
47 m_clusterIdHasBeenSet = true;
48 m_clusterId = std::forward<ClusterIdT>(value);
49 }
50 template <typename ClusterIdT = Aws::String>
51 CreateNodeRequest& WithClusterId(ClusterIdT&& value) {
52 SetClusterId(std::forward<ClusterIdT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetName() const { return m_name; }
62 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
63 template <typename NameT = Aws::String>
64 void SetName(NameT&& value) {
65 m_nameHasBeenSet = true;
66 m_name = std::forward<NameT>(value);
67 }
68 template <typename NameT = Aws::String>
69 CreateNodeRequest& WithName(NameT&& value) {
70 SetName(std::forward<NameT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::Vector<NodeInterfaceMappingCreateRequest>& GetNodeInterfaceMappings() const { return m_nodeInterfaceMappings; }
80 inline bool NodeInterfaceMappingsHasBeenSet() const { return m_nodeInterfaceMappingsHasBeenSet; }
81 template <typename NodeInterfaceMappingsT = Aws::Vector<NodeInterfaceMappingCreateRequest>>
82 void SetNodeInterfaceMappings(NodeInterfaceMappingsT&& value) {
83 m_nodeInterfaceMappingsHasBeenSet = true;
84 m_nodeInterfaceMappings = std::forward<NodeInterfaceMappingsT>(value);
85 }
86 template <typename NodeInterfaceMappingsT = Aws::Vector<NodeInterfaceMappingCreateRequest>>
87 CreateNodeRequest& WithNodeInterfaceMappings(NodeInterfaceMappingsT&& value) {
88 SetNodeInterfaceMappings(std::forward<NodeInterfaceMappingsT>(value));
89 return *this;
90 }
91 template <typename NodeInterfaceMappingsT = NodeInterfaceMappingCreateRequest>
92 CreateNodeRequest& AddNodeInterfaceMappings(NodeInterfaceMappingsT&& value) {
93 m_nodeInterfaceMappingsHasBeenSet = true;
94 m_nodeInterfaceMappings.emplace_back(std::forward<NodeInterfaceMappingsT>(value));
95 return *this;
96 }
98
100
104 inline const Aws::String& GetRequestId() const { return m_requestId; }
105 inline bool RequestIdHasBeenSet() const { return m_requestIdHasBeenSet; }
106 template <typename RequestIdT = Aws::String>
107 void SetRequestId(RequestIdT&& value) {
108 m_requestIdHasBeenSet = true;
109 m_requestId = std::forward<RequestIdT>(value);
110 }
111 template <typename RequestIdT = Aws::String>
112 CreateNodeRequest& WithRequestId(RequestIdT&& value) {
113 SetRequestId(std::forward<RequestIdT>(value));
114 return *this;
115 }
117
119
124 inline NodeRole GetRole() const { return m_role; }
125 inline bool RoleHasBeenSet() const { return m_roleHasBeenSet; }
126 inline void SetRole(NodeRole value) {
127 m_roleHasBeenSet = true;
128 m_role = value;
129 }
131 SetRole(value);
132 return *this;
133 }
135
137
140 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
141 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
142 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
143 void SetTags(TagsT&& value) {
144 m_tagsHasBeenSet = true;
145 m_tags = std::forward<TagsT>(value);
146 }
147 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
148 CreateNodeRequest& WithTags(TagsT&& value) {
149 SetTags(std::forward<TagsT>(value));
150 return *this;
151 }
152 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
153 CreateNodeRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
154 m_tagsHasBeenSet = true;
155 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
156 return *this;
157 }
159 private:
160 Aws::String m_clusterId;
161
162 Aws::String m_name;
163
165
167
169
171 bool m_clusterIdHasBeenSet = false;
172 bool m_nameHasBeenSet = false;
173 bool m_nodeInterfaceMappingsHasBeenSet = false;
174 bool m_requestIdHasBeenSet = true;
175 bool m_roleHasBeenSet = false;
176 bool m_tagsHasBeenSet = false;
177};
178
179} // namespace Model
180} // namespace MediaLive
181} // namespace Aws
void SetNodeInterfaceMappings(NodeInterfaceMappingsT &&value)
virtual const char * GetServiceRequestName() const override
CreateNodeRequest & WithTags(TagsT &&value)
AWS_MEDIALIVE_API CreateNodeRequest()=default
CreateNodeRequest & WithRequestId(RequestIdT &&value)
CreateNodeRequest & AddNodeInterfaceMappings(NodeInterfaceMappingsT &&value)
AWS_MEDIALIVE_API Aws::String SerializePayload() const override
const Aws::String & GetClusterId() const
CreateNodeRequest & WithRole(NodeRole value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateNodeRequest & WithNodeInterfaceMappings(NodeInterfaceMappingsT &&value)
CreateNodeRequest & WithName(NameT &&value)
CreateNodeRequest & WithClusterId(ClusterIdT &&value)
CreateNodeRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
const Aws::Vector< NodeInterfaceMappingCreateRequest > & GetNodeInterfaceMappings() const
static Aws::Utils::UUID PseudoRandomUUID()
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector