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,83 @@
/**
* 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 <utility>
namespace Aws
{
namespace IoT
{
namespace Model
{
/**
*/
class AWS_IOT_API DescribeBillingGroupRequest : public IoTRequest
{
public:
DescribeBillingGroupRequest();
// 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 "DescribeBillingGroup"; }
Aws::String SerializePayload() const override;
/**
* <p>The name of the billing group.</p>
*/
inline const Aws::String& GetBillingGroupName() const{ return m_billingGroupName; }
/**
* <p>The name of the billing group.</p>
*/
inline bool BillingGroupNameHasBeenSet() const { return m_billingGroupNameHasBeenSet; }
/**
* <p>The name of the billing group.</p>
*/
inline void SetBillingGroupName(const Aws::String& value) { m_billingGroupNameHasBeenSet = true; m_billingGroupName = value; }
/**
* <p>The name of the billing group.</p>
*/
inline void SetBillingGroupName(Aws::String&& value) { m_billingGroupNameHasBeenSet = true; m_billingGroupName = std::move(value); }
/**
* <p>The name of the billing group.</p>
*/
inline void SetBillingGroupName(const char* value) { m_billingGroupNameHasBeenSet = true; m_billingGroupName.assign(value); }
/**
* <p>The name of the billing group.</p>
*/
inline DescribeBillingGroupRequest& WithBillingGroupName(const Aws::String& value) { SetBillingGroupName(value); return *this;}
/**
* <p>The name of the billing group.</p>
*/
inline DescribeBillingGroupRequest& WithBillingGroupName(Aws::String&& value) { SetBillingGroupName(std::move(value)); return *this;}
/**
* <p>The name of the billing group.</p>
*/
inline DescribeBillingGroupRequest& WithBillingGroupName(const char* value) { SetBillingGroupName(value); return *this;}
private:
Aws::String m_billingGroupName;
bool m_billingGroupNameHasBeenSet;
};
} // namespace Model
} // namespace IoT
} // namespace Aws