AWS SDK for C++  0.14.3
AWS SDK for C++
HlsContentProtection.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
18 
19 namespace Aws
20 {
21 namespace Utils
22 {
23 namespace Json
24 {
25  class JsonValue;
26 } // namespace Json
27 } // namespace Utils
28 namespace ElasticTranscoder
29 {
30 namespace Model
31 {
32 
38  {
39  public:
42  HlsContentProtection& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
43  Aws::Utils::Json::JsonValue Jsonize() const;
44 
50  inline const Aws::String& GetMethod() const{ return m_method; }
51 
57  inline void SetMethod(const Aws::String& value) { m_methodHasBeenSet = true; m_method = value; }
58 
64  inline void SetMethod(Aws::String&& value) { m_methodHasBeenSet = true; m_method = value; }
65 
71  inline void SetMethod(const char* value) { m_methodHasBeenSet = true; m_method.assign(value); }
72 
78  inline HlsContentProtection& WithMethod(const Aws::String& value) { SetMethod(value); return *this;}
79 
85  inline HlsContentProtection& WithMethod(Aws::String&& value) { SetMethod(value); return *this;}
86 
92  inline HlsContentProtection& WithMethod(const char* value) { SetMethod(value); return *this;}
93 
101  inline const Aws::String& GetKey() const{ return m_key; }
102 
110  inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; }
111 
119  inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = value; }
120 
128  inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); }
129 
137  inline HlsContentProtection& WithKey(const Aws::String& value) { SetKey(value); return *this;}
138 
146  inline HlsContentProtection& WithKey(Aws::String&& value) { SetKey(value); return *this;}
147 
155  inline HlsContentProtection& WithKey(const char* value) { SetKey(value); return *this;}
156 
165  inline const Aws::String& GetKeyMd5() const{ return m_keyMd5; }
166 
175  inline void SetKeyMd5(const Aws::String& value) { m_keyMd5HasBeenSet = true; m_keyMd5 = value; }
176 
185  inline void SetKeyMd5(Aws::String&& value) { m_keyMd5HasBeenSet = true; m_keyMd5 = value; }
186 
195  inline void SetKeyMd5(const char* value) { m_keyMd5HasBeenSet = true; m_keyMd5.assign(value); }
196 
205  inline HlsContentProtection& WithKeyMd5(const Aws::String& value) { SetKeyMd5(value); return *this;}
206 
215  inline HlsContentProtection& WithKeyMd5(Aws::String&& value) { SetKeyMd5(value); return *this;}
216 
225  inline HlsContentProtection& WithKeyMd5(const char* value) { SetKeyMd5(value); return *this;}
226 
234  inline const Aws::String& GetInitializationVector() const{ return m_initializationVector; }
235 
243  inline void SetInitializationVector(const Aws::String& value) { m_initializationVectorHasBeenSet = true; m_initializationVector = value; }
244 
252  inline void SetInitializationVector(Aws::String&& value) { m_initializationVectorHasBeenSet = true; m_initializationVector = value; }
253 
261  inline void SetInitializationVector(const char* value) { m_initializationVectorHasBeenSet = true; m_initializationVector.assign(value); }
262 
270  inline HlsContentProtection& WithInitializationVector(const Aws::String& value) { SetInitializationVector(value); return *this;}
271 
279  inline HlsContentProtection& WithInitializationVector(Aws::String&& value) { SetInitializationVector(value); return *this;}
280 
288  inline HlsContentProtection& WithInitializationVector(const char* value) { SetInitializationVector(value); return *this;}
289 
295  inline const Aws::String& GetLicenseAcquisitionUrl() const{ return m_licenseAcquisitionUrl; }
296 
302  inline void SetLicenseAcquisitionUrl(const Aws::String& value) { m_licenseAcquisitionUrlHasBeenSet = true; m_licenseAcquisitionUrl = value; }
303 
309  inline void SetLicenseAcquisitionUrl(Aws::String&& value) { m_licenseAcquisitionUrlHasBeenSet = true; m_licenseAcquisitionUrl = value; }
310 
316  inline void SetLicenseAcquisitionUrl(const char* value) { m_licenseAcquisitionUrlHasBeenSet = true; m_licenseAcquisitionUrl.assign(value); }
317 
323  inline HlsContentProtection& WithLicenseAcquisitionUrl(const Aws::String& value) { SetLicenseAcquisitionUrl(value); return *this;}
324 
330  inline HlsContentProtection& WithLicenseAcquisitionUrl(Aws::String&& value) { SetLicenseAcquisitionUrl(value); return *this;}
331 
337  inline HlsContentProtection& WithLicenseAcquisitionUrl(const char* value) { SetLicenseAcquisitionUrl(value); return *this;}
338 
345  inline const Aws::String& GetKeyStoragePolicy() const{ return m_keyStoragePolicy; }
346 
353  inline void SetKeyStoragePolicy(const Aws::String& value) { m_keyStoragePolicyHasBeenSet = true; m_keyStoragePolicy = value; }
354 
361  inline void SetKeyStoragePolicy(Aws::String&& value) { m_keyStoragePolicyHasBeenSet = true; m_keyStoragePolicy = value; }
362 
369  inline void SetKeyStoragePolicy(const char* value) { m_keyStoragePolicyHasBeenSet = true; m_keyStoragePolicy.assign(value); }
370 
377  inline HlsContentProtection& WithKeyStoragePolicy(const Aws::String& value) { SetKeyStoragePolicy(value); return *this;}
378 
385  inline HlsContentProtection& WithKeyStoragePolicy(Aws::String&& value) { SetKeyStoragePolicy(value); return *this;}
386 
393  inline HlsContentProtection& WithKeyStoragePolicy(const char* value) { SetKeyStoragePolicy(value); return *this;}
394 
395  private:
396  Aws::String m_method;
397  bool m_methodHasBeenSet;
398  Aws::String m_key;
399  bool m_keyHasBeenSet;
400  Aws::String m_keyMd5;
401  bool m_keyMd5HasBeenSet;
402  Aws::String m_initializationVector;
403  bool m_initializationVectorHasBeenSet;
404  Aws::String m_licenseAcquisitionUrl;
405  bool m_licenseAcquisitionUrlHasBeenSet;
406  Aws::String m_keyStoragePolicy;
407  bool m_keyStoragePolicyHasBeenSet;
408  };
409 
410 } // namespace Model
411 } // namespace ElasticTranscoder
412 } // namespace Aws
HlsContentProtection & WithMethod(const Aws::String &value)
HlsContentProtection & WithKey(const char *value)
HlsContentProtection & WithKeyMd5(const char *value)
HlsContentProtection & WithKeyStoragePolicy(Aws::String &&value)
HlsContentProtection & WithMethod(Aws::String &&value)
HlsContentProtection & WithLicenseAcquisitionUrl(Aws::String &&value)
HlsContentProtection & WithInitializationVector(Aws::String &&value)
HlsContentProtection & WithKeyMd5(Aws::String &&value)
HlsContentProtection & WithLicenseAcquisitionUrl(const Aws::String &value)
HlsContentProtection & WithLicenseAcquisitionUrl(const char *value)
HlsContentProtection & WithKeyMd5(const Aws::String &value)
HlsContentProtection & WithMethod(const char *value)
HlsContentProtection & WithInitializationVector(const Aws::String &value)
HlsContentProtection & WithKey(Aws::String &&value)
HlsContentProtection & WithKeyStoragePolicy(const Aws::String &value)
#define AWS_ELASTICTRANSCODER_API
HlsContentProtection & WithKeyStoragePolicy(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
HlsContentProtection & WithKey(const Aws::String &value)
HlsContentProtection & WithInitializationVector(const char *value)
JSON (JavaScript Object Notation).