AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateNodeRegistrationScriptRequest.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/medialive/model/NodeInterfaceMapping.h>
13#include <utility>
14#include <aws/core/utils/UUID.h>
15
16namespace Aws
17{
18namespace MediaLive
19{
20namespace Model
21{
22
29 {
30 public:
31 AWS_MEDIALIVE_API CreateNodeRegistrationScriptRequest() = default;
32
33 // Service request name is the Operation name which will send this request out,
34 // each operation should has unique request name, so that we can get operation's name from this request.
35 // Note: this is not true for response, multiple operations may have the same response name,
36 // so we can not get operation's name from response.
37 inline virtual const char* GetServiceRequestName() const override { return "CreateNodeRegistrationScript"; }
38
39 AWS_MEDIALIVE_API Aws::String SerializePayload() const override;
40
41
43
46 inline const Aws::String& GetClusterId() const { return m_clusterId; }
47 inline bool ClusterIdHasBeenSet() const { return m_clusterIdHasBeenSet; }
48 template<typename ClusterIdT = Aws::String>
49 void SetClusterId(ClusterIdT&& value) { m_clusterIdHasBeenSet = true; m_clusterId = std::forward<ClusterIdT>(value); }
50 template<typename ClusterIdT = Aws::String>
51 CreateNodeRegistrationScriptRequest& WithClusterId(ClusterIdT&& value) { SetClusterId(std::forward<ClusterIdT>(value)); return *this;}
53
55
59 inline const Aws::String& GetId() const { return m_id; }
60 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
61 template<typename IdT = Aws::String>
62 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
63 template<typename IdT = Aws::String>
64 CreateNodeRegistrationScriptRequest& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
66
68
74 inline const Aws::String& GetName() const { return m_name; }
75 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
76 template<typename NameT = Aws::String>
77 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
78 template<typename NameT = Aws::String>
79 CreateNodeRegistrationScriptRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
81
83
86 inline const Aws::Vector<NodeInterfaceMapping>& GetNodeInterfaceMappings() const { return m_nodeInterfaceMappings; }
87 inline bool NodeInterfaceMappingsHasBeenSet() const { return m_nodeInterfaceMappingsHasBeenSet; }
88 template<typename NodeInterfaceMappingsT = Aws::Vector<NodeInterfaceMapping>>
89 void SetNodeInterfaceMappings(NodeInterfaceMappingsT&& value) { m_nodeInterfaceMappingsHasBeenSet = true; m_nodeInterfaceMappings = std::forward<NodeInterfaceMappingsT>(value); }
90 template<typename NodeInterfaceMappingsT = Aws::Vector<NodeInterfaceMapping>>
91 CreateNodeRegistrationScriptRequest& WithNodeInterfaceMappings(NodeInterfaceMappingsT&& value) { SetNodeInterfaceMappings(std::forward<NodeInterfaceMappingsT>(value)); return *this;}
92 template<typename NodeInterfaceMappingsT = NodeInterfaceMapping>
93 CreateNodeRegistrationScriptRequest& AddNodeInterfaceMappings(NodeInterfaceMappingsT&& value) { m_nodeInterfaceMappingsHasBeenSet = true; m_nodeInterfaceMappings.emplace_back(std::forward<NodeInterfaceMappingsT>(value)); return *this; }
95
97
101 inline const Aws::String& GetRequestId() const { return m_requestId; }
102 inline bool RequestIdHasBeenSet() const { return m_requestIdHasBeenSet; }
103 template<typename RequestIdT = Aws::String>
104 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
105 template<typename RequestIdT = Aws::String>
106 CreateNodeRegistrationScriptRequest& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
108
110
115 inline NodeRole GetRole() const { return m_role; }
116 inline bool RoleHasBeenSet() const { return m_roleHasBeenSet; }
117 inline void SetRole(NodeRole value) { m_roleHasBeenSet = true; m_role = value; }
118 inline CreateNodeRegistrationScriptRequest& WithRole(NodeRole value) { SetRole(value); return *this;}
120 private:
121
122 Aws::String m_clusterId;
123 bool m_clusterIdHasBeenSet = false;
124
125 Aws::String m_id;
126 bool m_idHasBeenSet = false;
127
128 Aws::String m_name;
129 bool m_nameHasBeenSet = false;
130
131 Aws::Vector<NodeInterfaceMapping> m_nodeInterfaceMappings;
132 bool m_nodeInterfaceMappingsHasBeenSet = false;
133
135 bool m_requestIdHasBeenSet = true;
136
138 bool m_roleHasBeenSet = false;
139 };
140
141} // namespace Model
142} // namespace MediaLive
143} // 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