feat(hos_client_create, hos_client_destory): 多次调用destory不会导致重复释放

This commit is contained in:
彭宣正
2020-12-14 17:24:58 +08:00
parent 505d529c32
commit 10b370e486
55976 changed files with 8544395 additions and 2 deletions

View File

@@ -0,0 +1,107 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/ram/RAM_EXPORTS.h>
#include <aws/ram/RAMRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace RAM
{
namespace Model
{
/**
*/
class AWS_RAM_API GetPermissionRequest : public RAMRequest
{
public:
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::String SerializePayload() const override;
/**
* <p>The ARN of the permission.</p>
*/
inline const Aws::String& GetPermissionArn() const{ return m_permissionArn; }
/**
* <p>The ARN of the permission.</p>
*/
inline bool PermissionArnHasBeenSet() const { return m_permissionArnHasBeenSet; }
/**
* <p>The ARN of the permission.</p>
*/
inline void SetPermissionArn(const Aws::String& value) { m_permissionArnHasBeenSet = true; m_permissionArn = value; }
/**
* <p>The ARN of the permission.</p>
*/
inline void SetPermissionArn(Aws::String&& value) { m_permissionArnHasBeenSet = true; m_permissionArn = std::move(value); }
/**
* <p>The ARN of the permission.</p>
*/
inline void SetPermissionArn(const char* value) { m_permissionArnHasBeenSet = true; m_permissionArn.assign(value); }
/**
* <p>The ARN of the permission.</p>
*/
inline GetPermissionRequest& WithPermissionArn(const Aws::String& value) { SetPermissionArn(value); return *this;}
/**
* <p>The ARN of the permission.</p>
*/
inline GetPermissionRequest& WithPermissionArn(Aws::String&& value) { SetPermissionArn(std::move(value)); return *this;}
/**
* <p>The ARN of the permission.</p>
*/
inline GetPermissionRequest& WithPermissionArn(const char* value) { SetPermissionArn(value); return *this;}
/**
* <p>The identifier for the version of the permission.</p>
*/
inline int GetPermissionVersion() const{ return m_permissionVersion; }
/**
* <p>The identifier for the version of the permission.</p>
*/
inline bool PermissionVersionHasBeenSet() const { return m_permissionVersionHasBeenSet; }
/**
* <p>The identifier for the version of the permission.</p>
*/
inline void SetPermissionVersion(int value) { m_permissionVersionHasBeenSet = true; m_permissionVersion = value; }
/**
* <p>The identifier for the version of the permission.</p>
*/
inline GetPermissionRequest& WithPermissionVersion(int value) { SetPermissionVersion(value); return *this;}
private:
Aws::String m_permissionArn;
bool m_permissionArnHasBeenSet;
int m_permissionVersion;
bool m_permissionVersionHasBeenSet;
};
} // namespace Model
} // namespace RAM
} // namespace Aws