AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetClusterId(const Aws::String& value) { m_clusterIdHasBeenSet = true; m_clusterId = value; }
46 inline void SetClusterId(Aws::String&& value) { m_clusterIdHasBeenSet = true; m_clusterId = std::move(value); }
47 inline void SetClusterId(const char* value) { m_clusterIdHasBeenSet = true; m_clusterId.assign(value); }
48 inline UpdateNodeStateRequest& WithClusterId(const Aws::String& value) { SetClusterId(value); return *this;}
49 inline UpdateNodeStateRequest& WithClusterId(Aws::String&& value) { SetClusterId(std::move(value)); return *this;}
50 inline UpdateNodeStateRequest& WithClusterId(const char* value) { SetClusterId(value); return *this;}
52
54
57 inline const Aws::String& GetNodeId() const{ return m_nodeId; }
58 inline bool NodeIdHasBeenSet() const { return m_nodeIdHasBeenSet; }
59 inline void SetNodeId(const Aws::String& value) { m_nodeIdHasBeenSet = true; m_nodeId = value; }
60 inline void SetNodeId(Aws::String&& value) { m_nodeIdHasBeenSet = true; m_nodeId = std::move(value); }
61 inline void SetNodeId(const char* value) { m_nodeIdHasBeenSet = true; m_nodeId.assign(value); }
62 inline UpdateNodeStateRequest& WithNodeId(const Aws::String& value) { SetNodeId(value); return *this;}
63 inline UpdateNodeStateRequest& WithNodeId(Aws::String&& value) { SetNodeId(std::move(value)); return *this;}
64 inline UpdateNodeStateRequest& WithNodeId(const char* value) { SetNodeId(value); return *this;}
66
68
75 inline const UpdateNodeState& GetState() const{ return m_state; }
76 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
77 inline void SetState(const UpdateNodeState& value) { m_stateHasBeenSet = true; m_state = value; }
78 inline void SetState(UpdateNodeState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
79 inline UpdateNodeStateRequest& WithState(const UpdateNodeState& value) { SetState(value); return *this;}
80 inline UpdateNodeStateRequest& WithState(UpdateNodeState&& value) { SetState(std::move(value)); return *this;}
82 private:
83
84 Aws::String m_clusterId;
85 bool m_clusterIdHasBeenSet = false;
86
87 Aws::String m_nodeId;
88 bool m_nodeIdHasBeenSet = false;
89
90 UpdateNodeState m_state;
91 bool m_stateHasBeenSet = false;
92 };
93
94} // namespace Model
95} // namespace MediaLive
96} // namespace Aws
UpdateNodeStateRequest & WithClusterId(const char *value)
UpdateNodeStateRequest & WithState(UpdateNodeState &&value)
UpdateNodeStateRequest & WithClusterId(const Aws::String &value)
AWS_MEDIALIVE_API Aws::String SerializePayload() const override
UpdateNodeStateRequest & WithNodeId(const Aws::String &value)
UpdateNodeStateRequest & WithState(const UpdateNodeState &value)
virtual const char * GetServiceRequestName() const override
UpdateNodeStateRequest & WithNodeId(Aws::String &&value)
UpdateNodeStateRequest & WithNodeId(const char *value)
UpdateNodeStateRequest & WithClusterId(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String