/** * 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 PaymentCryptography { namespace Model { /** */ class CreateAliasRequest : public PaymentCryptographyRequest { public: AWS_PAYMENTCRYPTOGRAPHY_API CreateAliasRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "CreateAlias"; } AWS_PAYMENTCRYPTOGRAPHY_API Aws::String SerializePayload() const override; AWS_PAYMENTCRYPTOGRAPHY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

A friendly name that you can use to refer a key. An alias must begin with * alias/ followed by a name, for example * alias/ExampleAlias. It can contain only alphanumeric characters, * forward slashes (/), underscores (_), and dashes (-).

Don't * 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 a key. An alias must begin with * alias/ followed by a name, for example * alias/ExampleAlias. It can contain only alphanumeric characters, * forward slashes (/), underscores (_), and dashes (-).

Don't * 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 a key. An alias must begin with * alias/ followed by a name, for example * alias/ExampleAlias. It can contain only alphanumeric characters, * forward slashes (/), underscores (_), and dashes (-).

Don't * 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 a key. An alias must begin with * alias/ followed by a name, for example * alias/ExampleAlias. It can contain only alphanumeric characters, * forward slashes (/), underscores (_), and dashes (-).

Don't * 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 a key. An alias must begin with * alias/ followed by a name, for example * alias/ExampleAlias. It can contain only alphanumeric characters, * forward slashes (/), underscores (_), and dashes (-).

Don't * 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 a key. An alias must begin with * alias/ followed by a name, for example * alias/ExampleAlias. It can contain only alphanumeric characters, * forward slashes (/), underscores (_), and dashes (-).

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

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

A friendly name that you can use to refer a key. An alias must begin with * alias/ followed by a name, for example * alias/ExampleAlias. It can contain only alphanumeric characters, * forward slashes (/), underscores (_), and dashes (-).

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

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

A friendly name that you can use to refer a key. An alias must begin with * alias/ followed by a name, for example * alias/ExampleAlias. It can contain only alphanumeric characters, * forward slashes (/), underscores (_), and dashes (-).

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

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

The KeyARN of the key to associate with the alias.

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

The KeyARN of the key to associate with the alias.

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

The KeyARN of the key to associate with the alias.

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

The KeyARN of the key to associate with the alias.

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

The KeyARN of the key to associate with the alias.

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

The KeyARN of the key to associate with the alias.

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

The KeyARN of the key to associate with the alias.

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

The KeyARN of the key to associate with the alias.

*/ inline CreateAliasRequest& 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