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

The encryption key used to encrypt the custom terminologies used by Amazon * Translate.

See Also:

AWS * API Reference

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

The type of encryption key used by Amazon Translate to encrypt custom * terminologies.

*/ inline const EncryptionKeyType& GetType() const{ return m_type; } /** *

The type of encryption key used by Amazon Translate to encrypt custom * terminologies.

*/ inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } /** *

The type of encryption key used by Amazon Translate to encrypt custom * terminologies.

*/ inline void SetType(const EncryptionKeyType& value) { m_typeHasBeenSet = true; m_type = value; } /** *

The type of encryption key used by Amazon Translate to encrypt custom * terminologies.

*/ inline void SetType(EncryptionKeyType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } /** *

The type of encryption key used by Amazon Translate to encrypt custom * terminologies.

*/ inline EncryptionKey& WithType(const EncryptionKeyType& value) { SetType(value); return *this;} /** *

The type of encryption key used by Amazon Translate to encrypt custom * terminologies.

*/ inline EncryptionKey& WithType(EncryptionKeyType&& value) { SetType(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the encryption key being used to encrypt * the custom terminology.

*/ inline const Aws::String& GetId() const{ return m_id; } /** *

The Amazon Resource Name (ARN) of the encryption key being used to encrypt * the custom terminology.

*/ inline bool IdHasBeenSet() const { return m_idHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the encryption key being used to encrypt * the custom terminology.

*/ inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } /** *

The Amazon Resource Name (ARN) of the encryption key being used to encrypt * the custom terminology.

*/ inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } /** *

The Amazon Resource Name (ARN) of the encryption key being used to encrypt * the custom terminology.

*/ inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } /** *

The Amazon Resource Name (ARN) of the encryption key being used to encrypt * the custom terminology.

*/ inline EncryptionKey& WithId(const Aws::String& value) { SetId(value); return *this;} /** *

The Amazon Resource Name (ARN) of the encryption key being used to encrypt * the custom terminology.

*/ inline EncryptionKey& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the encryption key being used to encrypt * the custom terminology.

*/ inline EncryptionKey& WithId(const char* value) { SetId(value); return *this;} private: EncryptionKeyType m_type; bool m_typeHasBeenSet; Aws::String m_id; bool m_idHasBeenSet; }; } // namespace Model } // namespace Translate } // namespace Aws