AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
UpdateNodeStateRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/medialive/MediaLiveRequest.h>
9#include <aws/medialive/MediaLive_EXPORTS.h>
10#include <aws/medialive/model/UpdateNodeState.h>
11
12#include <utility>
13
14namespace Aws {
15namespace MediaLive {
16namespace Model {
17
24 public:
25 AWS_MEDIALIVE_API UpdateNodeStateRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "UpdateNodeState"; }
32
33 AWS_MEDIALIVE_API Aws::String SerializePayload() const override;
34
36
39 inline const Aws::String& GetClusterId() const { return m_clusterId; }
40 inline bool ClusterIdHasBeenSet() const { return m_clusterIdHasBeenSet; }
41 template <typename ClusterIdT = Aws::String>
42 void SetClusterId(ClusterIdT&& value) {
43 m_clusterIdHasBeenSet = true;
44 m_clusterId = std::forward<ClusterIdT>(value);
45 }
46 template <typename ClusterIdT = Aws::String>
48 SetClusterId(std::forward<ClusterIdT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetNodeId() const { return m_nodeId; }
58 inline bool NodeIdHasBeenSet() const { return m_nodeIdHasBeenSet; }
59 template <typename NodeIdT = Aws::String>
60 void SetNodeId(NodeIdT&& value) {
61 m_nodeIdHasBeenSet = true;
62 m_nodeId = std::forward<NodeIdT>(value);
63 }
64 template <typename NodeIdT = Aws::String>
66 SetNodeId(std::forward<NodeIdT>(value));
67 return *this;
68 }
70
72
79 inline UpdateNodeState GetState() const { return m_state; }
80 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
81 inline void SetState(UpdateNodeState value) {
82 m_stateHasBeenSet = true;
83 m_state = value;
84 }
86 SetState(value);
87 return *this;
88 }
90 private:
91 Aws::String m_clusterId;
92
93 Aws::String m_nodeId;
94
96 bool m_clusterIdHasBeenSet = false;
97 bool m_nodeIdHasBeenSet = false;
98 bool m_stateHasBeenSet = false;
99};
100
101} // namespace Model
102} // namespace MediaLive
103} // namespace Aws
UpdateNodeStateRequest & WithClusterId(ClusterIdT &&value)
AWS_MEDIALIVE_API Aws::String SerializePayload() const override
AWS_MEDIALIVE_API UpdateNodeStateRequest()=default
virtual const char * GetServiceRequestName() const override
UpdateNodeStateRequest & WithState(UpdateNodeState value)
UpdateNodeStateRequest & WithNodeId(NodeIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String