AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateNodeRequest.h
1
6#pragma once
7#include <aws/medialive/MediaLive_EXPORTS.h>
8#include <aws/medialive/MediaLiveRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/medialive/model/NodeRole.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <aws/medialive/model/NodeInterfaceMappingCreateRequest.h>
14#include <utility>
15#include <aws/core/utils/UUID.h>
16
17namespace Aws
18{
19namespace MediaLive
20{
21namespace Model
22{
23
30 {
31 public:
32 AWS_MEDIALIVE_API CreateNodeRequest();
33
34 // Service request name is the Operation name which will send this request out,
35 // each operation should has unique request name, so that we can get operation's name from this request.
36 // Note: this is not true for response, multiple operations may have the same response name,
37 // so we can not get operation's name from response.
38 inline virtual const char* GetServiceRequestName() const override { return "CreateNode"; }
39
40 AWS_MEDIALIVE_API Aws::String SerializePayload() const override;
41
42
44
47 inline const Aws::String& GetClusterId() const{ return m_clusterId; }
48 inline bool ClusterIdHasBeenSet() const { return m_clusterIdHasBeenSet; }
49 inline void SetClusterId(const Aws::String& value) { m_clusterIdHasBeenSet = true; m_clusterId = value; }
50 inline void SetClusterId(Aws::String&& value) { m_clusterIdHasBeenSet = true; m_clusterId = std::move(value); }
51 inline void SetClusterId(const char* value) { m_clusterIdHasBeenSet = true; m_clusterId.assign(value); }
52 inline CreateNodeRequest& WithClusterId(const Aws::String& value) { SetClusterId(value); return *this;}
53 inline CreateNodeRequest& WithClusterId(Aws::String&& value) { SetClusterId(std::move(value)); return *this;}
54 inline CreateNodeRequest& WithClusterId(const char* value) { SetClusterId(value); return *this;}
56
58
61 inline const Aws::String& GetName() const{ return m_name; }
62 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
63 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
64 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
65 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
66 inline CreateNodeRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
67 inline CreateNodeRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
68 inline CreateNodeRequest& WithName(const char* value) { SetName(value); return *this;}
70
72
75 inline const Aws::Vector<NodeInterfaceMappingCreateRequest>& GetNodeInterfaceMappings() const{ return m_nodeInterfaceMappings; }
76 inline bool NodeInterfaceMappingsHasBeenSet() const { return m_nodeInterfaceMappingsHasBeenSet; }
77 inline void SetNodeInterfaceMappings(const Aws::Vector<NodeInterfaceMappingCreateRequest>& value) { m_nodeInterfaceMappingsHasBeenSet = true; m_nodeInterfaceMappings = value; }
78 inline void SetNodeInterfaceMappings(Aws::Vector<NodeInterfaceMappingCreateRequest>&& value) { m_nodeInterfaceMappingsHasBeenSet = true; m_nodeInterfaceMappings = std::move(value); }
81 inline CreateNodeRequest& AddNodeInterfaceMappings(const NodeInterfaceMappingCreateRequest& value) { m_nodeInterfaceMappingsHasBeenSet = true; m_nodeInterfaceMappings.push_back(value); return *this; }
82 inline CreateNodeRequest& AddNodeInterfaceMappings(NodeInterfaceMappingCreateRequest&& value) { m_nodeInterfaceMappingsHasBeenSet = true; m_nodeInterfaceMappings.push_back(std::move(value)); return *this; }
84
86
90 inline const Aws::String& GetRequestId() const{ return m_requestId; }
91 inline bool RequestIdHasBeenSet() const { return m_requestIdHasBeenSet; }
92 inline void SetRequestId(const Aws::String& value) { m_requestIdHasBeenSet = true; m_requestId = value; }
93 inline void SetRequestId(Aws::String&& value) { m_requestIdHasBeenSet = true; m_requestId = std::move(value); }
94 inline void SetRequestId(const char* value) { m_requestIdHasBeenSet = true; m_requestId.assign(value); }
95 inline CreateNodeRequest& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
96 inline CreateNodeRequest& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
97 inline CreateNodeRequest& WithRequestId(const char* value) { SetRequestId(value); return *this;}
99
101
106 inline const NodeRole& GetRole() const{ return m_role; }
107 inline bool RoleHasBeenSet() const { return m_roleHasBeenSet; }
108 inline void SetRole(const NodeRole& value) { m_roleHasBeenSet = true; m_role = value; }
109 inline void SetRole(NodeRole&& value) { m_roleHasBeenSet = true; m_role = std::move(value); }
110 inline CreateNodeRequest& WithRole(const NodeRole& value) { SetRole(value); return *this;}
111 inline CreateNodeRequest& WithRole(NodeRole&& value) { SetRole(std::move(value)); return *this;}
113
115
118 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
119 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
120 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
121 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
122 inline CreateNodeRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
123 inline CreateNodeRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
124 inline CreateNodeRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
125 inline CreateNodeRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
126 inline CreateNodeRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
127 inline CreateNodeRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
128 inline CreateNodeRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
129 inline CreateNodeRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
130 inline CreateNodeRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
132 private:
133
134 Aws::String m_clusterId;
135 bool m_clusterIdHasBeenSet = false;
136
137 Aws::String m_name;
138 bool m_nameHasBeenSet = false;
139
141 bool m_nodeInterfaceMappingsHasBeenSet = false;
142
143 Aws::String m_requestId;
144 bool m_requestIdHasBeenSet = false;
145
146 NodeRole m_role;
147 bool m_roleHasBeenSet = false;
148
150 bool m_tagsHasBeenSet = false;
151 };
152
153} // namespace Model
154} // namespace MediaLive
155} // namespace Aws
CreateNodeRequest & WithRole(const NodeRole &value)
void SetRequestId(const Aws::String &value)
CreateNodeRequest & AddTags(const Aws::String &key, const Aws::String &value)
const Aws::String & GetRequestId() const
CreateNodeRequest & AddTags(const char *key, Aws::String &&value)
CreateNodeRequest & WithClusterId(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
CreateNodeRequest & AddNodeInterfaceMappings(const NodeInterfaceMappingCreateRequest &value)
void SetNodeInterfaceMappings(Aws::Vector< NodeInterfaceMappingCreateRequest > &&value)
CreateNodeRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateNodeRequest & WithNodeInterfaceMappings(Aws::Vector< NodeInterfaceMappingCreateRequest > &&value)
CreateNodeRequest & WithName(const Aws::String &value)
void SetClusterId(const Aws::String &value)
CreateNodeRequest & WithName(const char *value)
CreateNodeRequest & AddNodeInterfaceMappings(NodeInterfaceMappingCreateRequest &&value)
void SetName(const Aws::String &value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
void SetNodeInterfaceMappings(const Aws::Vector< NodeInterfaceMappingCreateRequest > &value)
CreateNodeRequest & AddTags(const Aws::String &key, Aws::String &&value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
AWS_MEDIALIVE_API Aws::String SerializePayload() const override
CreateNodeRequest & WithClusterId(Aws::String &&value)
CreateNodeRequest & AddTags(Aws::String &&key, Aws::String &&value)
const Aws::String & GetClusterId() const
CreateNodeRequest & AddTags(Aws::String &&key, const Aws::String &value)
CreateNodeRequest & WithNodeInterfaceMappings(const Aws::Vector< NodeInterfaceMappingCreateRequest > &value)
CreateNodeRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateNodeRequest & WithName(Aws::String &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateNodeRequest & WithRequestId(const Aws::String &value)
CreateNodeRequest & AddTags(const char *key, const char *value)
CreateNodeRequest & AddTags(Aws::String &&key, const char *value)
CreateNodeRequest & WithRequestId(Aws::String &&value)
CreateNodeRequest & WithRole(NodeRole &&value)
CreateNodeRequest & WithClusterId(const char *value)
const Aws::Vector< NodeInterfaceMappingCreateRequest > & GetNodeInterfaceMappings() const
CreateNodeRequest & WithRequestId(const char *value)
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