AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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 <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/medialive/model/SdiSourceMappingUpdateRequest.h>
13#include <utility>
14
15namespace Aws
16{
17namespace MediaLive
18{
19namespace Model
20{
21
28 {
29 public:
30 AWS_MEDIALIVE_API UpdateNodeRequest() = default;
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "UpdateNode"; }
37
38 AWS_MEDIALIVE_API Aws::String SerializePayload() const override;
39
40
42
45 inline const Aws::String& GetClusterId() const { return m_clusterId; }
46 inline bool ClusterIdHasBeenSet() const { return m_clusterIdHasBeenSet; }
47 template<typename ClusterIdT = Aws::String>
48 void SetClusterId(ClusterIdT&& value) { m_clusterIdHasBeenSet = true; m_clusterId = std::forward<ClusterIdT>(value); }
49 template<typename ClusterIdT = Aws::String>
50 UpdateNodeRequest& WithClusterId(ClusterIdT&& value) { SetClusterId(std::forward<ClusterIdT>(value)); return *this;}
52
54
59 inline const Aws::String& GetName() const { return m_name; }
60 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
61 template<typename NameT = Aws::String>
62 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
63 template<typename NameT = Aws::String>
64 UpdateNodeRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
66
68
71 inline const Aws::String& GetNodeId() const { return m_nodeId; }
72 inline bool NodeIdHasBeenSet() const { return m_nodeIdHasBeenSet; }
73 template<typename NodeIdT = Aws::String>
74 void SetNodeId(NodeIdT&& value) { m_nodeIdHasBeenSet = true; m_nodeId = std::forward<NodeIdT>(value); }
75 template<typename NodeIdT = Aws::String>
76 UpdateNodeRequest& WithNodeId(NodeIdT&& value) { SetNodeId(std::forward<NodeIdT>(value)); return *this;}
78
80
85 inline NodeRole GetRole() const { return m_role; }
86 inline bool RoleHasBeenSet() const { return m_roleHasBeenSet; }
87 inline void SetRole(NodeRole value) { m_roleHasBeenSet = true; m_role = value; }
88 inline UpdateNodeRequest& WithRole(NodeRole value) { SetRole(value); return *this;}
90
92
95 inline const Aws::Vector<SdiSourceMappingUpdateRequest>& GetSdiSourceMappings() const { return m_sdiSourceMappings; }
96 inline bool SdiSourceMappingsHasBeenSet() const { return m_sdiSourceMappingsHasBeenSet; }
97 template<typename SdiSourceMappingsT = Aws::Vector<SdiSourceMappingUpdateRequest>>
98 void SetSdiSourceMappings(SdiSourceMappingsT&& value) { m_sdiSourceMappingsHasBeenSet = true; m_sdiSourceMappings = std::forward<SdiSourceMappingsT>(value); }
99 template<typename SdiSourceMappingsT = Aws::Vector<SdiSourceMappingUpdateRequest>>
100 UpdateNodeRequest& WithSdiSourceMappings(SdiSourceMappingsT&& value) { SetSdiSourceMappings(std::forward<SdiSourceMappingsT>(value)); return *this;}
101 template<typename SdiSourceMappingsT = SdiSourceMappingUpdateRequest>
102 UpdateNodeRequest& AddSdiSourceMappings(SdiSourceMappingsT&& value) { m_sdiSourceMappingsHasBeenSet = true; m_sdiSourceMappings.emplace_back(std::forward<SdiSourceMappingsT>(value)); return *this; }
104 private:
105
106 Aws::String m_clusterId;
107 bool m_clusterIdHasBeenSet = false;
108
109 Aws::String m_name;
110 bool m_nameHasBeenSet = false;
111
112 Aws::String m_nodeId;
113 bool m_nodeIdHasBeenSet = false;
114
116 bool m_roleHasBeenSet = false;
117
119 bool m_sdiSourceMappingsHasBeenSet = false;
120 };
121
122} // namespace Model
123} // namespace MediaLive
124} // 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