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,97 @@
/**
* 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/Rule.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 GetRuleResult
{
public:
GetRuleResult();
GetRuleResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
GetRuleResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>Information about the <a>Rule</a> that you specified in the
* <code>GetRule</code> request. For more information, see the following
* topics:</p> <ul> <li> <p> <a>Rule</a>: Contains <code>MetricName</code>,
* <code>Name</code>, an array of <code>Predicate</code> objects, and
* <code>RuleId</code> </p> </li> <li> <p> <a>Predicate</a>: Each
* <code>Predicate</code> object contains <code>DataId</code>,
* <code>Negated</code>, and <code>Type</code> </p> </li> </ul>
*/
inline const Rule& GetRule() const{ return m_rule; }
/**
* <p>Information about the <a>Rule</a> that you specified in the
* <code>GetRule</code> request. For more information, see the following
* topics:</p> <ul> <li> <p> <a>Rule</a>: Contains <code>MetricName</code>,
* <code>Name</code>, an array of <code>Predicate</code> objects, and
* <code>RuleId</code> </p> </li> <li> <p> <a>Predicate</a>: Each
* <code>Predicate</code> object contains <code>DataId</code>,
* <code>Negated</code>, and <code>Type</code> </p> </li> </ul>
*/
inline void SetRule(const Rule& value) { m_rule = value; }
/**
* <p>Information about the <a>Rule</a> that you specified in the
* <code>GetRule</code> request. For more information, see the following
* topics:</p> <ul> <li> <p> <a>Rule</a>: Contains <code>MetricName</code>,
* <code>Name</code>, an array of <code>Predicate</code> objects, and
* <code>RuleId</code> </p> </li> <li> <p> <a>Predicate</a>: Each
* <code>Predicate</code> object contains <code>DataId</code>,
* <code>Negated</code>, and <code>Type</code> </p> </li> </ul>
*/
inline void SetRule(Rule&& value) { m_rule = std::move(value); }
/**
* <p>Information about the <a>Rule</a> that you specified in the
* <code>GetRule</code> request. For more information, see the following
* topics:</p> <ul> <li> <p> <a>Rule</a>: Contains <code>MetricName</code>,
* <code>Name</code>, an array of <code>Predicate</code> objects, and
* <code>RuleId</code> </p> </li> <li> <p> <a>Predicate</a>: Each
* <code>Predicate</code> object contains <code>DataId</code>,
* <code>Negated</code>, and <code>Type</code> </p> </li> </ul>
*/
inline GetRuleResult& WithRule(const Rule& value) { SetRule(value); return *this;}
/**
* <p>Information about the <a>Rule</a> that you specified in the
* <code>GetRule</code> request. For more information, see the following
* topics:</p> <ul> <li> <p> <a>Rule</a>: Contains <code>MetricName</code>,
* <code>Name</code>, an array of <code>Predicate</code> objects, and
* <code>RuleId</code> </p> </li> <li> <p> <a>Predicate</a>: Each
* <code>Predicate</code> object contains <code>DataId</code>,
* <code>Negated</code>, and <code>Type</code> </p> </li> </ul>
*/
inline GetRuleResult& WithRule(Rule&& value) { SetRule(std::move(value)); return *this;}
private:
Rule m_rule;
};
} // namespace Model
} // namespace WAF
} // namespace Aws