AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
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 inline void SetClusterId(const Aws::String& value) { m_clusterIdHasBeenSet = true; m_clusterId = value; }
48 inline void SetClusterId(Aws::String&& value) { m_clusterIdHasBeenSet = true; m_clusterId = std::move(value); }
49 inline void SetClusterId(const char* value) { m_clusterIdHasBeenSet = true; m_clusterId.assign(value); }
50 inline CreateChannelPlacementGroupRequest& WithClusterId(const Aws::String& value) { SetClusterId(value); return *this;}
51 inline CreateChannelPlacementGroupRequest& WithClusterId(Aws::String&& value) { SetClusterId(std::move(value)); return *this;}
52 inline CreateChannelPlacementGroupRequest& WithClusterId(const char* value) { SetClusterId(value); return *this;}
54
56
60 inline const Aws::String& GetName() const{ return m_name; }
61 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
62 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
63 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
64 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
65 inline CreateChannelPlacementGroupRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
66 inline CreateChannelPlacementGroupRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
67 inline CreateChannelPlacementGroupRequest& WithName(const char* value) { SetName(value); return *this;}
69
71
77 inline const Aws::Vector<Aws::String>& GetNodes() const{ return m_nodes; }
78 inline bool NodesHasBeenSet() const { return m_nodesHasBeenSet; }
79 inline void SetNodes(const Aws::Vector<Aws::String>& value) { m_nodesHasBeenSet = true; m_nodes = value; }
80 inline void SetNodes(Aws::Vector<Aws::String>&& value) { m_nodesHasBeenSet = true; m_nodes = std::move(value); }
82 inline CreateChannelPlacementGroupRequest& WithNodes(Aws::Vector<Aws::String>&& value) { SetNodes(std::move(value)); return *this;}
83 inline CreateChannelPlacementGroupRequest& AddNodes(const Aws::String& value) { m_nodesHasBeenSet = true; m_nodes.push_back(value); return *this; }
84 inline CreateChannelPlacementGroupRequest& AddNodes(Aws::String&& value) { m_nodesHasBeenSet = true; m_nodes.push_back(std::move(value)); return *this; }
85 inline CreateChannelPlacementGroupRequest& AddNodes(const char* value) { m_nodesHasBeenSet = true; m_nodes.push_back(value); return *this; }
87
89
93 inline const Aws::String& GetRequestId() const{ return m_requestId; }
94 inline bool RequestIdHasBeenSet() const { return m_requestIdHasBeenSet; }
95 inline void SetRequestId(const Aws::String& value) { m_requestIdHasBeenSet = true; m_requestId = value; }
96 inline void SetRequestId(Aws::String&& value) { m_requestIdHasBeenSet = true; m_requestId = std::move(value); }
97 inline void SetRequestId(const char* value) { m_requestIdHasBeenSet = true; m_requestId.assign(value); }
98 inline CreateChannelPlacementGroupRequest& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
99 inline CreateChannelPlacementGroupRequest& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
100 inline CreateChannelPlacementGroupRequest& WithRequestId(const char* value) { SetRequestId(value); return *this;}
102
104
107 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
108 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
109 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
110 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
113 inline CreateChannelPlacementGroupRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
114 inline CreateChannelPlacementGroupRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
115 inline CreateChannelPlacementGroupRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
116 inline CreateChannelPlacementGroupRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
117 inline CreateChannelPlacementGroupRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
118 inline CreateChannelPlacementGroupRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
119 inline CreateChannelPlacementGroupRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
121 private:
122
123 Aws::String m_clusterId;
124 bool m_clusterIdHasBeenSet = false;
125
126 Aws::String m_name;
127 bool m_nameHasBeenSet = false;
128
130 bool m_nodesHasBeenSet = false;
131
132 Aws::String m_requestId;
133 bool m_requestIdHasBeenSet = false;
134
136 bool m_tagsHasBeenSet = false;
137 };
138
139} // namespace Model
140} // namespace MediaLive
141} // namespace Aws
CreateChannelPlacementGroupRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateChannelPlacementGroupRequest & WithNodes(const Aws::Vector< Aws::String > &value)
CreateChannelPlacementGroupRequest & WithName(const Aws::String &value)
CreateChannelPlacementGroupRequest & AddTags(Aws::String &&key, const Aws::String &value)
CreateChannelPlacementGroupRequest & WithClusterId(const char *value)
CreateChannelPlacementGroupRequest & AddTags(Aws::String &&key, const char *value)
CreateChannelPlacementGroupRequest & AddTags(const Aws::String &key, Aws::String &&value)
CreateChannelPlacementGroupRequest & AddNodes(const Aws::String &value)
CreateChannelPlacementGroupRequest & WithClusterId(Aws::String &&value)
CreateChannelPlacementGroupRequest & WithRequestId(const Aws::String &value)
CreateChannelPlacementGroupRequest & WithNodes(Aws::Vector< Aws::String > &&value)
CreateChannelPlacementGroupRequest & AddTags(const char *key, Aws::String &&value)
CreateChannelPlacementGroupRequest & AddTags(const char *key, const char *value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateChannelPlacementGroupRequest & WithRequestId(Aws::String &&value)
CreateChannelPlacementGroupRequest & WithRequestId(const char *value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
AWS_MEDIALIVE_API Aws::String SerializePayload() const override
CreateChannelPlacementGroupRequest & AddNodes(Aws::String &&value)
CreateChannelPlacementGroupRequest & AddNodes(const char *value)
CreateChannelPlacementGroupRequest & WithName(Aws::String &&value)
CreateChannelPlacementGroupRequest & WithName(const char *value)
CreateChannelPlacementGroupRequest & WithClusterId(const Aws::String &value)
CreateChannelPlacementGroupRequest & AddTags(const Aws::String &key, const Aws::String &value)
CreateChannelPlacementGroupRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateChannelPlacementGroupRequest & AddTags(Aws::String &&key, Aws::String &&value)
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