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,90 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/iot/IoT_EXPORTS.h>
#include <aws/iot/IoTRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/iot/model/ResourceIdentifier.h>
#include <utility>
namespace Aws
{
namespace IoT
{
namespace Model
{
/**
*/
class AWS_IOT_API DescribeAuditSuppressionRequest : public IoTRequest
{
public:
DescribeAuditSuppressionRequest();
// 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 "DescribeAuditSuppression"; }
Aws::String SerializePayload() const override;
inline const Aws::String& GetCheckName() const{ return m_checkName; }
inline bool CheckNameHasBeenSet() const { return m_checkNameHasBeenSet; }
inline void SetCheckName(const Aws::String& value) { m_checkNameHasBeenSet = true; m_checkName = value; }
inline void SetCheckName(Aws::String&& value) { m_checkNameHasBeenSet = true; m_checkName = std::move(value); }
inline void SetCheckName(const char* value) { m_checkNameHasBeenSet = true; m_checkName.assign(value); }
inline DescribeAuditSuppressionRequest& WithCheckName(const Aws::String& value) { SetCheckName(value); return *this;}
inline DescribeAuditSuppressionRequest& WithCheckName(Aws::String&& value) { SetCheckName(std::move(value)); return *this;}
inline DescribeAuditSuppressionRequest& WithCheckName(const char* value) { SetCheckName(value); return *this;}
inline const ResourceIdentifier& GetResourceIdentifier() const{ return m_resourceIdentifier; }
inline bool ResourceIdentifierHasBeenSet() const { return m_resourceIdentifierHasBeenSet; }
inline void SetResourceIdentifier(const ResourceIdentifier& value) { m_resourceIdentifierHasBeenSet = true; m_resourceIdentifier = value; }
inline void SetResourceIdentifier(ResourceIdentifier&& value) { m_resourceIdentifierHasBeenSet = true; m_resourceIdentifier = std::move(value); }
inline DescribeAuditSuppressionRequest& WithResourceIdentifier(const ResourceIdentifier& value) { SetResourceIdentifier(value); return *this;}
inline DescribeAuditSuppressionRequest& WithResourceIdentifier(ResourceIdentifier&& value) { SetResourceIdentifier(std::move(value)); return *this;}
private:
Aws::String m_checkName;
bool m_checkNameHasBeenSet;
ResourceIdentifier m_resourceIdentifier;
bool m_resourceIdentifierHasBeenSet;
};
} // namespace Model
} // namespace IoT
} // namespace Aws