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,76 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/snowball/Snowball_EXPORTS.h>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace Snowball
{
namespace Model
{
class AWS_SNOWBALL_API GetSnowballUsageResult
{
public:
GetSnowballUsageResult();
GetSnowballUsageResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
GetSnowballUsageResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The service limit for number of Snowballs this account can have at once. The
* default service limit is 1 (one).</p>
*/
inline int GetSnowballLimit() const{ return m_snowballLimit; }
/**
* <p>The service limit for number of Snowballs this account can have at once. The
* default service limit is 1 (one).</p>
*/
inline void SetSnowballLimit(int value) { m_snowballLimit = value; }
/**
* <p>The service limit for number of Snowballs this account can have at once. The
* default service limit is 1 (one).</p>
*/
inline GetSnowballUsageResult& WithSnowballLimit(int value) { SetSnowballLimit(value); return *this;}
/**
* <p>The number of Snowballs that this account is currently using.</p>
*/
inline int GetSnowballsInUse() const{ return m_snowballsInUse; }
/**
* <p>The number of Snowballs that this account is currently using.</p>
*/
inline void SetSnowballsInUse(int value) { m_snowballsInUse = value; }
/**
* <p>The number of Snowballs that this account is currently using.</p>
*/
inline GetSnowballUsageResult& WithSnowballsInUse(int value) { SetSnowballsInUse(value); return *this;}
private:
int m_snowballLimit;
int m_snowballsInUse;
};
} // namespace Model
} // namespace Snowball
} // namespace Aws