/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace kendra { namespace Model { /** *

Provides the identifier of the KMS key used to encrypt data indexed by Amazon * Kendra. Amazon Kendra doesn't support asymmetric keys.

See Also:

* AWS * API Reference

*/ class ServerSideEncryptionConfiguration { public: AWS_KENDRA_API ServerSideEncryptionConfiguration(); AWS_KENDRA_API ServerSideEncryptionConfiguration(Aws::Utils::Json::JsonView jsonValue); AWS_KENDRA_API ServerSideEncryptionConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_KENDRA_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The identifier of the KMS key. Amazon Kendra doesn't support asymmetric * keys.

*/ inline const Aws::String& GetKmsKeyId() const{ return m_kmsKeyId; } /** *

The identifier of the KMS key. Amazon Kendra doesn't support asymmetric * keys.

*/ inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; } /** *

The identifier of the KMS key. Amazon Kendra doesn't support asymmetric * keys.

*/ inline void SetKmsKeyId(const Aws::String& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = value; } /** *

The identifier of the KMS key. Amazon Kendra doesn't support asymmetric * keys.

*/ inline void SetKmsKeyId(Aws::String&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::move(value); } /** *

The identifier of the KMS key. Amazon Kendra doesn't support asymmetric * keys.

*/ inline void SetKmsKeyId(const char* value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId.assign(value); } /** *

The identifier of the KMS key. Amazon Kendra doesn't support asymmetric * keys.

*/ inline ServerSideEncryptionConfiguration& WithKmsKeyId(const Aws::String& value) { SetKmsKeyId(value); return *this;} /** *

The identifier of the KMS key. Amazon Kendra doesn't support asymmetric * keys.

*/ inline ServerSideEncryptionConfiguration& WithKmsKeyId(Aws::String&& value) { SetKmsKeyId(std::move(value)); return *this;} /** *

The identifier of the KMS key. Amazon Kendra doesn't support asymmetric * keys.

*/ inline ServerSideEncryptionConfiguration& WithKmsKeyId(const char* value) { SetKmsKeyId(value); return *this;} private: Aws::String m_kmsKeyId; bool m_kmsKeyIdHasBeenSet = false; }; } // namespace Model } // namespace kendra } // namespace Aws