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,221 @@
/**
* 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/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace WAF
{
namespace Model
{
/**
* <p>This is <b>AWS WAF Classic</b> documentation. For more information,
* see <a
* href="https://docs.aws.amazon.com/waf/latest/developerguide/classic-waf-chapter.html">AWS
* WAF Classic</a> in the developer guide.</p> <p> <b>For the latest version of AWS
* WAF</b>, use the AWS WAFV2 API and see the <a
* href="https://docs.aws.amazon.com/waf/latest/developerguide/waf-chapter.html">AWS
* WAF Developer Guide</a>. With the latest version, AWS WAF has a single set of
* endpoints for regional and global use. </p> <p>The <code>Id</code> and
* <code>Name</code> of a <code>SqlInjectionMatchSet</code>.</p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/SqlInjectionMatchSetSummary">AWS
* API Reference</a></p>
*/
class AWS_WAF_API SqlInjectionMatchSetSummary
{
public:
SqlInjectionMatchSetSummary();
SqlInjectionMatchSetSummary(Aws::Utils::Json::JsonView jsonValue);
SqlInjectionMatchSetSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>A unique identifier for a <code>SqlInjectionMatchSet</code>. You use
* <code>SqlInjectionMatchSetId</code> to get information about a
* <code>SqlInjectionMatchSet</code> (see <a>GetSqlInjectionMatchSet</a>), update a
* <code>SqlInjectionMatchSet</code> (see <a>UpdateSqlInjectionMatchSet</a>),
* insert a <code>SqlInjectionMatchSet</code> into a <code>Rule</code> or delete
* one from a <code>Rule</code> (see <a>UpdateRule</a>), and delete a
* <code>SqlInjectionMatchSet</code> from AWS WAF (see
* <a>DeleteSqlInjectionMatchSet</a>).</p> <p> <code>SqlInjectionMatchSetId</code>
* is returned by <a>CreateSqlInjectionMatchSet</a> and by
* <a>ListSqlInjectionMatchSets</a>.</p>
*/
inline const Aws::String& GetSqlInjectionMatchSetId() const{ return m_sqlInjectionMatchSetId; }
/**
* <p>A unique identifier for a <code>SqlInjectionMatchSet</code>. You use
* <code>SqlInjectionMatchSetId</code> to get information about a
* <code>SqlInjectionMatchSet</code> (see <a>GetSqlInjectionMatchSet</a>), update a
* <code>SqlInjectionMatchSet</code> (see <a>UpdateSqlInjectionMatchSet</a>),
* insert a <code>SqlInjectionMatchSet</code> into a <code>Rule</code> or delete
* one from a <code>Rule</code> (see <a>UpdateRule</a>), and delete a
* <code>SqlInjectionMatchSet</code> from AWS WAF (see
* <a>DeleteSqlInjectionMatchSet</a>).</p> <p> <code>SqlInjectionMatchSetId</code>
* is returned by <a>CreateSqlInjectionMatchSet</a> and by
* <a>ListSqlInjectionMatchSets</a>.</p>
*/
inline bool SqlInjectionMatchSetIdHasBeenSet() const { return m_sqlInjectionMatchSetIdHasBeenSet; }
/**
* <p>A unique identifier for a <code>SqlInjectionMatchSet</code>. You use
* <code>SqlInjectionMatchSetId</code> to get information about a
* <code>SqlInjectionMatchSet</code> (see <a>GetSqlInjectionMatchSet</a>), update a
* <code>SqlInjectionMatchSet</code> (see <a>UpdateSqlInjectionMatchSet</a>),
* insert a <code>SqlInjectionMatchSet</code> into a <code>Rule</code> or delete
* one from a <code>Rule</code> (see <a>UpdateRule</a>), and delete a
* <code>SqlInjectionMatchSet</code> from AWS WAF (see
* <a>DeleteSqlInjectionMatchSet</a>).</p> <p> <code>SqlInjectionMatchSetId</code>
* is returned by <a>CreateSqlInjectionMatchSet</a> and by
* <a>ListSqlInjectionMatchSets</a>.</p>
*/
inline void SetSqlInjectionMatchSetId(const Aws::String& value) { m_sqlInjectionMatchSetIdHasBeenSet = true; m_sqlInjectionMatchSetId = value; }
/**
* <p>A unique identifier for a <code>SqlInjectionMatchSet</code>. You use
* <code>SqlInjectionMatchSetId</code> to get information about a
* <code>SqlInjectionMatchSet</code> (see <a>GetSqlInjectionMatchSet</a>), update a
* <code>SqlInjectionMatchSet</code> (see <a>UpdateSqlInjectionMatchSet</a>),
* insert a <code>SqlInjectionMatchSet</code> into a <code>Rule</code> or delete
* one from a <code>Rule</code> (see <a>UpdateRule</a>), and delete a
* <code>SqlInjectionMatchSet</code> from AWS WAF (see
* <a>DeleteSqlInjectionMatchSet</a>).</p> <p> <code>SqlInjectionMatchSetId</code>
* is returned by <a>CreateSqlInjectionMatchSet</a> and by
* <a>ListSqlInjectionMatchSets</a>.</p>
*/
inline void SetSqlInjectionMatchSetId(Aws::String&& value) { m_sqlInjectionMatchSetIdHasBeenSet = true; m_sqlInjectionMatchSetId = std::move(value); }
/**
* <p>A unique identifier for a <code>SqlInjectionMatchSet</code>. You use
* <code>SqlInjectionMatchSetId</code> to get information about a
* <code>SqlInjectionMatchSet</code> (see <a>GetSqlInjectionMatchSet</a>), update a
* <code>SqlInjectionMatchSet</code> (see <a>UpdateSqlInjectionMatchSet</a>),
* insert a <code>SqlInjectionMatchSet</code> into a <code>Rule</code> or delete
* one from a <code>Rule</code> (see <a>UpdateRule</a>), and delete a
* <code>SqlInjectionMatchSet</code> from AWS WAF (see
* <a>DeleteSqlInjectionMatchSet</a>).</p> <p> <code>SqlInjectionMatchSetId</code>
* is returned by <a>CreateSqlInjectionMatchSet</a> and by
* <a>ListSqlInjectionMatchSets</a>.</p>
*/
inline void SetSqlInjectionMatchSetId(const char* value) { m_sqlInjectionMatchSetIdHasBeenSet = true; m_sqlInjectionMatchSetId.assign(value); }
/**
* <p>A unique identifier for a <code>SqlInjectionMatchSet</code>. You use
* <code>SqlInjectionMatchSetId</code> to get information about a
* <code>SqlInjectionMatchSet</code> (see <a>GetSqlInjectionMatchSet</a>), update a
* <code>SqlInjectionMatchSet</code> (see <a>UpdateSqlInjectionMatchSet</a>),
* insert a <code>SqlInjectionMatchSet</code> into a <code>Rule</code> or delete
* one from a <code>Rule</code> (see <a>UpdateRule</a>), and delete a
* <code>SqlInjectionMatchSet</code> from AWS WAF (see
* <a>DeleteSqlInjectionMatchSet</a>).</p> <p> <code>SqlInjectionMatchSetId</code>
* is returned by <a>CreateSqlInjectionMatchSet</a> and by
* <a>ListSqlInjectionMatchSets</a>.</p>
*/
inline SqlInjectionMatchSetSummary& WithSqlInjectionMatchSetId(const Aws::String& value) { SetSqlInjectionMatchSetId(value); return *this;}
/**
* <p>A unique identifier for a <code>SqlInjectionMatchSet</code>. You use
* <code>SqlInjectionMatchSetId</code> to get information about a
* <code>SqlInjectionMatchSet</code> (see <a>GetSqlInjectionMatchSet</a>), update a
* <code>SqlInjectionMatchSet</code> (see <a>UpdateSqlInjectionMatchSet</a>),
* insert a <code>SqlInjectionMatchSet</code> into a <code>Rule</code> or delete
* one from a <code>Rule</code> (see <a>UpdateRule</a>), and delete a
* <code>SqlInjectionMatchSet</code> from AWS WAF (see
* <a>DeleteSqlInjectionMatchSet</a>).</p> <p> <code>SqlInjectionMatchSetId</code>
* is returned by <a>CreateSqlInjectionMatchSet</a> and by
* <a>ListSqlInjectionMatchSets</a>.</p>
*/
inline SqlInjectionMatchSetSummary& WithSqlInjectionMatchSetId(Aws::String&& value) { SetSqlInjectionMatchSetId(std::move(value)); return *this;}
/**
* <p>A unique identifier for a <code>SqlInjectionMatchSet</code>. You use
* <code>SqlInjectionMatchSetId</code> to get information about a
* <code>SqlInjectionMatchSet</code> (see <a>GetSqlInjectionMatchSet</a>), update a
* <code>SqlInjectionMatchSet</code> (see <a>UpdateSqlInjectionMatchSet</a>),
* insert a <code>SqlInjectionMatchSet</code> into a <code>Rule</code> or delete
* one from a <code>Rule</code> (see <a>UpdateRule</a>), and delete a
* <code>SqlInjectionMatchSet</code> from AWS WAF (see
* <a>DeleteSqlInjectionMatchSet</a>).</p> <p> <code>SqlInjectionMatchSetId</code>
* is returned by <a>CreateSqlInjectionMatchSet</a> and by
* <a>ListSqlInjectionMatchSets</a>.</p>
*/
inline SqlInjectionMatchSetSummary& WithSqlInjectionMatchSetId(const char* value) { SetSqlInjectionMatchSetId(value); return *this;}
/**
* <p>The name of the <code>SqlInjectionMatchSet</code>, if any, specified by
* <code>Id</code>.</p>
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* <p>The name of the <code>SqlInjectionMatchSet</code>, if any, specified by
* <code>Id</code>.</p>
*/
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
/**
* <p>The name of the <code>SqlInjectionMatchSet</code>, if any, specified by
* <code>Id</code>.</p>
*/
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
/**
* <p>The name of the <code>SqlInjectionMatchSet</code>, if any, specified by
* <code>Id</code>.</p>
*/
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
/**
* <p>The name of the <code>SqlInjectionMatchSet</code>, if any, specified by
* <code>Id</code>.</p>
*/
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
/**
* <p>The name of the <code>SqlInjectionMatchSet</code>, if any, specified by
* <code>Id</code>.</p>
*/
inline SqlInjectionMatchSetSummary& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* <p>The name of the <code>SqlInjectionMatchSet</code>, if any, specified by
* <code>Id</code>.</p>
*/
inline SqlInjectionMatchSetSummary& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* <p>The name of the <code>SqlInjectionMatchSet</code>, if any, specified by
* <code>Id</code>.</p>
*/
inline SqlInjectionMatchSetSummary& WithName(const char* value) { SetName(value); return *this;}
private:
Aws::String m_sqlInjectionMatchSetId;
bool m_sqlInjectionMatchSetIdHasBeenSet;
Aws::String m_name;
bool m_nameHasBeenSet;
};
} // namespace Model
} // namespace WAF
} // namespace Aws