AWS SDK for C++  0.12.9
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 
172  inline const Aws::String& GetPattern() const{ return m_pattern; }
173 
188  inline void SetPattern(const Aws::String& value) { m_patternHasBeenSet = true; m_pattern = value; }
189 
204  inline void SetPattern(Aws::String&& value) { m_patternHasBeenSet = true; m_pattern = value; }
205 
220  inline void SetPattern(const char* value) { m_patternHasBeenSet = true; m_pattern.assign(value); }
221 
236  inline CaptionFormat& WithPattern(const Aws::String& value) { SetPattern(value); return *this;}
237 
252  inline CaptionFormat& WithPattern(Aws::String&& value) { SetPattern(value); return *this;}
253 
268  inline CaptionFormat& WithPattern(const char* value) { SetPattern(value); return *this;}
269 
274  inline const Encryption& GetEncryption() const{ return m_encryption; }
275 
280  inline void SetEncryption(const Encryption& value) { m_encryptionHasBeenSet = true; m_encryption = value; }
281 
286  inline void SetEncryption(Encryption&& value) { m_encryptionHasBeenSet = true; m_encryption = value; }
287 
292  inline CaptionFormat& WithEncryption(const Encryption& value) { SetEncryption(value); return *this;}
293 
298  inline CaptionFormat& WithEncryption(Encryption&& value) { SetEncryption(value); return *this;}
299 
300  private:
301  Aws::String m_format;
302  bool m_formatHasBeenSet;
303  Aws::String m_pattern;
304  bool m_patternHasBeenSet;
305  Encryption m_encryption;
306  bool m_encryptionHasBeenSet;
307  };
308 
309 } // namespace Model
310 } // namespace ElasticTranscoder
311 } // 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)