/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include The parameters for encrypting content.See Also:
AWS
* API Reference
A 128-bit, 16-byte hex value represented by a 32-character string, used in * conjunction with the key for encrypting content. If you don't specify a value, * then MediaPackage creates the constant initialization vector (IV).
*/ inline const Aws::String& GetConstantInitializationVector() const{ return m_constantInitializationVector; } /** *A 128-bit, 16-byte hex value represented by a 32-character string, used in * conjunction with the key for encrypting content. If you don't specify a value, * then MediaPackage creates the constant initialization vector (IV).
*/ inline bool ConstantInitializationVectorHasBeenSet() const { return m_constantInitializationVectorHasBeenSet; } /** *A 128-bit, 16-byte hex value represented by a 32-character string, used in * conjunction with the key for encrypting content. If you don't specify a value, * then MediaPackage creates the constant initialization vector (IV).
*/ inline void SetConstantInitializationVector(const Aws::String& value) { m_constantInitializationVectorHasBeenSet = true; m_constantInitializationVector = value; } /** *A 128-bit, 16-byte hex value represented by a 32-character string, used in * conjunction with the key for encrypting content. If you don't specify a value, * then MediaPackage creates the constant initialization vector (IV).
*/ inline void SetConstantInitializationVector(Aws::String&& value) { m_constantInitializationVectorHasBeenSet = true; m_constantInitializationVector = std::move(value); } /** *A 128-bit, 16-byte hex value represented by a 32-character string, used in * conjunction with the key for encrypting content. If you don't specify a value, * then MediaPackage creates the constant initialization vector (IV).
*/ inline void SetConstantInitializationVector(const char* value) { m_constantInitializationVectorHasBeenSet = true; m_constantInitializationVector.assign(value); } /** *A 128-bit, 16-byte hex value represented by a 32-character string, used in * conjunction with the key for encrypting content. If you don't specify a value, * then MediaPackage creates the constant initialization vector (IV).
*/ inline Encryption& WithConstantInitializationVector(const Aws::String& value) { SetConstantInitializationVector(value); return *this;} /** *A 128-bit, 16-byte hex value represented by a 32-character string, used in * conjunction with the key for encrypting content. If you don't specify a value, * then MediaPackage creates the constant initialization vector (IV).
*/ inline Encryption& WithConstantInitializationVector(Aws::String&& value) { SetConstantInitializationVector(std::move(value)); return *this;} /** *A 128-bit, 16-byte hex value represented by a 32-character string, used in * conjunction with the key for encrypting content. If you don't specify a value, * then MediaPackage creates the constant initialization vector (IV).
*/ inline Encryption& WithConstantInitializationVector(const char* value) { SetConstantInitializationVector(value); return *this;} /** *The encryption method to use.
*/ inline const EncryptionMethod& GetEncryptionMethod() const{ return m_encryptionMethod; } /** *The encryption method to use.
*/ inline bool EncryptionMethodHasBeenSet() const { return m_encryptionMethodHasBeenSet; } /** *The encryption method to use.
*/ inline void SetEncryptionMethod(const EncryptionMethod& value) { m_encryptionMethodHasBeenSet = true; m_encryptionMethod = value; } /** *The encryption method to use.
*/ inline void SetEncryptionMethod(EncryptionMethod&& value) { m_encryptionMethodHasBeenSet = true; m_encryptionMethod = std::move(value); } /** *The encryption method to use.
*/ inline Encryption& WithEncryptionMethod(const EncryptionMethod& value) { SetEncryptionMethod(value); return *this;} /** *The encryption method to use.
*/ inline Encryption& WithEncryptionMethod(EncryptionMethod&& value) { SetEncryptionMethod(std::move(value)); return *this;} /** *The frequency (in seconds) of key changes for live workflows, in which * content is streamed real time. The service retrieves content keys before the * live content begins streaming, and then retrieves them as needed over the * lifetime of the workflow. By default, key rotation is set to 300 seconds (5 * minutes), the minimum rotation interval, which is equivalent to setting it to * 300. If you don't enter an interval, content keys aren't rotated.
The
* following example setting causes the service to rotate keys every thirty
* minutes: 1800
The frequency (in seconds) of key changes for live workflows, in which * content is streamed real time. The service retrieves content keys before the * live content begins streaming, and then retrieves them as needed over the * lifetime of the workflow. By default, key rotation is set to 300 seconds (5 * minutes), the minimum rotation interval, which is equivalent to setting it to * 300. If you don't enter an interval, content keys aren't rotated.
The
* following example setting causes the service to rotate keys every thirty
* minutes: 1800
The frequency (in seconds) of key changes for live workflows, in which * content is streamed real time. The service retrieves content keys before the * live content begins streaming, and then retrieves them as needed over the * lifetime of the workflow. By default, key rotation is set to 300 seconds (5 * minutes), the minimum rotation interval, which is equivalent to setting it to * 300. If you don't enter an interval, content keys aren't rotated.
The
* following example setting causes the service to rotate keys every thirty
* minutes: 1800
The frequency (in seconds) of key changes for live workflows, in which * content is streamed real time. The service retrieves content keys before the * live content begins streaming, and then retrieves them as needed over the * lifetime of the workflow. By default, key rotation is set to 300 seconds (5 * minutes), the minimum rotation interval, which is equivalent to setting it to * 300. If you don't enter an interval, content keys aren't rotated.
The
* following example setting causes the service to rotate keys every thirty
* minutes: 1800
The parameters for the SPEKE key provider.
*/ inline const SpekeKeyProvider& GetSpekeKeyProvider() const{ return m_spekeKeyProvider; } /** *The parameters for the SPEKE key provider.
*/ inline bool SpekeKeyProviderHasBeenSet() const { return m_spekeKeyProviderHasBeenSet; } /** *The parameters for the SPEKE key provider.
*/ inline void SetSpekeKeyProvider(const SpekeKeyProvider& value) { m_spekeKeyProviderHasBeenSet = true; m_spekeKeyProvider = value; } /** *The parameters for the SPEKE key provider.
*/ inline void SetSpekeKeyProvider(SpekeKeyProvider&& value) { m_spekeKeyProviderHasBeenSet = true; m_spekeKeyProvider = std::move(value); } /** *The parameters for the SPEKE key provider.
*/ inline Encryption& WithSpekeKeyProvider(const SpekeKeyProvider& value) { SetSpekeKeyProvider(value); return *this;} /** *The parameters for the SPEKE key provider.
*/ inline Encryption& WithSpekeKeyProvider(SpekeKeyProvider&& value) { SetSpekeKeyProvider(std::move(value)); return *this;} private: Aws::String m_constantInitializationVector; bool m_constantInitializationVectorHasBeenSet = false; EncryptionMethod m_encryptionMethod; bool m_encryptionMethodHasBeenSet = false; int m_keyRotationIntervalSeconds; bool m_keyRotationIntervalSecondsHasBeenSet = false; SpekeKeyProvider m_spekeKeyProvider; bool m_spekeKeyProviderHasBeenSet = false; }; } // namespace Model } // namespace mediapackagev2 } // namespace Aws