/** * 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 this object.

See Also:

AWS * API Reference

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

The type of encryption key used by Amazon Translate to encrypt this * object.

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

The type of encryption key used by Amazon Translate to encrypt this * object.

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

The type of encryption key used by Amazon Translate to encrypt this * object.

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

The type of encryption key used by Amazon Translate to encrypt this * object.

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

The type of encryption key used by Amazon Translate to encrypt this * object.

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

The type of encryption key used by Amazon Translate to encrypt this * object.

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

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

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

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

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

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

*/ 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 * this object.

*/ 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 * this object.

*/ 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 * this object.

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

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

*/ 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 * this object.

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