/** * 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 UpdateAliasRequest : public PaymentCryptographyRequest { public: AWS_PAYMENTCRYPTOGRAPHY_API UpdateAliasRequest(); // 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 "UpdateAlias"; } AWS_PAYMENTCRYPTOGRAPHY_API Aws::String SerializePayload() const override; AWS_PAYMENTCRYPTOGRAPHY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The alias whose associated key is changing.

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

The alias whose associated key is changing.

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

The alias whose associated key is changing.

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

The alias whose associated key is changing.

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

The alias whose associated key is changing.

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

The alias whose associated key is changing.

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

The alias whose associated key is changing.

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

The alias whose associated key is changing.

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

The KeyARN for the key that you are updating or removing from * the alias.

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

The KeyARN for the key that you are updating or removing from * the alias.

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

The KeyARN for the key that you are updating or removing from * the alias.

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

The KeyARN for the key that you are updating or removing from * the alias.

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

The KeyARN for the key that you are updating or removing from * the alias.

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

The KeyARN for the key that you are updating or removing from * the alias.

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

The KeyARN for the key that you are updating or removing from * the alias.

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

The KeyARN for the key that you are updating or removing from * the alias.

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