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,78 @@
/**
* 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/ServiceSetting.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
{
/**
* <p>The result body of the ResetServiceSetting API action.</p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/ResetServiceSettingResult">AWS
* API Reference</a></p>
*/
class AWS_SSM_API ResetServiceSettingResult
{
public:
ResetServiceSettingResult();
ResetServiceSettingResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
ResetServiceSettingResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The current, effective service setting after calling the ResetServiceSetting
* API action.</p>
*/
inline const ServiceSetting& GetServiceSetting() const{ return m_serviceSetting; }
/**
* <p>The current, effective service setting after calling the ResetServiceSetting
* API action.</p>
*/
inline void SetServiceSetting(const ServiceSetting& value) { m_serviceSetting = value; }
/**
* <p>The current, effective service setting after calling the ResetServiceSetting
* API action.</p>
*/
inline void SetServiceSetting(ServiceSetting&& value) { m_serviceSetting = std::move(value); }
/**
* <p>The current, effective service setting after calling the ResetServiceSetting
* API action.</p>
*/
inline ResetServiceSettingResult& WithServiceSetting(const ServiceSetting& value) { SetServiceSetting(value); return *this;}
/**
* <p>The current, effective service setting after calling the ResetServiceSetting
* API action.</p>
*/
inline ResetServiceSettingResult& WithServiceSetting(ServiceSetting&& value) { SetServiceSetting(std::move(value)); return *this;}
private:
ServiceSetting m_serviceSetting;
};
} // namespace Model
} // namespace SSM
} // namespace Aws