AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateChannelRequest.h
1
6#pragma once
7#include <aws/mediapackagev2/Mediapackagev2_EXPORTS.h>
8#include <aws/mediapackagev2/Mediapackagev2Request.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/mediapackagev2/model/InputType.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 mediapackagev2
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_MEDIAPACKAGEV2_API CreateChannelRequest();
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 "CreateChannel"; }
34
35 AWS_MEDIAPACKAGEV2_API Aws::String SerializePayload() const override;
36
37 AWS_MEDIAPACKAGEV2_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
38
39
41
46 inline const Aws::String& GetChannelGroupName() const{ return m_channelGroupName; }
47 inline bool ChannelGroupNameHasBeenSet() const { return m_channelGroupNameHasBeenSet; }
48 inline void SetChannelGroupName(const Aws::String& value) { m_channelGroupNameHasBeenSet = true; m_channelGroupName = value; }
49 inline void SetChannelGroupName(Aws::String&& value) { m_channelGroupNameHasBeenSet = true; m_channelGroupName = std::move(value); }
50 inline void SetChannelGroupName(const char* value) { m_channelGroupNameHasBeenSet = true; m_channelGroupName.assign(value); }
51 inline CreateChannelRequest& WithChannelGroupName(const Aws::String& value) { SetChannelGroupName(value); return *this;}
52 inline CreateChannelRequest& WithChannelGroupName(Aws::String&& value) { SetChannelGroupName(std::move(value)); return *this;}
53 inline CreateChannelRequest& WithChannelGroupName(const char* value) { SetChannelGroupName(value); return *this;}
55
57
62 inline const Aws::String& GetChannelName() const{ return m_channelName; }
63 inline bool ChannelNameHasBeenSet() const { return m_channelNameHasBeenSet; }
64 inline void SetChannelName(const Aws::String& value) { m_channelNameHasBeenSet = true; m_channelName = value; }
65 inline void SetChannelName(Aws::String&& value) { m_channelNameHasBeenSet = true; m_channelName = std::move(value); }
66 inline void SetChannelName(const char* value) { m_channelNameHasBeenSet = true; m_channelName.assign(value); }
67 inline CreateChannelRequest& WithChannelName(const Aws::String& value) { SetChannelName(value); return *this;}
68 inline CreateChannelRequest& WithChannelName(Aws::String&& value) { SetChannelName(std::move(value)); return *this;}
69 inline CreateChannelRequest& WithChannelName(const char* value) { SetChannelName(value); return *this;}
71
73
77 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
78 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
79 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
80 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
81 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
82 inline CreateChannelRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
83 inline CreateChannelRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
84 inline CreateChannelRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
86
88
97 inline const InputType& GetInputType() const{ return m_inputType; }
98 inline bool InputTypeHasBeenSet() const { return m_inputTypeHasBeenSet; }
99 inline void SetInputType(const InputType& value) { m_inputTypeHasBeenSet = true; m_inputType = value; }
100 inline void SetInputType(InputType&& value) { m_inputTypeHasBeenSet = true; m_inputType = std::move(value); }
101 inline CreateChannelRequest& WithInputType(const InputType& value) { SetInputType(value); return *this;}
102 inline CreateChannelRequest& WithInputType(InputType&& value) { SetInputType(std::move(value)); return *this;}
104
106
109 inline const Aws::String& GetDescription() const{ return m_description; }
110 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
111 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
112 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
113 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
114 inline CreateChannelRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
115 inline CreateChannelRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
116 inline CreateChannelRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
118
120
125 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
126 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
127 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
128 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
129 inline CreateChannelRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
130 inline CreateChannelRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
131 inline CreateChannelRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
132 inline CreateChannelRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
133 inline CreateChannelRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
134 inline CreateChannelRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
135 inline CreateChannelRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
136 inline CreateChannelRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
137 inline CreateChannelRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
139 private:
140
141 Aws::String m_channelGroupName;
142 bool m_channelGroupNameHasBeenSet = false;
143
144 Aws::String m_channelName;
145 bool m_channelNameHasBeenSet = false;
146
147 Aws::String m_clientToken;
148 bool m_clientTokenHasBeenSet = false;
149
150 InputType m_inputType;
151 bool m_inputTypeHasBeenSet = false;
152
153 Aws::String m_description;
154 bool m_descriptionHasBeenSet = false;
155
157 bool m_tagsHasBeenSet = false;
158 };
159
160} // namespace Model
161} // namespace mediapackagev2
162} // namespace Aws
CreateChannelRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
AWS_MEDIAPACKAGEV2_API Aws::String SerializePayload() const override
CreateChannelRequest & AddTags(const char *key, Aws::String &&value)
CreateChannelRequest & AddTags(Aws::String &&key, const char *value)
CreateChannelRequest & WithDescription(Aws::String &&value)
CreateChannelRequest & AddTags(const char *key, const char *value)
CreateChannelRequest & WithChannelGroupName(const char *value)
CreateChannelRequest & AddTags(Aws::String &&key, Aws::String &&value)
CreateChannelRequest & WithInputType(const InputType &value)
CreateChannelRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateChannelRequest & WithDescription(const char *value)
CreateChannelRequest & WithChannelGroupName(const Aws::String &value)
CreateChannelRequest & AddTags(const Aws::String &key, Aws::String &&value)
CreateChannelRequest & WithInputType(InputType &&value)
CreateChannelRequest & WithDescription(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
CreateChannelRequest & AddTags(const Aws::String &key, const Aws::String &value)
CreateChannelRequest & AddTags(Aws::String &&key, const Aws::String &value)
CreateChannelRequest & WithChannelName(const char *value)
CreateChannelRequest & WithClientToken(const Aws::String &value)
CreateChannelRequest & WithClientToken(Aws::String &&value)
CreateChannelRequest & WithChannelName(Aws::String &&value)
CreateChannelRequest & WithClientToken(const char *value)
CreateChannelRequest & WithChannelName(const Aws::String &value)
AWS_MEDIAPACKAGEV2_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateChannelRequest & WithChannelGroupName(Aws::String &&value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &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