This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
pxz-hos-client-cpp-module/support/aws-sdk-cpp-master/aws-cpp-sdk-mediaconvert/include/aws/mediaconvert/model/InputDecryptionSettings.h

295 lines
13 KiB
C
Raw Normal View History

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/mediaconvert/MediaConvert_EXPORTS.h>
#include <aws/mediaconvert/model/DecryptionMode.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace MediaConvert
{
namespace Model
{
/**
* Settings for decrypting any input files that you encrypt before you upload them
* to Amazon S3. MediaConvert can decrypt files only when you use AWS Key
* Management Service (KMS) to encrypt the data key that you use to encrypt your
* content.<p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/mediaconvert-2017-08-29/InputDecryptionSettings">AWS
* API Reference</a></p>
*/
class AWS_MEDIACONVERT_API InputDecryptionSettings
{
public:
InputDecryptionSettings();
InputDecryptionSettings(Aws::Utils::Json::JsonView jsonValue);
InputDecryptionSettings& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* Specify the encryption mode that you used to encrypt your input files.
*/
inline const DecryptionMode& GetDecryptionMode() const{ return m_decryptionMode; }
/**
* Specify the encryption mode that you used to encrypt your input files.
*/
inline bool DecryptionModeHasBeenSet() const { return m_decryptionModeHasBeenSet; }
/**
* Specify the encryption mode that you used to encrypt your input files.
*/
inline void SetDecryptionMode(const DecryptionMode& value) { m_decryptionModeHasBeenSet = true; m_decryptionMode = value; }
/**
* Specify the encryption mode that you used to encrypt your input files.
*/
inline void SetDecryptionMode(DecryptionMode&& value) { m_decryptionModeHasBeenSet = true; m_decryptionMode = std::move(value); }
/**
* Specify the encryption mode that you used to encrypt your input files.
*/
inline InputDecryptionSettings& WithDecryptionMode(const DecryptionMode& value) { SetDecryptionMode(value); return *this;}
/**
* Specify the encryption mode that you used to encrypt your input files.
*/
inline InputDecryptionSettings& WithDecryptionMode(DecryptionMode&& value) { SetDecryptionMode(std::move(value)); return *this;}
/**
* Warning! Don't provide your encryption key in plaintext. Your job settings could
* be intercepted, making your encrypted content vulnerable. Specify the encrypted
* version of the data key that you used to encrypt your content. The data key must
* be encrypted by AWS Key Management Service (KMS). The key can be 128, 192, or
* 256 bits.
*/
inline const Aws::String& GetEncryptedDecryptionKey() const{ return m_encryptedDecryptionKey; }
/**
* Warning! Don't provide your encryption key in plaintext. Your job settings could
* be intercepted, making your encrypted content vulnerable. Specify the encrypted
* version of the data key that you used to encrypt your content. The data key must
* be encrypted by AWS Key Management Service (KMS). The key can be 128, 192, or
* 256 bits.
*/
inline bool EncryptedDecryptionKeyHasBeenSet() const { return m_encryptedDecryptionKeyHasBeenSet; }
/**
* Warning! Don't provide your encryption key in plaintext. Your job settings could
* be intercepted, making your encrypted content vulnerable. Specify the encrypted
* version of the data key that you used to encrypt your content. The data key must
* be encrypted by AWS Key Management Service (KMS). The key can be 128, 192, or
* 256 bits.
*/
inline void SetEncryptedDecryptionKey(const Aws::String& value) { m_encryptedDecryptionKeyHasBeenSet = true; m_encryptedDecryptionKey = value; }
/**
* Warning! Don't provide your encryption key in plaintext. Your job settings could
* be intercepted, making your encrypted content vulnerable. Specify the encrypted
* version of the data key that you used to encrypt your content. The data key must
* be encrypted by AWS Key Management Service (KMS). The key can be 128, 192, or
* 256 bits.
*/
inline void SetEncryptedDecryptionKey(Aws::String&& value) { m_encryptedDecryptionKeyHasBeenSet = true; m_encryptedDecryptionKey = std::move(value); }
/**
* Warning! Don't provide your encryption key in plaintext. Your job settings could
* be intercepted, making your encrypted content vulnerable. Specify the encrypted
* version of the data key that you used to encrypt your content. The data key must
* be encrypted by AWS Key Management Service (KMS). The key can be 128, 192, or
* 256 bits.
*/
inline void SetEncryptedDecryptionKey(const char* value) { m_encryptedDecryptionKeyHasBeenSet = true; m_encryptedDecryptionKey.assign(value); }
/**
* Warning! Don't provide your encryption key in plaintext. Your job settings could
* be intercepted, making your encrypted content vulnerable. Specify the encrypted
* version of the data key that you used to encrypt your content. The data key must
* be encrypted by AWS Key Management Service (KMS). The key can be 128, 192, or
* 256 bits.
*/
inline InputDecryptionSettings& WithEncryptedDecryptionKey(const Aws::String& value) { SetEncryptedDecryptionKey(value); return *this;}
/**
* Warning! Don't provide your encryption key in plaintext. Your job settings could
* be intercepted, making your encrypted content vulnerable. Specify the encrypted
* version of the data key that you used to encrypt your content. The data key must
* be encrypted by AWS Key Management Service (KMS). The key can be 128, 192, or
* 256 bits.
*/
inline InputDecryptionSettings& WithEncryptedDecryptionKey(Aws::String&& value) { SetEncryptedDecryptionKey(std::move(value)); return *this;}
/**
* Warning! Don't provide your encryption key in plaintext. Your job settings could
* be intercepted, making your encrypted content vulnerable. Specify the encrypted
* version of the data key that you used to encrypt your content. The data key must
* be encrypted by AWS Key Management Service (KMS). The key can be 128, 192, or
* 256 bits.
*/
inline InputDecryptionSettings& WithEncryptedDecryptionKey(const char* value) { SetEncryptedDecryptionKey(value); return *this;}
/**
* Specify the initialization vector that you used when you encrypted your content
* before uploading it to Amazon S3. You can use a 16-byte initialization vector
* with any encryption mode. Or, you can use a 12-byte initialization vector with
* GCM or CTR. MediaConvert accepts only initialization vectors that are
* base64-encoded.
*/
inline const Aws::String& GetInitializationVector() const{ return m_initializationVector; }
/**
* Specify the initialization vector that you used when you encrypted your content
* before uploading it to Amazon S3. You can use a 16-byte initialization vector
* with any encryption mode. Or, you can use a 12-byte initialization vector with
* GCM or CTR. MediaConvert accepts only initialization vectors that are
* base64-encoded.
*/
inline bool InitializationVectorHasBeenSet() const { return m_initializationVectorHasBeenSet; }
/**
* Specify the initialization vector that you used when you encrypted your content
* before uploading it to Amazon S3. You can use a 16-byte initialization vector
* with any encryption mode. Or, you can use a 12-byte initialization vector with
* GCM or CTR. MediaConvert accepts only initialization vectors that are
* base64-encoded.
*/
inline void SetInitializationVector(const Aws::String& value) { m_initializationVectorHasBeenSet = true; m_initializationVector = value; }
/**
* Specify the initialization vector that you used when you encrypted your content
* before uploading it to Amazon S3. You can use a 16-byte initialization vector
* with any encryption mode. Or, you can use a 12-byte initialization vector with
* GCM or CTR. MediaConvert accepts only initialization vectors that are
* base64-encoded.
*/
inline void SetInitializationVector(Aws::String&& value) { m_initializationVectorHasBeenSet = true; m_initializationVector = std::move(value); }
/**
* Specify the initialization vector that you used when you encrypted your content
* before uploading it to Amazon S3. You can use a 16-byte initialization vector
* with any encryption mode. Or, you can use a 12-byte initialization vector with
* GCM or CTR. MediaConvert accepts only initialization vectors that are
* base64-encoded.
*/
inline void SetInitializationVector(const char* value) { m_initializationVectorHasBeenSet = true; m_initializationVector.assign(value); }
/**
* Specify the initialization vector that you used when you encrypted your content
* before uploading it to Amazon S3. You can use a 16-byte initialization vector
* with any encryption mode. Or, you can use a 12-byte initialization vector with
* GCM or CTR. MediaConvert accepts only initialization vectors that are
* base64-encoded.
*/
inline InputDecryptionSettings& WithInitializationVector(const Aws::String& value) { SetInitializationVector(value); return *this;}
/**
* Specify the initialization vector that you used when you encrypted your content
* before uploading it to Amazon S3. You can use a 16-byte initialization vector
* with any encryption mode. Or, you can use a 12-byte initialization vector with
* GCM or CTR. MediaConvert accepts only initialization vectors that are
* base64-encoded.
*/
inline InputDecryptionSettings& WithInitializationVector(Aws::String&& value) { SetInitializationVector(std::move(value)); return *this;}
/**
* Specify the initialization vector that you used when you encrypted your content
* before uploading it to Amazon S3. You can use a 16-byte initialization vector
* with any encryption mode. Or, you can use a 12-byte initialization vector with
* GCM or CTR. MediaConvert accepts only initialization vectors that are
* base64-encoded.
*/
inline InputDecryptionSettings& WithInitializationVector(const char* value) { SetInitializationVector(value); return *this;}
/**
* Specify the AWS Region for AWS Key Management Service (KMS) that you used to
* encrypt your data key, if that Region is different from the one you are using
* for AWS Elemental MediaConvert.
*/
inline const Aws::String& GetKmsKeyRegion() const{ return m_kmsKeyRegion; }
/**
* Specify the AWS Region for AWS Key Management Service (KMS) that you used to
* encrypt your data key, if that Region is different from the one you are using
* for AWS Elemental MediaConvert.
*/
inline bool KmsKeyRegionHasBeenSet() const { return m_kmsKeyRegionHasBeenSet; }
/**
* Specify the AWS Region for AWS Key Management Service (KMS) that you used to
* encrypt your data key, if that Region is different from the one you are using
* for AWS Elemental MediaConvert.
*/
inline void SetKmsKeyRegion(const Aws::String& value) { m_kmsKeyRegionHasBeenSet = true; m_kmsKeyRegion = value; }
/**
* Specify the AWS Region for AWS Key Management Service (KMS) that you used to
* encrypt your data key, if that Region is different from the one you are using
* for AWS Elemental MediaConvert.
*/
inline void SetKmsKeyRegion(Aws::String&& value) { m_kmsKeyRegionHasBeenSet = true; m_kmsKeyRegion = std::move(value); }
/**
* Specify the AWS Region for AWS Key Management Service (KMS) that you used to
* encrypt your data key, if that Region is different from the one you are using
* for AWS Elemental MediaConvert.
*/
inline void SetKmsKeyRegion(const char* value) { m_kmsKeyRegionHasBeenSet = true; m_kmsKeyRegion.assign(value); }
/**
* Specify the AWS Region for AWS Key Management Service (KMS) that you used to
* encrypt your data key, if that Region is different from the one you are using
* for AWS Elemental MediaConvert.
*/
inline InputDecryptionSettings& WithKmsKeyRegion(const Aws::String& value) { SetKmsKeyRegion(value); return *this;}
/**
* Specify the AWS Region for AWS Key Management Service (KMS) that you used to
* encrypt your data key, if that Region is different from the one you are using
* for AWS Elemental MediaConvert.
*/
inline InputDecryptionSettings& WithKmsKeyRegion(Aws::String&& value) { SetKmsKeyRegion(std::move(value)); return *this;}
/**
* Specify the AWS Region for AWS Key Management Service (KMS) that you used to
* encrypt your data key, if that Region is different from the one you are using
* for AWS Elemental MediaConvert.
*/
inline InputDecryptionSettings& WithKmsKeyRegion(const char* value) { SetKmsKeyRegion(value); return *this;}
private:
DecryptionMode m_decryptionMode;
bool m_decryptionModeHasBeenSet;
Aws::String m_encryptedDecryptionKey;
bool m_encryptedDecryptionKeyHasBeenSet;
Aws::String m_initializationVector;
bool m_initializationVectorHasBeenSet;
Aws::String m_kmsKeyRegion;
bool m_kmsKeyRegionHasBeenSet;
};
} // namespace Model
} // namespace MediaConvert
} // namespace Aws