AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename ClusterIdT = Aws::String>
50 void SetClusterId(ClusterIdT&& value) { m_clusterIdHasBeenSet = true; m_clusterId = std::forward<ClusterIdT>(value); }
51 template<typename ClusterIdT = Aws::String>
52 CreateNodeRequest& WithClusterId(ClusterIdT&& value) { SetClusterId(std::forward<ClusterIdT>(value)); return *this;}
54
56
59 inline const Aws::String& GetName() const { return m_name; }
60 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
61 template<typename NameT = Aws::String>
62 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
63 template<typename NameT = Aws::String>
64 CreateNodeRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
66
68
71 inline const Aws::Vector<NodeInterfaceMappingCreateRequest>& GetNodeInterfaceMappings() const { return m_nodeInterfaceMappings; }
72 inline bool NodeInterfaceMappingsHasBeenSet() const { return m_nodeInterfaceMappingsHasBeenSet; }
73 template<typename NodeInterfaceMappingsT = Aws::Vector<NodeInterfaceMappingCreateRequest>>
74 void SetNodeInterfaceMappings(NodeInterfaceMappingsT&& value) { m_nodeInterfaceMappingsHasBeenSet = true; m_nodeInterfaceMappings = std::forward<NodeInterfaceMappingsT>(value); }
75 template<typename NodeInterfaceMappingsT = Aws::Vector<NodeInterfaceMappingCreateRequest>>
76 CreateNodeRequest& WithNodeInterfaceMappings(NodeInterfaceMappingsT&& value) { SetNodeInterfaceMappings(std::forward<NodeInterfaceMappingsT>(value)); return *this;}
77 template<typename NodeInterfaceMappingsT = NodeInterfaceMappingCreateRequest>
78 CreateNodeRequest& AddNodeInterfaceMappings(NodeInterfaceMappingsT&& value) { m_nodeInterfaceMappingsHasBeenSet = true; m_nodeInterfaceMappings.emplace_back(std::forward<NodeInterfaceMappingsT>(value)); return *this; }
80
82
86 inline const Aws::String& GetRequestId() const { return m_requestId; }
87 inline bool RequestIdHasBeenSet() const { return m_requestIdHasBeenSet; }
88 template<typename RequestIdT = Aws::String>
89 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
90 template<typename RequestIdT = Aws::String>
91 CreateNodeRequest& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
93
95
100 inline NodeRole GetRole() const { return m_role; }
101 inline bool RoleHasBeenSet() const { return m_roleHasBeenSet; }
102 inline void SetRole(NodeRole value) { m_roleHasBeenSet = true; m_role = value; }
103 inline CreateNodeRequest& WithRole(NodeRole value) { SetRole(value); return *this;}
105
107
110 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
111 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
112 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
113 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
114 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
115 CreateNodeRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
116 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
117 CreateNodeRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
118 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
119 }
121 private:
122
123 Aws::String m_clusterId;
124 bool m_clusterIdHasBeenSet = false;
125
126 Aws::String m_name;
127 bool m_nameHasBeenSet = false;
128
130 bool m_nodeInterfaceMappingsHasBeenSet = false;
131
133 bool m_requestIdHasBeenSet = true;
134
136 bool m_roleHasBeenSet = false;
137
139 bool m_tagsHasBeenSet = false;
140 };
141
142} // namespace Model
143} // namespace MediaLive
144} // namespace Aws
const Aws::String & GetRequestId() const
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