/** * 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 PaymentCryptography { namespace Model { /** *

Contains information about an alias.

See Also:

AWS * API Reference

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

A friendly name that you can use to refer to a key. The value must begin with * alias/.

Do not include confidential or sensitive * information in this field. This field may be displayed in plaintext in * CloudTrail logs and other output.

*/ inline const Aws::String& GetAliasName() const{ return m_aliasName; } /** *

A friendly name that you can use to refer to a key. The value must begin with * alias/.

Do not include confidential or sensitive * information in this field. This field may be displayed in plaintext in * CloudTrail logs and other output.

*/ inline bool AliasNameHasBeenSet() const { return m_aliasNameHasBeenSet; } /** *

A friendly name that you can use to refer to a key. The value must begin with * alias/.

Do not include confidential or sensitive * information in this field. This field may be displayed in plaintext in * CloudTrail logs and other output.

*/ inline void SetAliasName(const Aws::String& value) { m_aliasNameHasBeenSet = true; m_aliasName = value; } /** *

A friendly name that you can use to refer to a key. The value must begin with * alias/.

Do not include confidential or sensitive * information in this field. This field may be displayed in plaintext in * CloudTrail logs and other output.

*/ inline void SetAliasName(Aws::String&& value) { m_aliasNameHasBeenSet = true; m_aliasName = std::move(value); } /** *

A friendly name that you can use to refer to a key. The value must begin with * alias/.

Do not include confidential or sensitive * information in this field. This field may be displayed in plaintext in * CloudTrail logs and other output.

*/ inline void SetAliasName(const char* value) { m_aliasNameHasBeenSet = true; m_aliasName.assign(value); } /** *

A friendly name that you can use to refer to a key. The value must begin with * alias/.

Do not include confidential or sensitive * information in this field. This field may be displayed in plaintext in * CloudTrail logs and other output.

*/ inline Alias& WithAliasName(const Aws::String& value) { SetAliasName(value); return *this;} /** *

A friendly name that you can use to refer to a key. The value must begin with * alias/.

Do not include confidential or sensitive * information in this field. This field may be displayed in plaintext in * CloudTrail logs and other output.

*/ inline Alias& WithAliasName(Aws::String&& value) { SetAliasName(std::move(value)); return *this;} /** *

A friendly name that you can use to refer to a key. The value must begin with * alias/.

Do not include confidential or sensitive * information in this field. This field may be displayed in plaintext in * CloudTrail logs and other output.

*/ inline Alias& WithAliasName(const char* value) { SetAliasName(value); return *this;} /** *

The KeyARN of the key associated with the alias.

*/ inline const Aws::String& GetKeyArn() const{ return m_keyArn; } /** *

The KeyARN of the key associated with the alias.

*/ inline bool KeyArnHasBeenSet() const { return m_keyArnHasBeenSet; } /** *

The KeyARN of the key associated with the alias.

*/ inline void SetKeyArn(const Aws::String& value) { m_keyArnHasBeenSet = true; m_keyArn = value; } /** *

The KeyARN of the key associated with the alias.

*/ inline void SetKeyArn(Aws::String&& value) { m_keyArnHasBeenSet = true; m_keyArn = std::move(value); } /** *

The KeyARN of the key associated with the alias.

*/ inline void SetKeyArn(const char* value) { m_keyArnHasBeenSet = true; m_keyArn.assign(value); } /** *

The KeyARN of the key associated with the alias.

*/ inline Alias& WithKeyArn(const Aws::String& value) { SetKeyArn(value); return *this;} /** *

The KeyARN of the key associated with the alias.

*/ inline Alias& WithKeyArn(Aws::String&& value) { SetKeyArn(std::move(value)); return *this;} /** *

The KeyARN of the key associated with the alias.

*/ inline Alias& WithKeyArn(const char* value) { SetKeyArn(value); return *this;} private: Aws::String m_aliasName; bool m_aliasNameHasBeenSet = false; Aws::String m_keyArn; bool m_keyArnHasBeenSet = false; }; } // namespace Model } // namespace PaymentCryptography } // namespace Aws