AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
UpdateNodeRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/medialive/MediaLiveRequest.h>
10#include <aws/medialive/MediaLive_EXPORTS.h>
11#include <aws/medialive/model/NodeRole.h>
12#include <aws/medialive/model/SdiSourceMappingUpdateRequest.h>
13
14#include <utility>
15
16namespace Aws {
17namespace MediaLive {
18namespace Model {
19
26 public:
27 AWS_MEDIALIVE_API UpdateNodeRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "UpdateNode"; }
34
35 AWS_MEDIALIVE_API Aws::String SerializePayload() const override;
36
38
41 inline const Aws::String& GetClusterId() const { return m_clusterId; }
42 inline bool ClusterIdHasBeenSet() const { return m_clusterIdHasBeenSet; }
43 template <typename ClusterIdT = Aws::String>
44 void SetClusterId(ClusterIdT&& value) {
45 m_clusterIdHasBeenSet = true;
46 m_clusterId = std::forward<ClusterIdT>(value);
47 }
48 template <typename ClusterIdT = Aws::String>
49 UpdateNodeRequest& WithClusterId(ClusterIdT&& value) {
50 SetClusterId(std::forward<ClusterIdT>(value));
51 return *this;
52 }
54
56
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 UpdateNodeRequest& WithName(NameT&& value) {
70 SetName(std::forward<NameT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::String& GetNodeId() const { return m_nodeId; }
80 inline bool NodeIdHasBeenSet() const { return m_nodeIdHasBeenSet; }
81 template <typename NodeIdT = Aws::String>
82 void SetNodeId(NodeIdT&& value) {
83 m_nodeIdHasBeenSet = true;
84 m_nodeId = std::forward<NodeIdT>(value);
85 }
86 template <typename NodeIdT = Aws::String>
87 UpdateNodeRequest& WithNodeId(NodeIdT&& value) {
88 SetNodeId(std::forward<NodeIdT>(value));
89 return *this;
90 }
92
94
99 inline NodeRole GetRole() const { return m_role; }
100 inline bool RoleHasBeenSet() const { return m_roleHasBeenSet; }
101 inline void SetRole(NodeRole value) {
102 m_roleHasBeenSet = true;
103 m_role = value;
104 }
106 SetRole(value);
107 return *this;
108 }
110
112
115 inline const Aws::Vector<SdiSourceMappingUpdateRequest>& GetSdiSourceMappings() const { return m_sdiSourceMappings; }
116 inline bool SdiSourceMappingsHasBeenSet() const { return m_sdiSourceMappingsHasBeenSet; }
117 template <typename SdiSourceMappingsT = Aws::Vector<SdiSourceMappingUpdateRequest>>
118 void SetSdiSourceMappings(SdiSourceMappingsT&& value) {
119 m_sdiSourceMappingsHasBeenSet = true;
120 m_sdiSourceMappings = std::forward<SdiSourceMappingsT>(value);
121 }
122 template <typename SdiSourceMappingsT = Aws::Vector<SdiSourceMappingUpdateRequest>>
123 UpdateNodeRequest& WithSdiSourceMappings(SdiSourceMappingsT&& value) {
124 SetSdiSourceMappings(std::forward<SdiSourceMappingsT>(value));
125 return *this;
126 }
127 template <typename SdiSourceMappingsT = SdiSourceMappingUpdateRequest>
128 UpdateNodeRequest& AddSdiSourceMappings(SdiSourceMappingsT&& value) {
129 m_sdiSourceMappingsHasBeenSet = true;
130 m_sdiSourceMappings.emplace_back(std::forward<SdiSourceMappingsT>(value));
131 return *this;
132 }
134 private:
135 Aws::String m_clusterId;
136
137 Aws::String m_name;
138
139 Aws::String m_nodeId;
140
142
144 bool m_clusterIdHasBeenSet = false;
145 bool m_nameHasBeenSet = false;
146 bool m_nodeIdHasBeenSet = false;
147 bool m_roleHasBeenSet = false;
148 bool m_sdiSourceMappingsHasBeenSet = false;
149};
150
151} // namespace Model
152} // namespace MediaLive
153} // namespace Aws
UpdateNodeRequest & WithRole(NodeRole value)
AWS_MEDIALIVE_API UpdateNodeRequest()=default
const Aws::Vector< SdiSourceMappingUpdateRequest > & GetSdiSourceMappings() const
UpdateNodeRequest & WithClusterId(ClusterIdT &&value)
virtual const char * GetServiceRequestName() const override
AWS_MEDIALIVE_API Aws::String SerializePayload() const override
const Aws::String & GetClusterId() const
UpdateNodeRequest & WithName(NameT &&value)
void SetSdiSourceMappings(SdiSourceMappingsT &&value)
UpdateNodeRequest & WithNodeId(NodeIdT &&value)
UpdateNodeRequest & WithSdiSourceMappings(SdiSourceMappingsT &&value)
UpdateNodeRequest & AddSdiSourceMappings(SdiSourceMappingsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector