AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateNodeRequest.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/NodeRole.h>
11#include <utility>
12
13namespace Aws
14{
15namespace MediaLive
16{
17namespace Model
18{
19
26 {
27 public:
28 AWS_MEDIALIVE_API UpdateNodeRequest();
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 "UpdateNode"; }
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 UpdateNodeRequest& WithClusterId(const Aws::String& value) { SetClusterId(value); return *this;}
49 inline UpdateNodeRequest& WithClusterId(Aws::String&& value) { SetClusterId(std::move(value)); return *this;}
50 inline UpdateNodeRequest& WithClusterId(const char* value) { SetClusterId(value); return *this;}
52
54
59 inline const Aws::String& GetName() const{ return m_name; }
60 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
61 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
62 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
63 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
64 inline UpdateNodeRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
65 inline UpdateNodeRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
66 inline UpdateNodeRequest& WithName(const char* value) { SetName(value); return *this;}
68
70
73 inline const Aws::String& GetNodeId() const{ return m_nodeId; }
74 inline bool NodeIdHasBeenSet() const { return m_nodeIdHasBeenSet; }
75 inline void SetNodeId(const Aws::String& value) { m_nodeIdHasBeenSet = true; m_nodeId = value; }
76 inline void SetNodeId(Aws::String&& value) { m_nodeIdHasBeenSet = true; m_nodeId = std::move(value); }
77 inline void SetNodeId(const char* value) { m_nodeIdHasBeenSet = true; m_nodeId.assign(value); }
78 inline UpdateNodeRequest& WithNodeId(const Aws::String& value) { SetNodeId(value); return *this;}
79 inline UpdateNodeRequest& WithNodeId(Aws::String&& value) { SetNodeId(std::move(value)); return *this;}
80 inline UpdateNodeRequest& WithNodeId(const char* value) { SetNodeId(value); return *this;}
82
84
89 inline const NodeRole& GetRole() const{ return m_role; }
90 inline bool RoleHasBeenSet() const { return m_roleHasBeenSet; }
91 inline void SetRole(const NodeRole& value) { m_roleHasBeenSet = true; m_role = value; }
92 inline void SetRole(NodeRole&& value) { m_roleHasBeenSet = true; m_role = std::move(value); }
93 inline UpdateNodeRequest& WithRole(const NodeRole& value) { SetRole(value); return *this;}
94 inline UpdateNodeRequest& WithRole(NodeRole&& value) { SetRole(std::move(value)); return *this;}
96 private:
97
98 Aws::String m_clusterId;
99 bool m_clusterIdHasBeenSet = false;
100
101 Aws::String m_name;
102 bool m_nameHasBeenSet = false;
103
104 Aws::String m_nodeId;
105 bool m_nodeIdHasBeenSet = false;
106
107 NodeRole m_role;
108 bool m_roleHasBeenSet = false;
109 };
110
111} // namespace Model
112} // namespace MediaLive
113} // namespace Aws
UpdateNodeRequest & WithNodeId(const char *value)
UpdateNodeRequest & WithNodeId(const Aws::String &value)
UpdateNodeRequest & WithNodeId(Aws::String &&value)
UpdateNodeRequest & WithRole(NodeRole &&value)
void SetClusterId(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
void SetName(const Aws::String &value)
UpdateNodeRequest & WithClusterId(const char *value)
void SetNodeId(const Aws::String &value)
AWS_MEDIALIVE_API Aws::String SerializePayload() const override
UpdateNodeRequest & WithClusterId(const Aws::String &value)
UpdateNodeRequest & WithRole(const NodeRole &value)
const Aws::String & GetClusterId() const
UpdateNodeRequest & WithName(const Aws::String &value)
UpdateNodeRequest & WithName(Aws::String &&value)
UpdateNodeRequest & WithClusterId(Aws::String &&value)
UpdateNodeRequest & WithName(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String