AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateChannelPlacementGroupRequest.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/core/utils/memory/stl/AWSVector.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <utility>
13#include <aws/core/utils/UUID.h>
14
15namespace Aws
16{
17namespace MediaLive
18{
19namespace Model
20{
21
28 {
29 public:
30 AWS_MEDIALIVE_API CreateChannelPlacementGroupRequest() = 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 "CreateChannelPlacementGroup"; }
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 CreateChannelPlacementGroupRequest& WithClusterId(ClusterIdT&& value) { SetClusterId(std::forward<ClusterIdT>(value)); return *this;}
52
54
58 inline const Aws::String& GetName() const { return m_name; }
59 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
60 template<typename NameT = Aws::String>
61 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
62 template<typename NameT = Aws::String>
63 CreateChannelPlacementGroupRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
65
67
73 inline const Aws::Vector<Aws::String>& GetNodes() const { return m_nodes; }
74 inline bool NodesHasBeenSet() const { return m_nodesHasBeenSet; }
75 template<typename NodesT = Aws::Vector<Aws::String>>
76 void SetNodes(NodesT&& value) { m_nodesHasBeenSet = true; m_nodes = std::forward<NodesT>(value); }
77 template<typename NodesT = Aws::Vector<Aws::String>>
78 CreateChannelPlacementGroupRequest& WithNodes(NodesT&& value) { SetNodes(std::forward<NodesT>(value)); return *this;}
79 template<typename NodesT = Aws::String>
80 CreateChannelPlacementGroupRequest& AddNodes(NodesT&& value) { m_nodesHasBeenSet = true; m_nodes.emplace_back(std::forward<NodesT>(value)); return *this; }
82
84
88 inline const Aws::String& GetRequestId() const { return m_requestId; }
89 inline bool RequestIdHasBeenSet() const { return m_requestIdHasBeenSet; }
90 template<typename RequestIdT = Aws::String>
91 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
92 template<typename RequestIdT = Aws::String>
93 CreateChannelPlacementGroupRequest& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
95
97
100 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
101 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
102 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
103 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
104 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
105 CreateChannelPlacementGroupRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
106 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
107 CreateChannelPlacementGroupRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
108 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
109 }
111 private:
112
113 Aws::String m_clusterId;
114 bool m_clusterIdHasBeenSet = false;
115
116 Aws::String m_name;
117 bool m_nameHasBeenSet = false;
118
120 bool m_nodesHasBeenSet = false;
121
123 bool m_requestIdHasBeenSet = true;
124
126 bool m_tagsHasBeenSet = false;
127 };
128
129} // namespace Model
130} // namespace MediaLive
131} // 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