AWS SDK for C++  0.12.9
AWS SDK for C++
CaptionSource.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
19 
20 namespace Aws
21 {
22 namespace Utils
23 {
24 namespace Json
25 {
26  class JsonValue;
27 } // namespace Json
28 } // namespace Utils
29 namespace ElasticTranscoder
30 {
31 namespace Model
32 {
33 
39  {
40  public:
41  CaptionSource();
43  CaptionSource& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
44  Aws::Utils::Json::JsonValue Jsonize() const;
45 
50  inline const Aws::String& GetKey() const{ return m_key; }
51 
56  inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; }
57 
62  inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = value; }
63 
68  inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); }
69 
74  inline CaptionSource& WithKey(const Aws::String& value) { SetKey(value); return *this;}
75 
80  inline CaptionSource& WithKey(Aws::String&& value) { SetKey(value); return *this;}
81 
86  inline CaptionSource& WithKey(const char* value) { SetKey(value); return *this;}
87 
94  inline const Aws::String& GetLanguage() const{ return m_language; }
95 
102  inline void SetLanguage(const Aws::String& value) { m_languageHasBeenSet = true; m_language = value; }
103 
110  inline void SetLanguage(Aws::String&& value) { m_languageHasBeenSet = true; m_language = value; }
111 
118  inline void SetLanguage(const char* value) { m_languageHasBeenSet = true; m_language.assign(value); }
119 
126  inline CaptionSource& WithLanguage(const Aws::String& value) { SetLanguage(value); return *this;}
127 
134  inline CaptionSource& WithLanguage(Aws::String&& value) { SetLanguage(value); return *this;}
135 
142  inline CaptionSource& WithLanguage(const char* value) { SetLanguage(value); return *this;}
143 
150  inline const Aws::String& GetTimeOffset() const{ return m_timeOffset; }
151 
158  inline void SetTimeOffset(const Aws::String& value) { m_timeOffsetHasBeenSet = true; m_timeOffset = value; }
159 
166  inline void SetTimeOffset(Aws::String&& value) { m_timeOffsetHasBeenSet = true; m_timeOffset = value; }
167 
174  inline void SetTimeOffset(const char* value) { m_timeOffsetHasBeenSet = true; m_timeOffset.assign(value); }
175 
182  inline CaptionSource& WithTimeOffset(const Aws::String& value) { SetTimeOffset(value); return *this;}
183 
190  inline CaptionSource& WithTimeOffset(Aws::String&& value) { SetTimeOffset(value); return *this;}
191 
198  inline CaptionSource& WithTimeOffset(const char* value) { SetTimeOffset(value); return *this;}
199 
205  inline const Aws::String& GetLabel() const{ return m_label; }
206 
212  inline void SetLabel(const Aws::String& value) { m_labelHasBeenSet = true; m_label = value; }
213 
219  inline void SetLabel(Aws::String&& value) { m_labelHasBeenSet = true; m_label = value; }
220 
226  inline void SetLabel(const char* value) { m_labelHasBeenSet = true; m_label.assign(value); }
227 
233  inline CaptionSource& WithLabel(const Aws::String& value) { SetLabel(value); return *this;}
234 
240  inline CaptionSource& WithLabel(Aws::String&& value) { SetLabel(value); return *this;}
241 
247  inline CaptionSource& WithLabel(const char* value) { SetLabel(value); return *this;}
248 
253  inline const Encryption& GetEncryption() const{ return m_encryption; }
254 
259  inline void SetEncryption(const Encryption& value) { m_encryptionHasBeenSet = true; m_encryption = value; }
260 
265  inline void SetEncryption(Encryption&& value) { m_encryptionHasBeenSet = true; m_encryption = value; }
266 
271  inline CaptionSource& WithEncryption(const Encryption& value) { SetEncryption(value); return *this;}
272 
277  inline CaptionSource& WithEncryption(Encryption&& value) { SetEncryption(value); return *this;}
278 
279  private:
280  Aws::String m_key;
281  bool m_keyHasBeenSet;
282  Aws::String m_language;
283  bool m_languageHasBeenSet;
284  Aws::String m_timeOffset;
285  bool m_timeOffsetHasBeenSet;
286  Aws::String m_label;
287  bool m_labelHasBeenSet;
288  Encryption m_encryption;
289  bool m_encryptionHasBeenSet;
290  };
291 
292 } // namespace Model
293 } // namespace ElasticTranscoder
294 } // namespace Aws
const Aws::String & GetTimeOffset() const
void SetKey(const Aws::String &value)
Definition: CaptionSource.h:56
CaptionSource & WithKey(const Aws::String &value)
Definition: CaptionSource.h:74
CaptionSource & WithEncryption(const Encryption &value)
CaptionSource & WithLanguage(Aws::String &&value)
void SetLanguage(const Aws::String &value)
CaptionSource & WithTimeOffset(const Aws::String &value)
const Encryption & GetEncryption() const
const Aws::String & GetKey() const
Definition: CaptionSource.h:50
CaptionSource & WithTimeOffset(const char *value)
const Aws::String & GetLanguage() const
Definition: CaptionSource.h:94
const Aws::String & GetLabel() const
CaptionSource & WithLabel(const char *value)
CaptionSource & WithLabel(Aws::String &&value)
CaptionSource & WithKey(const char *value)
Definition: CaptionSource.h:86
void SetTimeOffset(const Aws::String &value)
CaptionSource & WithKey(Aws::String &&value)
Definition: CaptionSource.h:80
CaptionSource & WithLanguage(const Aws::String &value)
#define AWS_ELASTICTRANSCODER_API
void SetEncryption(const Encryption &value)
CaptionSource & WithLabel(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
CaptionSource & WithLanguage(const char *value)
CaptionSource & WithEncryption(Encryption &&value)
CaptionSource & WithTimeOffset(Aws::String &&value)
void SetLabel(const Aws::String &value)
JSON (JavaScript Object Notation).