AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
CreatePresetRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/mediaconvert/MediaConvertRequest.h>
10#include <aws/mediaconvert/MediaConvert_EXPORTS.h>
11#include <aws/mediaconvert/model/PresetSettings.h>
12
13#include <utility>
14
15namespace Aws {
16namespace MediaConvert {
17namespace Model {
18
22 public:
23 AWS_MEDIACONVERT_API CreatePresetRequest() = 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 "CreatePreset"; }
30
31 AWS_MEDIACONVERT_API Aws::String SerializePayload() const override;
32
34
37 inline const Aws::String& GetCategory() const { return m_category; }
38 inline bool CategoryHasBeenSet() const { return m_categoryHasBeenSet; }
39 template <typename CategoryT = Aws::String>
40 void SetCategory(CategoryT&& value) {
41 m_categoryHasBeenSet = true;
42 m_category = std::forward<CategoryT>(value);
43 }
44 template <typename CategoryT = Aws::String>
45 CreatePresetRequest& WithCategory(CategoryT&& value) {
46 SetCategory(std::forward<CategoryT>(value));
47 return *this;
48 }
50
52
55 inline const Aws::String& GetDescription() const { return m_description; }
56 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
57 template <typename DescriptionT = Aws::String>
58 void SetDescription(DescriptionT&& value) {
59 m_descriptionHasBeenSet = true;
60 m_description = std::forward<DescriptionT>(value);
61 }
62 template <typename DescriptionT = Aws::String>
63 CreatePresetRequest& WithDescription(DescriptionT&& value) {
64 SetDescription(std::forward<DescriptionT>(value));
65 return *this;
66 }
68
70
73 inline const Aws::String& GetName() const { return m_name; }
74 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
75 template <typename NameT = Aws::String>
76 void SetName(NameT&& value) {
77 m_nameHasBeenSet = true;
78 m_name = std::forward<NameT>(value);
79 }
80 template <typename NameT = Aws::String>
81 CreatePresetRequest& WithName(NameT&& value) {
82 SetName(std::forward<NameT>(value));
83 return *this;
84 }
86
88
91 inline const PresetSettings& GetSettings() const { return m_settings; }
92 inline bool SettingsHasBeenSet() const { return m_settingsHasBeenSet; }
93 template <typename SettingsT = PresetSettings>
94 void SetSettings(SettingsT&& value) {
95 m_settingsHasBeenSet = true;
96 m_settings = std::forward<SettingsT>(value);
97 }
98 template <typename SettingsT = PresetSettings>
99 CreatePresetRequest& WithSettings(SettingsT&& value) {
100 SetSettings(std::forward<SettingsT>(value));
101 return *this;
102 }
104
106
110 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
111 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
112 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
113 void SetTags(TagsT&& value) {
114 m_tagsHasBeenSet = true;
115 m_tags = std::forward<TagsT>(value);
116 }
117 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
119 SetTags(std::forward<TagsT>(value));
120 return *this;
121 }
122 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
123 CreatePresetRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
124 m_tagsHasBeenSet = true;
125 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
126 return *this;
127 }
129 private:
130 Aws::String m_category;
131
132 Aws::String m_description;
133
134 Aws::String m_name;
135
136 PresetSettings m_settings;
137
139 bool m_categoryHasBeenSet = false;
140 bool m_descriptionHasBeenSet = false;
141 bool m_nameHasBeenSet = false;
142 bool m_settingsHasBeenSet = false;
143 bool m_tagsHasBeenSet = false;
144};
145
146} // namespace Model
147} // namespace MediaConvert
148} // namespace Aws
virtual const char * GetServiceRequestName() const override
AWS_MEDIACONVERT_API CreatePresetRequest()=default
CreatePresetRequest & WithTags(TagsT &&value)
CreatePresetRequest & WithCategory(CategoryT &&value)
CreatePresetRequest & WithSettings(SettingsT &&value)
CreatePresetRequest & WithDescription(DescriptionT &&value)
CreatePresetRequest & WithName(NameT &&value)
CreatePresetRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
AWS_MEDIACONVERT_API Aws::String SerializePayload() const override
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