1 /**
2  * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3  * SPDX-License-Identifier: Apache-2.0.
4  */
5 
6 #pragma once
7 #include <aws/mediaconvert/MediaConvert_EXPORTS.h>
8 #include <aws/mediaconvert/MediaConvertRequest.h>
9 #include <aws/core/utils/memory/stl/AWSString.h>
10 #include <aws/mediaconvert/model/PresetSettings.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace MediaConvert
16 {
17 namespace Model
18 {
19 
20   /**
21    */
22   class AWS_MEDIACONVERT_API UpdatePresetRequest : public MediaConvertRequest
23   {
24   public:
25     UpdatePresetRequest();
26 
27     // Service request name is the Operation name which will send this request out,
28     // each operation should has unique request name, so that we can get operation's name from this request.
29     // Note: this is not true for response, multiple operations may have the same response name,
30     // so we can not get operation's name from response.
GetServiceRequestName()31     inline virtual const char* GetServiceRequestName() const override { return "UpdatePreset"; }
32 
33     Aws::String SerializePayload() const override;
34 
35 
36     /**
37      * The new category for the preset, if you are changing it.
38      */
GetCategory()39     inline const Aws::String& GetCategory() const{ return m_category; }
40 
41     /**
42      * The new category for the preset, if you are changing it.
43      */
CategoryHasBeenSet()44     inline bool CategoryHasBeenSet() const { return m_categoryHasBeenSet; }
45 
46     /**
47      * The new category for the preset, if you are changing it.
48      */
SetCategory(const Aws::String & value)49     inline void SetCategory(const Aws::String& value) { m_categoryHasBeenSet = true; m_category = value; }
50 
51     /**
52      * The new category for the preset, if you are changing it.
53      */
SetCategory(Aws::String && value)54     inline void SetCategory(Aws::String&& value) { m_categoryHasBeenSet = true; m_category = std::move(value); }
55 
56     /**
57      * The new category for the preset, if you are changing it.
58      */
SetCategory(const char * value)59     inline void SetCategory(const char* value) { m_categoryHasBeenSet = true; m_category.assign(value); }
60 
61     /**
62      * The new category for the preset, if you are changing it.
63      */
WithCategory(const Aws::String & value)64     inline UpdatePresetRequest& WithCategory(const Aws::String& value) { SetCategory(value); return *this;}
65 
66     /**
67      * The new category for the preset, if you are changing it.
68      */
WithCategory(Aws::String && value)69     inline UpdatePresetRequest& WithCategory(Aws::String&& value) { SetCategory(std::move(value)); return *this;}
70 
71     /**
72      * The new category for the preset, if you are changing it.
73      */
WithCategory(const char * value)74     inline UpdatePresetRequest& WithCategory(const char* value) { SetCategory(value); return *this;}
75 
76 
77     /**
78      * The new description for the preset, if you are changing it.
79      */
GetDescription()80     inline const Aws::String& GetDescription() const{ return m_description; }
81 
82     /**
83      * The new description for the preset, if you are changing it.
84      */
DescriptionHasBeenSet()85     inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
86 
87     /**
88      * The new description for the preset, if you are changing it.
89      */
SetDescription(const Aws::String & value)90     inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
91 
92     /**
93      * The new description for the preset, if you are changing it.
94      */
SetDescription(Aws::String && value)95     inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
96 
97     /**
98      * The new description for the preset, if you are changing it.
99      */
SetDescription(const char * value)100     inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
101 
102     /**
103      * The new description for the preset, if you are changing it.
104      */
WithDescription(const Aws::String & value)105     inline UpdatePresetRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
106 
107     /**
108      * The new description for the preset, if you are changing it.
109      */
WithDescription(Aws::String && value)110     inline UpdatePresetRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
111 
112     /**
113      * The new description for the preset, if you are changing it.
114      */
WithDescription(const char * value)115     inline UpdatePresetRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
116 
117 
118     /**
119      * The name of the preset you are modifying.
120      */
GetName()121     inline const Aws::String& GetName() const{ return m_name; }
122 
123     /**
124      * The name of the preset you are modifying.
125      */
NameHasBeenSet()126     inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
127 
128     /**
129      * The name of the preset you are modifying.
130      */
SetName(const Aws::String & value)131     inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
132 
133     /**
134      * The name of the preset you are modifying.
135      */
SetName(Aws::String && value)136     inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
137 
138     /**
139      * The name of the preset you are modifying.
140      */
SetName(const char * value)141     inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
142 
143     /**
144      * The name of the preset you are modifying.
145      */
WithName(const Aws::String & value)146     inline UpdatePresetRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
147 
148     /**
149      * The name of the preset you are modifying.
150      */
WithName(Aws::String && value)151     inline UpdatePresetRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
152 
153     /**
154      * The name of the preset you are modifying.
155      */
WithName(const char * value)156     inline UpdatePresetRequest& WithName(const char* value) { SetName(value); return *this;}
157 
158 
159     /**
160      * Settings for preset
161      */
GetSettings()162     inline const PresetSettings& GetSettings() const{ return m_settings; }
163 
164     /**
165      * Settings for preset
166      */
SettingsHasBeenSet()167     inline bool SettingsHasBeenSet() const { return m_settingsHasBeenSet; }
168 
169     /**
170      * Settings for preset
171      */
SetSettings(const PresetSettings & value)172     inline void SetSettings(const PresetSettings& value) { m_settingsHasBeenSet = true; m_settings = value; }
173 
174     /**
175      * Settings for preset
176      */
SetSettings(PresetSettings && value)177     inline void SetSettings(PresetSettings&& value) { m_settingsHasBeenSet = true; m_settings = std::move(value); }
178 
179     /**
180      * Settings for preset
181      */
WithSettings(const PresetSettings & value)182     inline UpdatePresetRequest& WithSettings(const PresetSettings& value) { SetSettings(value); return *this;}
183 
184     /**
185      * Settings for preset
186      */
WithSettings(PresetSettings && value)187     inline UpdatePresetRequest& WithSettings(PresetSettings&& value) { SetSettings(std::move(value)); return *this;}
188 
189   private:
190 
191     Aws::String m_category;
192     bool m_categoryHasBeenSet;
193 
194     Aws::String m_description;
195     bool m_descriptionHasBeenSet;
196 
197     Aws::String m_name;
198     bool m_nameHasBeenSet;
199 
200     PresetSettings m_settings;
201     bool m_settingsHasBeenSet;
202   };
203 
204 } // namespace Model
205 } // namespace MediaConvert
206 } // namespace Aws
207