AWS SDK for C++  0.14.3
AWS SDK for C++
CreatePresetRequest.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
22 
23 namespace Aws
24 {
25 namespace ElasticTranscoder
26 {
27 namespace Model
28 {
29 
34  {
35  public:
37  Aws::String SerializePayload() const override;
38 
43  inline const Aws::String& GetName() const{ return m_name; }
44 
49  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
50 
55  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = value; }
56 
61  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
62 
67  inline CreatePresetRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
68 
73  inline CreatePresetRequest& WithName(Aws::String&& value) { SetName(value); return *this;}
74 
79  inline CreatePresetRequest& WithName(const char* value) { SetName(value); return *this;}
80 
84  inline const Aws::String& GetDescription() const{ return m_description; }
85 
89  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
90 
94  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = value; }
95 
99  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
100 
104  inline CreatePresetRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
105 
109  inline CreatePresetRequest& WithDescription(Aws::String&& value) { SetDescription(value); return *this;}
110 
114  inline CreatePresetRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
115 
122  inline const Aws::String& GetContainer() const{ return m_container; }
123 
130  inline void SetContainer(const Aws::String& value) { m_containerHasBeenSet = true; m_container = value; }
131 
138  inline void SetContainer(Aws::String&& value) { m_containerHasBeenSet = true; m_container = value; }
139 
146  inline void SetContainer(const char* value) { m_containerHasBeenSet = true; m_container.assign(value); }
147 
154  inline CreatePresetRequest& WithContainer(const Aws::String& value) { SetContainer(value); return *this;}
155 
162  inline CreatePresetRequest& WithContainer(Aws::String&& value) { SetContainer(value); return *this;}
163 
170  inline CreatePresetRequest& WithContainer(const char* value) { SetContainer(value); return *this;}
171 
175  inline const VideoParameters& GetVideo() const{ return m_video; }
176 
180  inline void SetVideo(const VideoParameters& value) { m_videoHasBeenSet = true; m_video = value; }
181 
185  inline void SetVideo(VideoParameters&& value) { m_videoHasBeenSet = true; m_video = value; }
186 
190  inline CreatePresetRequest& WithVideo(const VideoParameters& value) { SetVideo(value); return *this;}
191 
195  inline CreatePresetRequest& WithVideo(VideoParameters&& value) { SetVideo(value); return *this;}
196 
200  inline const AudioParameters& GetAudio() const{ return m_audio; }
201 
205  inline void SetAudio(const AudioParameters& value) { m_audioHasBeenSet = true; m_audio = value; }
206 
210  inline void SetAudio(AudioParameters&& value) { m_audioHasBeenSet = true; m_audio = value; }
211 
215  inline CreatePresetRequest& WithAudio(const AudioParameters& value) { SetAudio(value); return *this;}
216 
220  inline CreatePresetRequest& WithAudio(AudioParameters&& value) { SetAudio(value); return *this;}
221 
226  inline const Thumbnails& GetThumbnails() const{ return m_thumbnails; }
227 
232  inline void SetThumbnails(const Thumbnails& value) { m_thumbnailsHasBeenSet = true; m_thumbnails = value; }
233 
238  inline void SetThumbnails(Thumbnails&& value) { m_thumbnailsHasBeenSet = true; m_thumbnails = value; }
239 
244  inline CreatePresetRequest& WithThumbnails(const Thumbnails& value) { SetThumbnails(value); return *this;}
245 
250  inline CreatePresetRequest& WithThumbnails(Thumbnails&& value) { SetThumbnails(value); return *this;}
251 
252  private:
253  Aws::String m_name;
254  bool m_nameHasBeenSet;
255  Aws::String m_description;
256  bool m_descriptionHasBeenSet;
257  Aws::String m_container;
258  bool m_containerHasBeenSet;
259  VideoParameters m_video;
260  bool m_videoHasBeenSet;
261  AudioParameters m_audio;
262  bool m_audioHasBeenSet;
263  Thumbnails m_thumbnails;
264  bool m_thumbnailsHasBeenSet;
265  };
266 
267 } // namespace Model
268 } // namespace ElasticTranscoder
269 } // namespace Aws
CreatePresetRequest & WithThumbnails(const Thumbnails &value)
CreatePresetRequest & WithDescription(const char *value)
CreatePresetRequest & WithAudio(const AudioParameters &value)
CreatePresetRequest & WithAudio(AudioParameters &&value)
CreatePresetRequest & WithVideo(VideoParameters &&value)
CreatePresetRequest & WithContainer(const Aws::String &value)
CreatePresetRequest & WithContainer(const char *value)
CreatePresetRequest & WithVideo(const VideoParameters &value)
CreatePresetRequest & WithDescription(Aws::String &&value)
CreatePresetRequest & WithName(const Aws::String &value)
CreatePresetRequest & WithName(Aws::String &&value)
#define AWS_ELASTICTRANSCODER_API
CreatePresetRequest & WithThumbnails(Thumbnails &&value)
CreatePresetRequest & WithContainer(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
CreatePresetRequest & WithName(const char *value)
CreatePresetRequest & WithDescription(const Aws::String &value)
JSON (JavaScript Object Notation).