/** * 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 GetPermissionRequest : public RAMRequest { public: AWS_RAM_API GetPermissionRequest(); // 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 "GetPermission"; } AWS_RAM_API Aws::String SerializePayload() const override; /** *

Specifies the Amazon * Resource Name (ARN) of the permission whose contents you want to retrieve. * To find the ARN for a permission, use either the ListPermissions * operation or go to the Permissions * library page in the RAM console and then choose the name of the permission. * The ARN is displayed on the detail page.

*/ inline const Aws::String& GetPermissionArn() const{ return m_permissionArn; } /** *

Specifies the Amazon * Resource Name (ARN) of the permission whose contents you want to retrieve. * To find the ARN for a permission, use either the ListPermissions * operation or go to the Permissions * library page in the RAM console and then choose the name of the permission. * The ARN is displayed on the detail page.

*/ inline bool PermissionArnHasBeenSet() const { return m_permissionArnHasBeenSet; } /** *

Specifies the Amazon * Resource Name (ARN) of the permission whose contents you want to retrieve. * To find the ARN for a permission, use either the ListPermissions * operation or go to the Permissions * library page in the RAM console and then choose the name of the permission. * The ARN is displayed on the detail page.

*/ inline void SetPermissionArn(const Aws::String& value) { m_permissionArnHasBeenSet = true; m_permissionArn = value; } /** *

Specifies the Amazon * Resource Name (ARN) of the permission whose contents you want to retrieve. * To find the ARN for a permission, use either the ListPermissions * operation or go to the Permissions * library page in the RAM console and then choose the name of the permission. * The ARN is displayed on the detail page.

*/ inline void SetPermissionArn(Aws::String&& value) { m_permissionArnHasBeenSet = true; m_permissionArn = std::move(value); } /** *

Specifies the Amazon * Resource Name (ARN) of the permission whose contents you want to retrieve. * To find the ARN for a permission, use either the ListPermissions * operation or go to the Permissions * library page in the RAM console and then choose the name of the permission. * The ARN is displayed on the detail page.

*/ inline void SetPermissionArn(const char* value) { m_permissionArnHasBeenSet = true; m_permissionArn.assign(value); } /** *

Specifies the Amazon * Resource Name (ARN) of the permission whose contents you want to retrieve. * To find the ARN for a permission, use either the ListPermissions * operation or go to the Permissions * library page in the RAM console and then choose the name of the permission. * The ARN is displayed on the detail page.

*/ inline GetPermissionRequest& WithPermissionArn(const Aws::String& value) { SetPermissionArn(value); return *this;} /** *

Specifies the Amazon * Resource Name (ARN) of the permission whose contents you want to retrieve. * To find the ARN for a permission, use either the ListPermissions * operation or go to the Permissions * library page in the RAM console and then choose the name of the permission. * The ARN is displayed on the detail page.

*/ inline GetPermissionRequest& WithPermissionArn(Aws::String&& value) { SetPermissionArn(std::move(value)); return *this;} /** *

Specifies the Amazon * Resource Name (ARN) of the permission whose contents you want to retrieve. * To find the ARN for a permission, use either the ListPermissions * operation or go to the Permissions * library page in the RAM console and then choose the name of the permission. * The ARN is displayed on the detail page.

*/ inline GetPermissionRequest& WithPermissionArn(const char* value) { SetPermissionArn(value); return *this;} /** *

Specifies the version number of the RAM permission to retrieve. If you don't * specify this parameter, the operation retrieves the default version.

To * see the list of available versions, use ListPermissionVersions.

*/ inline int GetPermissionVersion() const{ return m_permissionVersion; } /** *

Specifies the version number of the RAM permission to retrieve. If you don't * specify this parameter, the operation retrieves the default version.

To * see the list of available versions, use ListPermissionVersions.

*/ inline bool PermissionVersionHasBeenSet() const { return m_permissionVersionHasBeenSet; } /** *

Specifies the version number of the RAM permission to retrieve. If you don't * specify this parameter, the operation retrieves the default version.

To * see the list of available versions, use ListPermissionVersions.

*/ inline void SetPermissionVersion(int value) { m_permissionVersionHasBeenSet = true; m_permissionVersion = value; } /** *

Specifies the version number of the RAM permission to retrieve. If you don't * specify this parameter, the operation retrieves the default version.

To * see the list of available versions, use ListPermissionVersions.

*/ inline GetPermissionRequest& WithPermissionVersion(int value) { SetPermissionVersion(value); return *this;} private: Aws::String m_permissionArn; bool m_permissionArnHasBeenSet = false; int m_permissionVersion; bool m_permissionVersionHasBeenSet = false; }; } // namespace Model } // namespace RAM } // namespace Aws