AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
UpdateNodeStateRequest.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/medialive/model/UpdateNodeState.h>
11#include <utility>
12
13namespace Aws
14{
15namespace MediaLive
16{
17namespace Model
18{
19
26 {
27 public:
28 AWS_MEDIALIVE_API UpdateNodeStateRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "UpdateNodeState"; }
35
36 AWS_MEDIALIVE_API Aws::String SerializePayload() const override;
37
38
40
43 inline const Aws::String& GetClusterId() const { return m_clusterId; }
44 inline bool ClusterIdHasBeenSet() const { return m_clusterIdHasBeenSet; }
45 template<typename ClusterIdT = Aws::String>
46 void SetClusterId(ClusterIdT&& value) { m_clusterIdHasBeenSet = true; m_clusterId = std::forward<ClusterIdT>(value); }
47 template<typename ClusterIdT = Aws::String>
48 UpdateNodeStateRequest& WithClusterId(ClusterIdT&& value) { SetClusterId(std::forward<ClusterIdT>(value)); return *this;}
50
52
55 inline const Aws::String& GetNodeId() const { return m_nodeId; }
56 inline bool NodeIdHasBeenSet() const { return m_nodeIdHasBeenSet; }
57 template<typename NodeIdT = Aws::String>
58 void SetNodeId(NodeIdT&& value) { m_nodeIdHasBeenSet = true; m_nodeId = std::forward<NodeIdT>(value); }
59 template<typename NodeIdT = Aws::String>
60 UpdateNodeStateRequest& WithNodeId(NodeIdT&& value) { SetNodeId(std::forward<NodeIdT>(value)); return *this;}
62
64
71 inline UpdateNodeState GetState() const { return m_state; }
72 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
73 inline void SetState(UpdateNodeState value) { m_stateHasBeenSet = true; m_state = value; }
74 inline UpdateNodeStateRequest& WithState(UpdateNodeState value) { SetState(value); return *this;}
76 private:
77
78 Aws::String m_clusterId;
79 bool m_clusterIdHasBeenSet = false;
80
81 Aws::String m_nodeId;
82 bool m_nodeIdHasBeenSet = false;
83
85 bool m_stateHasBeenSet = false;
86 };
87
88} // namespace Model
89} // namespace MediaLive
90} // 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