AWS SDK for C++  0.12.9
AWS SDK for C++
Preset.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
21 
22 namespace Aws
23 {
24 namespace Utils
25 {
26 namespace Json
27 {
28  class JsonValue;
29 } // namespace Json
30 } // namespace Utils
31 namespace ElasticTranscoder
32 {
33 namespace Model
34 {
35 
45  {
46  public:
47  Preset();
48  Preset(const Aws::Utils::Json::JsonValue& jsonValue);
49  Preset& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
50  Aws::Utils::Json::JsonValue Jsonize() const;
51 
56  inline const Aws::String& GetId() const{ return m_id; }
57 
62  inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
63 
68  inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = value; }
69 
74  inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
75 
80  inline Preset& WithId(const Aws::String& value) { SetId(value); return *this;}
81 
86  inline Preset& WithId(Aws::String&& value) { SetId(value); return *this;}
87 
92  inline Preset& WithId(const char* value) { SetId(value); return *this;}
93 
97  inline const Aws::String& GetArn() const{ return m_arn; }
98 
102  inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
103 
107  inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = value; }
108 
112  inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
113 
117  inline Preset& WithArn(const Aws::String& value) { SetArn(value); return *this;}
118 
122  inline Preset& WithArn(Aws::String&& value) { SetArn(value); return *this;}
123 
127  inline Preset& WithArn(const char* value) { SetArn(value); return *this;}
128 
132  inline const Aws::String& GetName() const{ return m_name; }
133 
137  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
138 
142  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = value; }
143 
147  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
148 
152  inline Preset& WithName(const Aws::String& value) { SetName(value); return *this;}
153 
157  inline Preset& WithName(Aws::String&& value) { SetName(value); return *this;}
158 
162  inline Preset& WithName(const char* value) { SetName(value); return *this;}
163 
167  inline const Aws::String& GetDescription() const{ return m_description; }
168 
172  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
173 
177  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = value; }
178 
182  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
183 
187  inline Preset& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
188 
192  inline Preset& WithDescription(Aws::String&& value) { SetDescription(value); return *this;}
193 
197  inline Preset& WithDescription(const char* value) { SetDescription(value); return *this;}
198 
205  inline const Aws::String& GetContainer() const{ return m_container; }
206 
213  inline void SetContainer(const Aws::String& value) { m_containerHasBeenSet = true; m_container = value; }
214 
221  inline void SetContainer(Aws::String&& value) { m_containerHasBeenSet = true; m_container = value; }
222 
229  inline void SetContainer(const char* value) { m_containerHasBeenSet = true; m_container.assign(value); }
230 
237  inline Preset& WithContainer(const Aws::String& value) { SetContainer(value); return *this;}
238 
245  inline Preset& WithContainer(Aws::String&& value) { SetContainer(value); return *this;}
246 
253  inline Preset& WithContainer(const char* value) { SetContainer(value); return *this;}
254 
259  inline const AudioParameters& GetAudio() const{ return m_audio; }
260 
265  inline void SetAudio(const AudioParameters& value) { m_audioHasBeenSet = true; m_audio = value; }
266 
271  inline void SetAudio(AudioParameters&& value) { m_audioHasBeenSet = true; m_audio = value; }
272 
277  inline Preset& WithAudio(const AudioParameters& value) { SetAudio(value); return *this;}
278 
283  inline Preset& WithAudio(AudioParameters&& value) { SetAudio(value); return *this;}
284 
289  inline const VideoParameters& GetVideo() const{ return m_video; }
290 
295  inline void SetVideo(const VideoParameters& value) { m_videoHasBeenSet = true; m_video = value; }
296 
301  inline void SetVideo(VideoParameters&& value) { m_videoHasBeenSet = true; m_video = value; }
302 
307  inline Preset& WithVideo(const VideoParameters& value) { SetVideo(value); return *this;}
308 
313  inline Preset& WithVideo(VideoParameters&& value) { SetVideo(value); return *this;}
314 
319  inline const Thumbnails& GetThumbnails() const{ return m_thumbnails; }
320 
325  inline void SetThumbnails(const Thumbnails& value) { m_thumbnailsHasBeenSet = true; m_thumbnails = value; }
326 
331  inline void SetThumbnails(Thumbnails&& value) { m_thumbnailsHasBeenSet = true; m_thumbnails = value; }
332 
337  inline Preset& WithThumbnails(const Thumbnails& value) { SetThumbnails(value); return *this;}
338 
343  inline Preset& WithThumbnails(Thumbnails&& value) { SetThumbnails(value); return *this;}
344 
350  inline const Aws::String& GetType() const{ return m_type; }
351 
357  inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; }
358 
364  inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = value; }
365 
371  inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); }
372 
378  inline Preset& WithType(const Aws::String& value) { SetType(value); return *this;}
379 
385  inline Preset& WithType(Aws::String&& value) { SetType(value); return *this;}
386 
392  inline Preset& WithType(const char* value) { SetType(value); return *this;}
393 
394  private:
395  Aws::String m_id;
396  bool m_idHasBeenSet;
397  Aws::String m_arn;
398  bool m_arnHasBeenSet;
399  Aws::String m_name;
400  bool m_nameHasBeenSet;
401  Aws::String m_description;
402  bool m_descriptionHasBeenSet;
403  Aws::String m_container;
404  bool m_containerHasBeenSet;
405  AudioParameters m_audio;
406  bool m_audioHasBeenSet;
407  VideoParameters m_video;
408  bool m_videoHasBeenSet;
409  Thumbnails m_thumbnails;
410  bool m_thumbnailsHasBeenSet;
411  Aws::String m_type;
412  bool m_typeHasBeenSet;
413  };
414 
415 } // namespace Model
416 } // namespace ElasticTranscoder
417 } // namespace Aws
Preset & WithDescription(const Aws::String &value)
Definition: Preset.h:187
void SetArn(const Aws::String &value)
Definition: Preset.h:102
void SetDescription(Aws::String &&value)
Definition: Preset.h:177
Preset & WithAudio(AudioParameters &&value)
Definition: Preset.h:283
void SetVideo(VideoParameters &&value)
Definition: Preset.h:301
void SetThumbnails(Thumbnails &&value)
Definition: Preset.h:331
void SetContainer(const Aws::String &value)
Definition: Preset.h:213
const Aws::String & GetName() const
Definition: Preset.h:132
const Thumbnails & GetThumbnails() const
Definition: Preset.h:319
const Aws::String & GetId() const
Definition: Preset.h:56
Preset & WithType(Aws::String &&value)
Definition: Preset.h:385
void SetId(const char *value)
Definition: Preset.h:74
Preset & WithVideo(VideoParameters &&value)
Definition: Preset.h:313
Preset & WithName(const char *value)
Definition: Preset.h:162
Preset & WithDescription(Aws::String &&value)
Definition: Preset.h:192
Preset & WithId(Aws::String &&value)
Definition: Preset.h:86
Preset & WithName(Aws::String &&value)
Definition: Preset.h:157
Preset & WithId(const char *value)
Definition: Preset.h:92
void SetType(const Aws::String &value)
Definition: Preset.h:357
Preset & WithVideo(const VideoParameters &value)
Definition: Preset.h:307
void SetContainer(const char *value)
Definition: Preset.h:229
Preset & WithAudio(const AudioParameters &value)
Definition: Preset.h:277
void SetAudio(AudioParameters &&value)
Definition: Preset.h:271
Preset & WithContainer(const Aws::String &value)
Definition: Preset.h:237
const AudioParameters & GetAudio() const
Definition: Preset.h:259
void SetDescription(const Aws::String &value)
Definition: Preset.h:172
const Aws::String & GetType() const
Definition: Preset.h:350
void SetArn(const char *value)
Definition: Preset.h:112
Preset & WithName(const Aws::String &value)
Definition: Preset.h:152
void SetType(const char *value)
Definition: Preset.h:371
Preset & WithDescription(const char *value)
Definition: Preset.h:197
void SetArn(Aws::String &&value)
Definition: Preset.h:107
Preset & WithArn(const char *value)
Definition: Preset.h:127
Preset & WithThumbnails(Thumbnails &&value)
Definition: Preset.h:343
void SetAudio(const AudioParameters &value)
Definition: Preset.h:265
Preset & WithContainer(Aws::String &&value)
Definition: Preset.h:245
void SetName(const char *value)
Definition: Preset.h:147
void SetName(Aws::String &&value)
Definition: Preset.h:142
const VideoParameters & GetVideo() const
Definition: Preset.h:289
void SetType(Aws::String &&value)
Definition: Preset.h:364
void SetId(const Aws::String &value)
Definition: Preset.h:62
void SetVideo(const VideoParameters &value)
Definition: Preset.h:295
#define AWS_ELASTICTRANSCODER_API
Preset & WithType(const char *value)
Definition: Preset.h:392
const Aws::String & GetContainer() const
Definition: Preset.h:205
void SetDescription(const char *value)
Definition: Preset.h:182
void SetThumbnails(const Thumbnails &value)
Definition: Preset.h:325
Preset & WithType(const Aws::String &value)
Definition: Preset.h:378
Preset & WithId(const Aws::String &value)
Definition: Preset.h:80
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Preset & WithArn(Aws::String &&value)
Definition: Preset.h:122
Preset & WithContainer(const char *value)
Definition: Preset.h:253
void SetId(Aws::String &&value)
Definition: Preset.h:68
const Aws::String & GetDescription() const
Definition: Preset.h:167
void SetName(const Aws::String &value)
Definition: Preset.h:137
Preset & WithThumbnails(const Thumbnails &value)
Definition: Preset.h:337
Preset & WithArn(const Aws::String &value)
Definition: Preset.h:117
const Aws::String & GetArn() const
Definition: Preset.h:97
JSON (JavaScript Object Notation).
void SetContainer(Aws::String &&value)
Definition: Preset.h:221