/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include A complex type that contains optional Amazon Web Services Key Management
* Service (KMS) encryption settings for your Network Firewall resources. Your data
* is encrypted by default with an Amazon Web Services owned key that Amazon Web
* Services owns and manages for you. You can use either the Amazon Web Services
* owned key, or provide your own customer managed key. To learn more about KMS
* encryption of your Network Firewall resources, see Encryption
* at rest with Amazon Web Services Key Managment Service in the Network
* Firewall Developer Guide.See Also:
AWS
* API Reference
The ID of the Amazon Web Services Key Management Service (KMS) customer * managed key. You can use any of the key identifiers that KMS supports, unless * you're using a key that's managed by another account. If you're using a key * managed by another account, then specify the key ARN. For more information, see * Key * ID in the Amazon Web Services KMS Developer Guide.
*/ inline const Aws::String& GetKeyId() const{ return m_keyId; } /** *The ID of the Amazon Web Services Key Management Service (KMS) customer * managed key. You can use any of the key identifiers that KMS supports, unless * you're using a key that's managed by another account. If you're using a key * managed by another account, then specify the key ARN. For more information, see * Key * ID in the Amazon Web Services KMS Developer Guide.
*/ inline bool KeyIdHasBeenSet() const { return m_keyIdHasBeenSet; } /** *The ID of the Amazon Web Services Key Management Service (KMS) customer * managed key. You can use any of the key identifiers that KMS supports, unless * you're using a key that's managed by another account. If you're using a key * managed by another account, then specify the key ARN. For more information, see * Key * ID in the Amazon Web Services KMS Developer Guide.
*/ inline void SetKeyId(const Aws::String& value) { m_keyIdHasBeenSet = true; m_keyId = value; } /** *The ID of the Amazon Web Services Key Management Service (KMS) customer * managed key. You can use any of the key identifiers that KMS supports, unless * you're using a key that's managed by another account. If you're using a key * managed by another account, then specify the key ARN. For more information, see * Key * ID in the Amazon Web Services KMS Developer Guide.
*/ inline void SetKeyId(Aws::String&& value) { m_keyIdHasBeenSet = true; m_keyId = std::move(value); } /** *The ID of the Amazon Web Services Key Management Service (KMS) customer * managed key. You can use any of the key identifiers that KMS supports, unless * you're using a key that's managed by another account. If you're using a key * managed by another account, then specify the key ARN. For more information, see * Key * ID in the Amazon Web Services KMS Developer Guide.
*/ inline void SetKeyId(const char* value) { m_keyIdHasBeenSet = true; m_keyId.assign(value); } /** *The ID of the Amazon Web Services Key Management Service (KMS) customer * managed key. You can use any of the key identifiers that KMS supports, unless * you're using a key that's managed by another account. If you're using a key * managed by another account, then specify the key ARN. For more information, see * Key * ID in the Amazon Web Services KMS Developer Guide.
*/ inline EncryptionConfiguration& WithKeyId(const Aws::String& value) { SetKeyId(value); return *this;} /** *The ID of the Amazon Web Services Key Management Service (KMS) customer * managed key. You can use any of the key identifiers that KMS supports, unless * you're using a key that's managed by another account. If you're using a key * managed by another account, then specify the key ARN. For more information, see * Key * ID in the Amazon Web Services KMS Developer Guide.
*/ inline EncryptionConfiguration& WithKeyId(Aws::String&& value) { SetKeyId(std::move(value)); return *this;} /** *The ID of the Amazon Web Services Key Management Service (KMS) customer * managed key. You can use any of the key identifiers that KMS supports, unless * you're using a key that's managed by another account. If you're using a key * managed by another account, then specify the key ARN. For more information, see * Key * ID in the Amazon Web Services KMS Developer Guide.
*/ inline EncryptionConfiguration& WithKeyId(const char* value) { SetKeyId(value); return *this;} /** *The type of Amazon Web Services KMS key to use for encryption of your Network * Firewall resources.
*/ inline const EncryptionType& GetType() const{ return m_type; } /** *The type of Amazon Web Services KMS key to use for encryption of your Network * Firewall resources.
*/ inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } /** *The type of Amazon Web Services KMS key to use for encryption of your Network * Firewall resources.
*/ inline void SetType(const EncryptionType& value) { m_typeHasBeenSet = true; m_type = value; } /** *The type of Amazon Web Services KMS key to use for encryption of your Network * Firewall resources.
*/ inline void SetType(EncryptionType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } /** *The type of Amazon Web Services KMS key to use for encryption of your Network * Firewall resources.
*/ inline EncryptionConfiguration& WithType(const EncryptionType& value) { SetType(value); return *this;} /** *The type of Amazon Web Services KMS key to use for encryption of your Network * Firewall resources.
*/ inline EncryptionConfiguration& WithType(EncryptionType&& value) { SetType(std::move(value)); return *this;} private: Aws::String m_keyId; bool m_keyIdHasBeenSet = false; EncryptionType m_type; bool m_typeHasBeenSet = false; }; } // namespace Model } // namespace NetworkFirewall } // namespace Aws