AWS SDK for C++  1.9.158
AWS SDK for C++
CreatePresetRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace MediaConvert
17 {
18 namespace Model
19 {
20 
24  {
25  public:
27 
28  // Service request name is the Operation name which will send this request out,
29  // each operation should has unique request name, so that we can get operation's name from this request.
30  // Note: this is not true for response, multiple operations may have the same response name,
31  // so we can not get operation's name from response.
32  inline virtual const char* GetServiceRequestName() const override { return "CreatePreset"; }
33 
34  Aws::String SerializePayload() const override;
35 
36 
40  inline const Aws::String& GetCategory() const{ return m_category; }
41 
45  inline bool CategoryHasBeenSet() const { return m_categoryHasBeenSet; }
46 
50  inline void SetCategory(const Aws::String& value) { m_categoryHasBeenSet = true; m_category = value; }
51 
55  inline void SetCategory(Aws::String&& value) { m_categoryHasBeenSet = true; m_category = std::move(value); }
56 
60  inline void SetCategory(const char* value) { m_categoryHasBeenSet = true; m_category.assign(value); }
61 
65  inline CreatePresetRequest& WithCategory(const Aws::String& value) { SetCategory(value); return *this;}
66 
70  inline CreatePresetRequest& WithCategory(Aws::String&& value) { SetCategory(std::move(value)); return *this;}
71 
75  inline CreatePresetRequest& WithCategory(const char* value) { SetCategory(value); return *this;}
76 
77 
81  inline const Aws::String& GetDescription() const{ return m_description; }
82 
86  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
87 
91  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
92 
96  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
97 
101  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
102 
106  inline CreatePresetRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
107 
111  inline CreatePresetRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
112 
116  inline CreatePresetRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
117 
118 
122  inline const Aws::String& GetName() const{ return m_name; }
123 
127  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
128 
132  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
133 
137  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
138 
142  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
143 
147  inline CreatePresetRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
148 
152  inline CreatePresetRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
153 
157  inline CreatePresetRequest& WithName(const char* value) { SetName(value); return *this;}
158 
159 
163  inline const PresetSettings& GetSettings() const{ return m_settings; }
164 
168  inline bool SettingsHasBeenSet() const { return m_settingsHasBeenSet; }
169 
173  inline void SetSettings(const PresetSettings& value) { m_settingsHasBeenSet = true; m_settings = value; }
174 
178  inline void SetSettings(PresetSettings&& value) { m_settingsHasBeenSet = true; m_settings = std::move(value); }
179 
183  inline CreatePresetRequest& WithSettings(const PresetSettings& value) { SetSettings(value); return *this;}
184 
188  inline CreatePresetRequest& WithSettings(PresetSettings&& value) { SetSettings(std::move(value)); return *this;}
189 
190 
195  inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
196 
201  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
202 
207  inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
208 
213  inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
214 
219  inline CreatePresetRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
220 
225  inline CreatePresetRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
226 
231  inline CreatePresetRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
232 
237  inline CreatePresetRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
238 
243  inline CreatePresetRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
244 
249  inline CreatePresetRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
250 
255  inline CreatePresetRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
256 
261  inline CreatePresetRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
262 
267  inline CreatePresetRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
268 
269  private:
270 
271  Aws::String m_category;
272  bool m_categoryHasBeenSet;
273 
274  Aws::String m_description;
275  bool m_descriptionHasBeenSet;
276 
277  Aws::String m_name;
278  bool m_nameHasBeenSet;
279 
280  PresetSettings m_settings;
281  bool m_settingsHasBeenSet;
282 
284  bool m_tagsHasBeenSet;
285  };
286 
287 } // namespace Model
288 } // namespace MediaConvert
289 } // namespace Aws
Aws::MediaConvert::Model::CreatePresetRequest::SetName
void SetName(Aws::String &&value)
Definition: CreatePresetRequest.h:137
PresetSettings.h
Aws::MediaConvert::Model::CreatePresetRequest::CategoryHasBeenSet
bool CategoryHasBeenSet() const
Definition: CreatePresetRequest.h:45
Aws::MediaConvert::Model::CreatePresetRequest::SetSettings
void SetSettings(PresetSettings &&value)
Definition: CreatePresetRequest.h:178
Aws::MediaConvert::Model::CreatePresetRequest::CreatePresetRequest
CreatePresetRequest()
Aws::MediaConvert::Model::CreatePresetRequest::AddTags
CreatePresetRequest & AddTags(const char *key, Aws::String &&value)
Definition: CreatePresetRequest.h:255
Aws::MediaConvert::Model::CreatePresetRequest::SetCategory
void SetCategory(const Aws::String &value)
Definition: CreatePresetRequest.h:50
Aws::MediaConvert::Model::CreatePresetRequest::SettingsHasBeenSet
bool SettingsHasBeenSet() const
Definition: CreatePresetRequest.h:168
Aws::MediaConvert::Model::CreatePresetRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreatePresetRequest.h:32
Aws::MediaConvert::Model::CreatePresetRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::MediaConvert::Model::CreatePresetRequest::WithTags
CreatePresetRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition: CreatePresetRequest.h:225
Aws::MediaConvert::Model::CreatePresetRequest::WithSettings
CreatePresetRequest & WithSettings(const PresetSettings &value)
Definition: CreatePresetRequest.h:183
MediaConvertRequest.h
MediaConvert_EXPORTS.h
AWS_MEDIACONVERT_API
#define AWS_MEDIACONVERT_API
Definition: MediaConvert_EXPORTS.h:28
Aws::MediaConvert::Model::CreatePresetRequest::SetTags
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition: CreatePresetRequest.h:207
Aws::MediaConvert::Model::CreatePresetRequest::WithDescription
CreatePresetRequest & WithDescription(const char *value)
Definition: CreatePresetRequest.h:116
Aws::MediaConvert::Model::CreatePresetRequest::AddTags
CreatePresetRequest & AddTags(Aws::String &&key, const Aws::String &value)
Definition: CreatePresetRequest.h:237
Aws::MediaConvert::Model::CreatePresetRequest::GetName
const Aws::String & GetName() const
Definition: CreatePresetRequest.h:122
Aws::MediaConvert::Model::CreatePresetRequest::SetTags
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition: CreatePresetRequest.h:213
Aws::MediaConvert::Model::CreatePresetRequest::SetCategory
void SetCategory(const char *value)
Definition: CreatePresetRequest.h:60
Aws::MediaConvert::Model::CreatePresetRequest::WithTags
CreatePresetRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition: CreatePresetRequest.h:219
Aws::MediaConvert::Model::CreatePresetRequest::AddTags
CreatePresetRequest & AddTags(const Aws::String &key, const Aws::String &value)
Definition: CreatePresetRequest.h:231
Aws::MediaConvert::Model::CreatePresetRequest::SetDescription
void SetDescription(const char *value)
Definition: CreatePresetRequest.h:101
Aws::MediaConvert::MediaConvertRequest
Definition: MediaConvertRequest.h:17
Aws::MediaConvert::Model::CreatePresetRequest::AddTags
CreatePresetRequest & AddTags(Aws::String &&key, Aws::String &&value)
Definition: CreatePresetRequest.h:249
Aws::MediaConvert::Model::CreatePresetRequest::SetDescription
void SetDescription(Aws::String &&value)
Definition: CreatePresetRequest.h:96
Aws::MediaConvert::Model::CreatePresetRequest::WithName
CreatePresetRequest & WithName(Aws::String &&value)
Definition: CreatePresetRequest.h:152
Aws::MediaConvert::Model::CreatePresetRequest::AddTags
CreatePresetRequest & AddTags(Aws::String &&key, const char *value)
Definition: CreatePresetRequest.h:261
Aws::MediaConvert::Model::CreatePresetRequest::SetName
void SetName(const Aws::String &value)
Definition: CreatePresetRequest.h:132
Aws::MediaConvert::Model::CreatePresetRequest::AddTags
CreatePresetRequest & AddTags(const Aws::String &key, Aws::String &&value)
Definition: CreatePresetRequest.h:243
Aws::MediaConvert::Model::CreatePresetRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: CreatePresetRequest.h:201
Aws::MediaConvert::Model::CreatePresetRequest::WithSettings
CreatePresetRequest & WithSettings(PresetSettings &&value)
Definition: CreatePresetRequest.h:188
Aws::MediaConvert::Model::CreatePresetRequest::DescriptionHasBeenSet
bool DescriptionHasBeenSet() const
Definition: CreatePresetRequest.h:86
Aws::MediaConvert::Model::CreatePresetRequest::WithCategory
CreatePresetRequest & WithCategory(const char *value)
Definition: CreatePresetRequest.h:75
Aws::MediaConvert::Model::CreatePresetRequest::SetName
void SetName(const char *value)
Definition: CreatePresetRequest.h:142
Aws::MediaConvert::Model::PresetSettings
Definition: PresetSettings.h:36
AWSString.h
Aws::MediaConvert::Model::CreatePresetRequest::GetSettings
const PresetSettings & GetSettings() const
Definition: CreatePresetRequest.h:163
Aws::MediaConvert::Model::CreatePresetRequest::WithDescription
CreatePresetRequest & WithDescription(const Aws::String &value)
Definition: CreatePresetRequest.h:106
Aws::MediaConvert::Model::CreatePresetRequest
Definition: CreatePresetRequest.h:24
Aws::MediaConvert::Model::CreatePresetRequest::WithCategory
CreatePresetRequest & WithCategory(Aws::String &&value)
Definition: CreatePresetRequest.h:70
Aws::MediaConvert::Model::CreatePresetRequest::WithCategory
CreatePresetRequest & WithCategory(const Aws::String &value)
Definition: CreatePresetRequest.h:65
Aws::MediaConvert::Model::CreatePresetRequest::WithName
CreatePresetRequest & WithName(const char *value)
Definition: CreatePresetRequest.h:157
Aws
Definition: AccessManagementClient.h:15
Aws::MediaConvert::Model::CreatePresetRequest::SetDescription
void SetDescription(const Aws::String &value)
Definition: CreatePresetRequest.h:91
Aws::MediaConvert::Model::CreatePresetRequest::WithDescription
CreatePresetRequest & WithDescription(Aws::String &&value)
Definition: CreatePresetRequest.h:111
Aws::MediaConvert::Model::CreatePresetRequest::GetDescription
const Aws::String & GetDescription() const
Definition: CreatePresetRequest.h:81
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::MediaConvert::Model::CreatePresetRequest::NameHasBeenSet
bool NameHasBeenSet() const
Definition: CreatePresetRequest.h:127
Aws::MediaConvert::Model::CreatePresetRequest::SetCategory
void SetCategory(Aws::String &&value)
Definition: CreatePresetRequest.h:55
Aws::MediaConvert::Model::CreatePresetRequest::GetCategory
const Aws::String & GetCategory() const
Definition: CreatePresetRequest.h:40
AWSMap.h
Aws::MediaConvert::Model::CreatePresetRequest::SetSettings
void SetSettings(const PresetSettings &value)
Definition: CreatePresetRequest.h:173
Aws::MediaConvert::Model::CreatePresetRequest::AddTags
CreatePresetRequest & AddTags(const char *key, const char *value)
Definition: CreatePresetRequest.h:267
Aws::Map
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19
Aws::MediaConvert::Model::CreatePresetRequest::GetTags
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Definition: CreatePresetRequest.h:195
Aws::MediaConvert::Model::CreatePresetRequest::WithName
CreatePresetRequest & WithName(const Aws::String &value)
Definition: CreatePresetRequest.h:147