AWS SDK for C++  0.14.3
AWS SDK for C++
Captions.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 
40  {
41  public:
42  Captions();
43  Captions(const Aws::Utils::Json::JsonValue& jsonValue);
44  Captions& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
45  Aws::Utils::Json::JsonValue Jsonize() const;
46 
63  inline const Aws::String& GetMergePolicy() const{ return m_mergePolicy; }
64 
81  inline void SetMergePolicy(const Aws::String& value) { m_mergePolicyHasBeenSet = true; m_mergePolicy = value; }
82 
99  inline void SetMergePolicy(Aws::String&& value) { m_mergePolicyHasBeenSet = true; m_mergePolicy = value; }
100 
117  inline void SetMergePolicy(const char* value) { m_mergePolicyHasBeenSet = true; m_mergePolicy.assign(value); }
118 
135  inline Captions& WithMergePolicy(const Aws::String& value) { SetMergePolicy(value); return *this;}
136 
153  inline Captions& WithMergePolicy(Aws::String&& value) { SetMergePolicy(value); return *this;}
154 
171  inline Captions& WithMergePolicy(const char* value) { SetMergePolicy(value); return *this;}
172 
178  inline const Aws::Vector<CaptionSource>& GetCaptionSources() const{ return m_captionSources; }
179 
185  inline void SetCaptionSources(const Aws::Vector<CaptionSource>& value) { m_captionSourcesHasBeenSet = true; m_captionSources = value; }
186 
192  inline void SetCaptionSources(Aws::Vector<CaptionSource>&& value) { m_captionSourcesHasBeenSet = true; m_captionSources = value; }
193 
199  inline Captions& WithCaptionSources(const Aws::Vector<CaptionSource>& value) { SetCaptionSources(value); return *this;}
200 
206  inline Captions& WithCaptionSources(Aws::Vector<CaptionSource>&& value) { SetCaptionSources(value); return *this;}
207 
213  inline Captions& AddCaptionSources(const CaptionSource& value) { m_captionSourcesHasBeenSet = true; m_captionSources.push_back(value); return *this; }
214 
220  inline Captions& AddCaptionSources(CaptionSource&& value) { m_captionSourcesHasBeenSet = true; m_captionSources.push_back(value); return *this; }
221 
226  inline const Aws::Vector<CaptionFormat>& GetCaptionFormats() const{ return m_captionFormats; }
227 
232  inline void SetCaptionFormats(const Aws::Vector<CaptionFormat>& value) { m_captionFormatsHasBeenSet = true; m_captionFormats = value; }
233 
238  inline void SetCaptionFormats(Aws::Vector<CaptionFormat>&& value) { m_captionFormatsHasBeenSet = true; m_captionFormats = value; }
239 
244  inline Captions& WithCaptionFormats(const Aws::Vector<CaptionFormat>& value) { SetCaptionFormats(value); return *this;}
245 
250  inline Captions& WithCaptionFormats(Aws::Vector<CaptionFormat>&& value) { SetCaptionFormats(value); return *this;}
251 
256  inline Captions& AddCaptionFormats(const CaptionFormat& value) { m_captionFormatsHasBeenSet = true; m_captionFormats.push_back(value); return *this; }
257 
262  inline Captions& AddCaptionFormats(CaptionFormat&& value) { m_captionFormatsHasBeenSet = true; m_captionFormats.push_back(value); return *this; }
263 
264  private:
265  Aws::String m_mergePolicy;
266  bool m_mergePolicyHasBeenSet;
267  Aws::Vector<CaptionSource> m_captionSources;
268  bool m_captionSourcesHasBeenSet;
269  Aws::Vector<CaptionFormat> m_captionFormats;
270  bool m_captionFormatsHasBeenSet;
271  };
272 
273 } // namespace Model
274 } // namespace ElasticTranscoder
275 } // namespace Aws
Captions & WithMergePolicy(Aws::String &&value)
Definition: Captions.h:153
Captions & WithCaptionFormats(const Aws::Vector< CaptionFormat > &value)
Definition: Captions.h:244
void SetCaptionFormats(Aws::Vector< CaptionFormat > &&value)
Definition: Captions.h:238
void SetMergePolicy(Aws::String &&value)
Definition: Captions.h:99
Captions & AddCaptionSources(const CaptionSource &value)
Definition: Captions.h:213
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
void SetMergePolicy(const char *value)
Definition: Captions.h:117
void SetCaptionSources(Aws::Vector< CaptionSource > &&value)
Definition: Captions.h:192
void SetCaptionFormats(const Aws::Vector< CaptionFormat > &value)
Definition: Captions.h:232
const Aws::String & GetMergePolicy() const
Definition: Captions.h:63
Captions & AddCaptionFormats(const CaptionFormat &value)
Definition: Captions.h:256
Captions & AddCaptionFormats(CaptionFormat &&value)
Definition: Captions.h:262
Captions & WithMergePolicy(const Aws::String &value)
Definition: Captions.h:135
const Aws::Vector< CaptionSource > & GetCaptionSources() const
Definition: Captions.h:178
Captions & WithCaptionSources(const Aws::Vector< CaptionSource > &value)
Definition: Captions.h:199
Captions & AddCaptionSources(CaptionSource &&value)
Definition: Captions.h:220
Captions & WithCaptionSources(Aws::Vector< CaptionSource > &&value)
Definition: Captions.h:206
#define AWS_ELASTICTRANSCODER_API
Captions & WithMergePolicy(const char *value)
Definition: Captions.h:171
Captions & WithCaptionFormats(Aws::Vector< CaptionFormat > &&value)
Definition: Captions.h:250
const Aws::Vector< CaptionFormat > & GetCaptionFormats() const
Definition: Captions.h:226
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetMergePolicy(const Aws::String &value)
Definition: Captions.h:81
JSON (JavaScript Object Notation).
void SetCaptionSources(const Aws::Vector< CaptionSource > &value)
Definition: Captions.h:185