AWS SDK for C++

AWS SDK for C++ Version 1.11.754

Loading...
Searching...
No Matches
CreateChannelPlacementGroupRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/medialive/MediaLiveRequest.h>
12#include <aws/medialive/MediaLive_EXPORTS.h>
13
14#include <utility>
15
16namespace Aws {
17namespace MediaLive {
18namespace Model {
19
26 public:
27 AWS_MEDIALIVE_API CreateChannelPlacementGroupRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreateChannelPlacementGroup"; }
34
35 AWS_MEDIALIVE_API Aws::String SerializePayload() const override;
36
38
41 inline const Aws::String& GetClusterId() const { return m_clusterId; }
42 inline bool ClusterIdHasBeenSet() const { return m_clusterIdHasBeenSet; }
43 template <typename ClusterIdT = Aws::String>
44 void SetClusterId(ClusterIdT&& value) {
45 m_clusterIdHasBeenSet = true;
46 m_clusterId = std::forward<ClusterIdT>(value);
47 }
48 template <typename ClusterIdT = Aws::String>
50 SetClusterId(std::forward<ClusterIdT>(value));
51 return *this;
52 }
54
56
60 inline const Aws::String& GetName() const { return m_name; }
61 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
62 template <typename NameT = Aws::String>
63 void SetName(NameT&& value) {
64 m_nameHasBeenSet = true;
65 m_name = std::forward<NameT>(value);
66 }
67 template <typename NameT = Aws::String>
69 SetName(std::forward<NameT>(value));
70 return *this;
71 }
73
75
81 inline const Aws::Vector<Aws::String>& GetNodes() const { return m_nodes; }
82 inline bool NodesHasBeenSet() const { return m_nodesHasBeenSet; }
83 template <typename NodesT = Aws::Vector<Aws::String>>
84 void SetNodes(NodesT&& value) {
85 m_nodesHasBeenSet = true;
86 m_nodes = std::forward<NodesT>(value);
87 }
88 template <typename NodesT = Aws::Vector<Aws::String>>
90 SetNodes(std::forward<NodesT>(value));
91 return *this;
92 }
93 template <typename NodesT = Aws::String>
95 m_nodesHasBeenSet = true;
96 m_nodes.emplace_back(std::forward<NodesT>(value));
97 return *this;
98 }
100
102
106 inline const Aws::String& GetRequestId() const { return m_requestId; }
107 inline bool RequestIdHasBeenSet() const { return m_requestIdHasBeenSet; }
108 template <typename RequestIdT = Aws::String>
109 void SetRequestId(RequestIdT&& value) {
110 m_requestIdHasBeenSet = true;
111 m_requestId = std::forward<RequestIdT>(value);
112 }
113 template <typename RequestIdT = Aws::String>
115 SetRequestId(std::forward<RequestIdT>(value));
116 return *this;
117 }
119
121
124 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
125 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
126 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
127 void SetTags(TagsT&& value) {
128 m_tagsHasBeenSet = true;
129 m_tags = std::forward<TagsT>(value);
130 }
131 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
133 SetTags(std::forward<TagsT>(value));
134 return *this;
135 }
136 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
137 CreateChannelPlacementGroupRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
138 m_tagsHasBeenSet = true;
139 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
140 return *this;
141 }
143 private:
144 Aws::String m_clusterId;
145
146 Aws::String m_name;
147
149
151
153 bool m_clusterIdHasBeenSet = false;
154 bool m_nameHasBeenSet = false;
155 bool m_nodesHasBeenSet = false;
156 bool m_requestIdHasBeenSet = true;
157 bool m_tagsHasBeenSet = false;
158};
159
160} // namespace Model
161} // namespace MediaLive
162} // namespace Aws
CreateChannelPlacementGroupRequest & AddNodes(NodesT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateChannelPlacementGroupRequest & WithClusterId(ClusterIdT &&value)
AWS_MEDIALIVE_API Aws::String SerializePayload() const override
CreateChannelPlacementGroupRequest & WithName(NameT &&value)
AWS_MEDIALIVE_API CreateChannelPlacementGroupRequest()=default
CreateChannelPlacementGroupRequest & WithNodes(NodesT &&value)
CreateChannelPlacementGroupRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateChannelPlacementGroupRequest & WithRequestId(RequestIdT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector