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/wafv2/WAFV2_EXPORTS.h>
#include <aws/wafv2/model/IPSetSummary.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace WAFV2
{
namespace Model
{
class AWS_WAFV2_API CreateIPSetResult
{
public:
CreateIPSetResult();
CreateIPSetResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
CreateIPSetResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>High-level information about an <a>IPSet</a>, returned by operations like
* create and list. This provides information like the ID, that you can use to
* retrieve and manage an <code>IPSet</code>, and the ARN, that you provide to the
* <a>IPSetReferenceStatement</a> to use the address set in a <a>Rule</a>.</p>
*/
inline const IPSetSummary& GetSummary() const{ return m_summary; }
/**
* <p>High-level information about an <a>IPSet</a>, returned by operations like
* create and list. This provides information like the ID, that you can use to
* retrieve and manage an <code>IPSet</code>, and the ARN, that you provide to the
* <a>IPSetReferenceStatement</a> to use the address set in a <a>Rule</a>.</p>
*/
inline void SetSummary(const IPSetSummary& value) { m_summary = value; }
/**
* <p>High-level information about an <a>IPSet</a>, returned by operations like
* create and list. This provides information like the ID, that you can use to
* retrieve and manage an <code>IPSet</code>, and the ARN, that you provide to the
* <a>IPSetReferenceStatement</a> to use the address set in a <a>Rule</a>.</p>
*/
inline void SetSummary(IPSetSummary&& value) { m_summary = std::move(value); }
/**
* <p>High-level information about an <a>IPSet</a>, returned by operations like
* create and list. This provides information like the ID, that you can use to
* retrieve and manage an <code>IPSet</code>, and the ARN, that you provide to the
* <a>IPSetReferenceStatement</a> to use the address set in a <a>Rule</a>.</p>
*/
inline CreateIPSetResult& WithSummary(const IPSetSummary& value) { SetSummary(value); return *this;}
/**
* <p>High-level information about an <a>IPSet</a>, returned by operations like
* create and list. This provides information like the ID, that you can use to
* retrieve and manage an <code>IPSet</code>, and the ARN, that you provide to the
* <a>IPSetReferenceStatement</a> to use the address set in a <a>Rule</a>.</p>
*/
inline CreateIPSetResult& WithSummary(IPSetSummary&& value) { SetSummary(std::move(value)); return *this;}
private:
IPSetSummary m_summary;
};
} // namespace Model
} // namespace WAFV2
} // namespace Aws