AWS SDK for C++

AWS SDK for C++ Version 1.11.695

Loading...
Searching...
No Matches
CreateChannelGroupRequest.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/mediapackagev2/Mediapackagev2Request.h>
11#include <aws/mediapackagev2/Mediapackagev2_EXPORTS.h>
12
13#include <utility>
14
15namespace Aws {
16namespace mediapackagev2 {
17namespace Model {
18
22 public:
23 AWS_MEDIAPACKAGEV2_API CreateChannelGroupRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "CreateChannelGroup"; }
30
31 AWS_MEDIAPACKAGEV2_API Aws::String SerializePayload() const override;
32
33 AWS_MEDIAPACKAGEV2_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
34
36
42 inline const Aws::String& GetChannelGroupName() const { return m_channelGroupName; }
43 inline bool ChannelGroupNameHasBeenSet() const { return m_channelGroupNameHasBeenSet; }
44 template <typename ChannelGroupNameT = Aws::String>
45 void SetChannelGroupName(ChannelGroupNameT&& value) {
46 m_channelGroupNameHasBeenSet = true;
47 m_channelGroupName = std::forward<ChannelGroupNameT>(value);
48 }
49 template <typename ChannelGroupNameT = Aws::String>
50 CreateChannelGroupRequest& WithChannelGroupName(ChannelGroupNameT&& value) {
51 SetChannelGroupName(std::forward<ChannelGroupNameT>(value));
52 return *this;
53 }
55
57
61 inline const Aws::String& GetClientToken() const { return m_clientToken; }
62 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
63 template <typename ClientTokenT = Aws::String>
64 void SetClientToken(ClientTokenT&& value) {
65 m_clientTokenHasBeenSet = true;
66 m_clientToken = std::forward<ClientTokenT>(value);
67 }
68 template <typename ClientTokenT = Aws::String>
70 SetClientToken(std::forward<ClientTokenT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::String& GetDescription() const { return m_description; }
80 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
81 template <typename DescriptionT = Aws::String>
82 void SetDescription(DescriptionT&& value) {
83 m_descriptionHasBeenSet = true;
84 m_description = std::forward<DescriptionT>(value);
85 }
86 template <typename DescriptionT = Aws::String>
88 SetDescription(std::forward<DescriptionT>(value));
89 return *this;
90 }
92
94
99 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
100 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
101 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
102 void SetTags(TagsT&& value) {
103 m_tagsHasBeenSet = true;
104 m_tags = std::forward<TagsT>(value);
105 }
106 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
108 SetTags(std::forward<TagsT>(value));
109 return *this;
110 }
111 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
112 CreateChannelGroupRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
113 m_tagsHasBeenSet = true;
114 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
115 return *this;
116 }
118 private:
119 Aws::String m_channelGroupName;
120 bool m_channelGroupNameHasBeenSet = false;
121
123 bool m_clientTokenHasBeenSet = true;
124
125 Aws::String m_description;
126 bool m_descriptionHasBeenSet = false;
127
129 bool m_tagsHasBeenSet = false;
130};
131
132} // namespace Model
133} // namespace mediapackagev2
134} // namespace Aws
static Aws::Utils::UUID PseudoRandomUUID()
AWS_MEDIAPACKAGEV2_API CreateChannelGroupRequest()=default
AWS_MEDIAPACKAGEV2_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateChannelGroupRequest & WithChannelGroupName(ChannelGroupNameT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateChannelGroupRequest & WithDescription(DescriptionT &&value)
CreateChannelGroupRequest & WithClientToken(ClientTokenT &&value)
AWS_MEDIAPACKAGEV2_API Aws::String SerializePayload() const override
CreateChannelGroupRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
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