AWS SDK for C++  0.14.3
AWS SDK for C++
CaptionFormat.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  CaptionFormat();
43  CaptionFormat& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
44  Aws::Utils::Json::JsonValue Jsonize() const;
45 
60  inline const Aws::String& GetFormat() const{ return m_format; }
61 
76  inline void SetFormat(const Aws::String& value) { m_formatHasBeenSet = true; m_format = value; }
77 
92  inline void SetFormat(Aws::String&& value) { m_formatHasBeenSet = true; m_format = value; }
93 
108  inline void SetFormat(const char* value) { m_formatHasBeenSet = true; m_format.assign(value); }
109 
124  inline CaptionFormat& WithFormat(const Aws::String& value) { SetFormat(value); return *this;}
125 
140  inline CaptionFormat& WithFormat(Aws::String&& value) { SetFormat(value); return *this;}
141 
156  inline CaptionFormat& WithFormat(const char* value) { SetFormat(value); return *this;}
157 
173  inline const Aws::String& GetPattern() const{ return m_pattern; }
174 
190  inline void SetPattern(const Aws::String& value) { m_patternHasBeenSet = true; m_pattern = value; }
191 
207  inline void SetPattern(Aws::String&& value) { m_patternHasBeenSet = true; m_pattern = value; }
208 
224  inline void SetPattern(const char* value) { m_patternHasBeenSet = true; m_pattern.assign(value); }
225 
241  inline CaptionFormat& WithPattern(const Aws::String& value) { SetPattern(value); return *this;}
242 
258  inline CaptionFormat& WithPattern(Aws::String&& value) { SetPattern(value); return *this;}
259 
275  inline CaptionFormat& WithPattern(const char* value) { SetPattern(value); return *this;}
276 
281  inline const Encryption& GetEncryption() const{ return m_encryption; }
282 
287  inline void SetEncryption(const Encryption& value) { m_encryptionHasBeenSet = true; m_encryption = value; }
288 
293  inline void SetEncryption(Encryption&& value) { m_encryptionHasBeenSet = true; m_encryption = value; }
294 
299  inline CaptionFormat& WithEncryption(const Encryption& value) { SetEncryption(value); return *this;}
300 
305  inline CaptionFormat& WithEncryption(Encryption&& value) { SetEncryption(value); return *this;}
306 
307  private:
308  Aws::String m_format;
309  bool m_formatHasBeenSet;
310  Aws::String m_pattern;
311  bool m_patternHasBeenSet;
312  Encryption m_encryption;
313  bool m_encryptionHasBeenSet;
314  };
315 
316 } // namespace Model
317 } // namespace ElasticTranscoder
318 } // namespace Aws
const Encryption & GetEncryption() const
CaptionFormat & WithPattern(const char *value)
const Aws::String & GetPattern() const
CaptionFormat & WithFormat(Aws::String &&value)
CaptionFormat & WithFormat(const Aws::String &value)
CaptionFormat & WithPattern(Aws::String &&value)
const Aws::String & GetFormat() const
Definition: CaptionFormat.h:60
void SetFormat(const Aws::String &value)
Definition: CaptionFormat.h:76
void SetPattern(const Aws::String &value)
#define AWS_ELASTICTRANSCODER_API
CaptionFormat & WithEncryption(const Encryption &value)
CaptionFormat & WithFormat(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
CaptionFormat & WithPattern(const Aws::String &value)
CaptionFormat & WithEncryption(Encryption &&value)
JSON (JavaScript Object Notation).
void SetEncryption(const Encryption &value)