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,133 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/sns/SNS_EXPORTS.h>
#include <aws/sns/SNSRequest.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace SNS
{
namespace Model
{
/**
* <p>The input for the <code>GetSMSAttributes</code> request.</p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/sns-2010-03-31/GetSMSAttributesInput">AWS
* API Reference</a></p>
*/
class AWS_SNS_API GetSMSAttributesRequest : public SNSRequest
{
public:
GetSMSAttributesRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "GetSMSAttributes"; }
Aws::String SerializePayload() const override;
protected:
void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
public:
/**
* <p>A list of the individual attribute names, such as
* <code>MonthlySpendLimit</code>, for which you want values.</p> <p>For all
* attribute names, see <a
* href="https://docs.aws.amazon.com/sns/latest/api/API_SetSMSAttributes.html">SetSMSAttributes</a>.</p>
* <p>If you don't use this parameter, Amazon SNS returns all SMS attributes.</p>
*/
inline const Aws::Vector<Aws::String>& GetAttributes() const{ return m_attributes; }
/**
* <p>A list of the individual attribute names, such as
* <code>MonthlySpendLimit</code>, for which you want values.</p> <p>For all
* attribute names, see <a
* href="https://docs.aws.amazon.com/sns/latest/api/API_SetSMSAttributes.html">SetSMSAttributes</a>.</p>
* <p>If you don't use this parameter, Amazon SNS returns all SMS attributes.</p>
*/
inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
/**
* <p>A list of the individual attribute names, such as
* <code>MonthlySpendLimit</code>, for which you want values.</p> <p>For all
* attribute names, see <a
* href="https://docs.aws.amazon.com/sns/latest/api/API_SetSMSAttributes.html">SetSMSAttributes</a>.</p>
* <p>If you don't use this parameter, Amazon SNS returns all SMS attributes.</p>
*/
inline void SetAttributes(const Aws::Vector<Aws::String>& value) { m_attributesHasBeenSet = true; m_attributes = value; }
/**
* <p>A list of the individual attribute names, such as
* <code>MonthlySpendLimit</code>, for which you want values.</p> <p>For all
* attribute names, see <a
* href="https://docs.aws.amazon.com/sns/latest/api/API_SetSMSAttributes.html">SetSMSAttributes</a>.</p>
* <p>If you don't use this parameter, Amazon SNS returns all SMS attributes.</p>
*/
inline void SetAttributes(Aws::Vector<Aws::String>&& value) { m_attributesHasBeenSet = true; m_attributes = std::move(value); }
/**
* <p>A list of the individual attribute names, such as
* <code>MonthlySpendLimit</code>, for which you want values.</p> <p>For all
* attribute names, see <a
* href="https://docs.aws.amazon.com/sns/latest/api/API_SetSMSAttributes.html">SetSMSAttributes</a>.</p>
* <p>If you don't use this parameter, Amazon SNS returns all SMS attributes.</p>
*/
inline GetSMSAttributesRequest& WithAttributes(const Aws::Vector<Aws::String>& value) { SetAttributes(value); return *this;}
/**
* <p>A list of the individual attribute names, such as
* <code>MonthlySpendLimit</code>, for which you want values.</p> <p>For all
* attribute names, see <a
* href="https://docs.aws.amazon.com/sns/latest/api/API_SetSMSAttributes.html">SetSMSAttributes</a>.</p>
* <p>If you don't use this parameter, Amazon SNS returns all SMS attributes.</p>
*/
inline GetSMSAttributesRequest& WithAttributes(Aws::Vector<Aws::String>&& value) { SetAttributes(std::move(value)); return *this;}
/**
* <p>A list of the individual attribute names, such as
* <code>MonthlySpendLimit</code>, for which you want values.</p> <p>For all
* attribute names, see <a
* href="https://docs.aws.amazon.com/sns/latest/api/API_SetSMSAttributes.html">SetSMSAttributes</a>.</p>
* <p>If you don't use this parameter, Amazon SNS returns all SMS attributes.</p>
*/
inline GetSMSAttributesRequest& AddAttributes(const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes.push_back(value); return *this; }
/**
* <p>A list of the individual attribute names, such as
* <code>MonthlySpendLimit</code>, for which you want values.</p> <p>For all
* attribute names, see <a
* href="https://docs.aws.amazon.com/sns/latest/api/API_SetSMSAttributes.html">SetSMSAttributes</a>.</p>
* <p>If you don't use this parameter, Amazon SNS returns all SMS attributes.</p>
*/
inline GetSMSAttributesRequest& AddAttributes(Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.push_back(std::move(value)); return *this; }
/**
* <p>A list of the individual attribute names, such as
* <code>MonthlySpendLimit</code>, for which you want values.</p> <p>For all
* attribute names, see <a
* href="https://docs.aws.amazon.com/sns/latest/api/API_SetSMSAttributes.html">SetSMSAttributes</a>.</p>
* <p>If you don't use this parameter, Amazon SNS returns all SMS attributes.</p>
*/
inline GetSMSAttributesRequest& AddAttributes(const char* value) { m_attributesHasBeenSet = true; m_attributes.push_back(value); return *this; }
private:
Aws::Vector<Aws::String> m_attributes;
bool m_attributesHasBeenSet;
};
} // namespace Model
} // namespace SNS
} // namespace Aws