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,100 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/ssm/SSM_EXPORTS.h>
#include <aws/ssm/model/ParameterTier.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace SSM
{
namespace Model
{
class AWS_SSM_API PutParameterResult
{
public:
PutParameterResult();
PutParameterResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
PutParameterResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The new version number of a parameter. If you edit a parameter value,
* Parameter Store automatically creates a new version and assigns this new version
* a unique ID. You can reference a parameter version ID in API actions or in
* Systems Manager documents (SSM documents). By default, if you don't specify a
* specific version, the system returns the latest parameter value when a parameter
* is called.</p>
*/
inline long long GetVersion() const{ return m_version; }
/**
* <p>The new version number of a parameter. If you edit a parameter value,
* Parameter Store automatically creates a new version and assigns this new version
* a unique ID. You can reference a parameter version ID in API actions or in
* Systems Manager documents (SSM documents). By default, if you don't specify a
* specific version, the system returns the latest parameter value when a parameter
* is called.</p>
*/
inline void SetVersion(long long value) { m_version = value; }
/**
* <p>The new version number of a parameter. If you edit a parameter value,
* Parameter Store automatically creates a new version and assigns this new version
* a unique ID. You can reference a parameter version ID in API actions or in
* Systems Manager documents (SSM documents). By default, if you don't specify a
* specific version, the system returns the latest parameter value when a parameter
* is called.</p>
*/
inline PutParameterResult& WithVersion(long long value) { SetVersion(value); return *this;}
/**
* <p>The tier assigned to the parameter.</p>
*/
inline const ParameterTier& GetTier() const{ return m_tier; }
/**
* <p>The tier assigned to the parameter.</p>
*/
inline void SetTier(const ParameterTier& value) { m_tier = value; }
/**
* <p>The tier assigned to the parameter.</p>
*/
inline void SetTier(ParameterTier&& value) { m_tier = std::move(value); }
/**
* <p>The tier assigned to the parameter.</p>
*/
inline PutParameterResult& WithTier(const ParameterTier& value) { SetTier(value); return *this;}
/**
* <p>The tier assigned to the parameter.</p>
*/
inline PutParameterResult& WithTier(ParameterTier&& value) { SetTier(std::move(value)); return *this;}
private:
long long m_version;
ParameterTier m_tier;
};
} // namespace Model
} // namespace SSM
} // namespace Aws