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,82 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/waf/WAF_EXPORTS.h>
#include <aws/waf/model/GeoMatchSet.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace WAF
{
namespace Model
{
class AWS_WAF_API GetGeoMatchSetResult
{
public:
GetGeoMatchSetResult();
GetGeoMatchSetResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
GetGeoMatchSetResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>Information about the <a>GeoMatchSet</a> that you specified in the
* <code>GetGeoMatchSet</code> request. This includes the <code>Type</code>, which
* for a <code>GeoMatchContraint</code> is always <code>Country</code>, as well as
* the <code>Value</code>, which is the identifier for a specific country.</p>
*/
inline const GeoMatchSet& GetGeoMatchSet() const{ return m_geoMatchSet; }
/**
* <p>Information about the <a>GeoMatchSet</a> that you specified in the
* <code>GetGeoMatchSet</code> request. This includes the <code>Type</code>, which
* for a <code>GeoMatchContraint</code> is always <code>Country</code>, as well as
* the <code>Value</code>, which is the identifier for a specific country.</p>
*/
inline void SetGeoMatchSet(const GeoMatchSet& value) { m_geoMatchSet = value; }
/**
* <p>Information about the <a>GeoMatchSet</a> that you specified in the
* <code>GetGeoMatchSet</code> request. This includes the <code>Type</code>, which
* for a <code>GeoMatchContraint</code> is always <code>Country</code>, as well as
* the <code>Value</code>, which is the identifier for a specific country.</p>
*/
inline void SetGeoMatchSet(GeoMatchSet&& value) { m_geoMatchSet = std::move(value); }
/**
* <p>Information about the <a>GeoMatchSet</a> that you specified in the
* <code>GetGeoMatchSet</code> request. This includes the <code>Type</code>, which
* for a <code>GeoMatchContraint</code> is always <code>Country</code>, as well as
* the <code>Value</code>, which is the identifier for a specific country.</p>
*/
inline GetGeoMatchSetResult& WithGeoMatchSet(const GeoMatchSet& value) { SetGeoMatchSet(value); return *this;}
/**
* <p>Information about the <a>GeoMatchSet</a> that you specified in the
* <code>GetGeoMatchSet</code> request. This includes the <code>Type</code>, which
* for a <code>GeoMatchContraint</code> is always <code>Country</code>, as well as
* the <code>Value</code>, which is the identifier for a specific country.</p>
*/
inline GetGeoMatchSetResult& WithGeoMatchSet(GeoMatchSet&& value) { SetGeoMatchSet(std::move(value)); return *this;}
private:
GeoMatchSet m_geoMatchSet;
};
} // namespace Model
} // namespace WAF
} // namespace Aws