/** * 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 RAM { namespace Model { /** */ class ReplacePermissionAssociationsRequest : public RAMRequest { public: AWS_RAM_API ReplacePermissionAssociationsRequest(); // 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 "ReplacePermissionAssociations"; } AWS_RAM_API Aws::String SerializePayload() const override; /** *

Specifies the Amazon * Resource Name (ARN) of the managed permission that you want to replace.

*/ inline const Aws::String& GetFromPermissionArn() const{ return m_fromPermissionArn; } /** *

Specifies the Amazon * Resource Name (ARN) of the managed permission that you want to replace.

*/ inline bool FromPermissionArnHasBeenSet() const { return m_fromPermissionArnHasBeenSet; } /** *

Specifies the Amazon * Resource Name (ARN) of the managed permission that you want to replace.

*/ inline void SetFromPermissionArn(const Aws::String& value) { m_fromPermissionArnHasBeenSet = true; m_fromPermissionArn = value; } /** *

Specifies the Amazon * Resource Name (ARN) of the managed permission that you want to replace.

*/ inline void SetFromPermissionArn(Aws::String&& value) { m_fromPermissionArnHasBeenSet = true; m_fromPermissionArn = std::move(value); } /** *

Specifies the Amazon * Resource Name (ARN) of the managed permission that you want to replace.

*/ inline void SetFromPermissionArn(const char* value) { m_fromPermissionArnHasBeenSet = true; m_fromPermissionArn.assign(value); } /** *

Specifies the Amazon * Resource Name (ARN) of the managed permission that you want to replace.

*/ inline ReplacePermissionAssociationsRequest& WithFromPermissionArn(const Aws::String& value) { SetFromPermissionArn(value); return *this;} /** *

Specifies the Amazon * Resource Name (ARN) of the managed permission that you want to replace.

*/ inline ReplacePermissionAssociationsRequest& WithFromPermissionArn(Aws::String&& value) { SetFromPermissionArn(std::move(value)); return *this;} /** *

Specifies the Amazon * Resource Name (ARN) of the managed permission that you want to replace.

*/ inline ReplacePermissionAssociationsRequest& WithFromPermissionArn(const char* value) { SetFromPermissionArn(value); return *this;} /** *

Specifies that you want to updated the permissions for only those resource * shares that use the specified version of the managed permission.

*/ inline int GetFromPermissionVersion() const{ return m_fromPermissionVersion; } /** *

Specifies that you want to updated the permissions for only those resource * shares that use the specified version of the managed permission.

*/ inline bool FromPermissionVersionHasBeenSet() const { return m_fromPermissionVersionHasBeenSet; } /** *

Specifies that you want to updated the permissions for only those resource * shares that use the specified version of the managed permission.

*/ inline void SetFromPermissionVersion(int value) { m_fromPermissionVersionHasBeenSet = true; m_fromPermissionVersion = value; } /** *

Specifies that you want to updated the permissions for only those resource * shares that use the specified version of the managed permission.

*/ inline ReplacePermissionAssociationsRequest& WithFromPermissionVersion(int value) { SetFromPermissionVersion(value); return *this;} /** *

Specifies the ARN of the managed permission that you want to associate with * resource shares in place of the one specified by fromPerssionArn * and fromPermissionVersion.

The operation always associates * the version that is currently the default for the specified managed * permission.

*/ inline const Aws::String& GetToPermissionArn() const{ return m_toPermissionArn; } /** *

Specifies the ARN of the managed permission that you want to associate with * resource shares in place of the one specified by fromPerssionArn * and fromPermissionVersion.

The operation always associates * the version that is currently the default for the specified managed * permission.

*/ inline bool ToPermissionArnHasBeenSet() const { return m_toPermissionArnHasBeenSet; } /** *

Specifies the ARN of the managed permission that you want to associate with * resource shares in place of the one specified by fromPerssionArn * and fromPermissionVersion.

The operation always associates * the version that is currently the default for the specified managed * permission.

*/ inline void SetToPermissionArn(const Aws::String& value) { m_toPermissionArnHasBeenSet = true; m_toPermissionArn = value; } /** *

Specifies the ARN of the managed permission that you want to associate with * resource shares in place of the one specified by fromPerssionArn * and fromPermissionVersion.

The operation always associates * the version that is currently the default for the specified managed * permission.

*/ inline void SetToPermissionArn(Aws::String&& value) { m_toPermissionArnHasBeenSet = true; m_toPermissionArn = std::move(value); } /** *

Specifies the ARN of the managed permission that you want to associate with * resource shares in place of the one specified by fromPerssionArn * and fromPermissionVersion.

The operation always associates * the version that is currently the default for the specified managed * permission.

*/ inline void SetToPermissionArn(const char* value) { m_toPermissionArnHasBeenSet = true; m_toPermissionArn.assign(value); } /** *

Specifies the ARN of the managed permission that you want to associate with * resource shares in place of the one specified by fromPerssionArn * and fromPermissionVersion.

The operation always associates * the version that is currently the default for the specified managed * permission.

*/ inline ReplacePermissionAssociationsRequest& WithToPermissionArn(const Aws::String& value) { SetToPermissionArn(value); return *this;} /** *

Specifies the ARN of the managed permission that you want to associate with * resource shares in place of the one specified by fromPerssionArn * and fromPermissionVersion.

The operation always associates * the version that is currently the default for the specified managed * permission.

*/ inline ReplacePermissionAssociationsRequest& WithToPermissionArn(Aws::String&& value) { SetToPermissionArn(std::move(value)); return *this;} /** *

Specifies the ARN of the managed permission that you want to associate with * resource shares in place of the one specified by fromPerssionArn * and fromPermissionVersion.

The operation always associates * the version that is currently the default for the specified managed * permission.

*/ inline ReplacePermissionAssociationsRequest& WithToPermissionArn(const char* value) { SetToPermissionArn(value); return *this;} /** *

Specifies a unique, case-sensitive identifier that you provide to ensure the * idempotency of the request. This lets you safely retry the request without * accidentally performing the same operation a second time. Passing the same value * to a later call to an operation requires that you also pass the same value for * all other parameters. We recommend that you use a UUID type of * value..

If you don't provide this value, then Amazon Web Services * generates a random one for you.

If you retry the operation with the same * ClientToken, but with different parameters, the retry fails with an * IdempotentParameterMismatch error.

*/ inline const Aws::String& GetClientToken() const{ return m_clientToken; } /** *

Specifies a unique, case-sensitive identifier that you provide to ensure the * idempotency of the request. This lets you safely retry the request without * accidentally performing the same operation a second time. Passing the same value * to a later call to an operation requires that you also pass the same value for * all other parameters. We recommend that you use a UUID type of * value..

If you don't provide this value, then Amazon Web Services * generates a random one for you.

If you retry the operation with the same * ClientToken, but with different parameters, the retry fails with an * IdempotentParameterMismatch error.

*/ inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; } /** *

Specifies a unique, case-sensitive identifier that you provide to ensure the * idempotency of the request. This lets you safely retry the request without * accidentally performing the same operation a second time. Passing the same value * to a later call to an operation requires that you also pass the same value for * all other parameters. We recommend that you use a UUID type of * value..

If you don't provide this value, then Amazon Web Services * generates a random one for you.

If you retry the operation with the same * ClientToken, but with different parameters, the retry fails with an * IdempotentParameterMismatch error.

*/ inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; } /** *

Specifies a unique, case-sensitive identifier that you provide to ensure the * idempotency of the request. This lets you safely retry the request without * accidentally performing the same operation a second time. Passing the same value * to a later call to an operation requires that you also pass the same value for * all other parameters. We recommend that you use a UUID type of * value..

If you don't provide this value, then Amazon Web Services * generates a random one for you.

If you retry the operation with the same * ClientToken, but with different parameters, the retry fails with an * IdempotentParameterMismatch error.

*/ inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); } /** *

Specifies a unique, case-sensitive identifier that you provide to ensure the * idempotency of the request. This lets you safely retry the request without * accidentally performing the same operation a second time. Passing the same value * to a later call to an operation requires that you also pass the same value for * all other parameters. We recommend that you use a UUID type of * value..

If you don't provide this value, then Amazon Web Services * generates a random one for you.

If you retry the operation with the same * ClientToken, but with different parameters, the retry fails with an * IdempotentParameterMismatch error.

*/ inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); } /** *

Specifies a unique, case-sensitive identifier that you provide to ensure the * idempotency of the request. This lets you safely retry the request without * accidentally performing the same operation a second time. Passing the same value * to a later call to an operation requires that you also pass the same value for * all other parameters. We recommend that you use a UUID type of * value..

If you don't provide this value, then Amazon Web Services * generates a random one for you.

If you retry the operation with the same * ClientToken, but with different parameters, the retry fails with an * IdempotentParameterMismatch error.

*/ inline ReplacePermissionAssociationsRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;} /** *

Specifies a unique, case-sensitive identifier that you provide to ensure the * idempotency of the request. This lets you safely retry the request without * accidentally performing the same operation a second time. Passing the same value * to a later call to an operation requires that you also pass the same value for * all other parameters. We recommend that you use a UUID type of * value..

If you don't provide this value, then Amazon Web Services * generates a random one for you.

If you retry the operation with the same * ClientToken, but with different parameters, the retry fails with an * IdempotentParameterMismatch error.

*/ inline ReplacePermissionAssociationsRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;} /** *

Specifies a unique, case-sensitive identifier that you provide to ensure the * idempotency of the request. This lets you safely retry the request without * accidentally performing the same operation a second time. Passing the same value * to a later call to an operation requires that you also pass the same value for * all other parameters. We recommend that you use a UUID type of * value..

If you don't provide this value, then Amazon Web Services * generates a random one for you.

If you retry the operation with the same * ClientToken, but with different parameters, the retry fails with an * IdempotentParameterMismatch error.

*/ inline ReplacePermissionAssociationsRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;} private: Aws::String m_fromPermissionArn; bool m_fromPermissionArnHasBeenSet = false; int m_fromPermissionVersion; bool m_fromPermissionVersionHasBeenSet = false; Aws::String m_toPermissionArn; bool m_toPermissionArnHasBeenSet = false; Aws::String m_clientToken; bool m_clientTokenHasBeenSet = false; }; } // namespace Model } // namespace RAM } // namespace Aws