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,120 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/lightsail/Lightsail_EXPORTS.h>
#include <aws/lightsail/LightsailRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/lightsail/model/AddOnRequest.h>
#include <utility>
namespace Aws
{
namespace Lightsail
{
namespace Model
{
/**
*/
class AWS_LIGHTSAIL_API EnableAddOnRequest : public LightsailRequest
{
public:
EnableAddOnRequest();
// 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 "EnableAddOn"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The name of the source resource for which to enable or modify the add-on.</p>
*/
inline const Aws::String& GetResourceName() const{ return m_resourceName; }
/**
* <p>The name of the source resource for which to enable or modify the add-on.</p>
*/
inline bool ResourceNameHasBeenSet() const { return m_resourceNameHasBeenSet; }
/**
* <p>The name of the source resource for which to enable or modify the add-on.</p>
*/
inline void SetResourceName(const Aws::String& value) { m_resourceNameHasBeenSet = true; m_resourceName = value; }
/**
* <p>The name of the source resource for which to enable or modify the add-on.</p>
*/
inline void SetResourceName(Aws::String&& value) { m_resourceNameHasBeenSet = true; m_resourceName = std::move(value); }
/**
* <p>The name of the source resource for which to enable or modify the add-on.</p>
*/
inline void SetResourceName(const char* value) { m_resourceNameHasBeenSet = true; m_resourceName.assign(value); }
/**
* <p>The name of the source resource for which to enable or modify the add-on.</p>
*/
inline EnableAddOnRequest& WithResourceName(const Aws::String& value) { SetResourceName(value); return *this;}
/**
* <p>The name of the source resource for which to enable or modify the add-on.</p>
*/
inline EnableAddOnRequest& WithResourceName(Aws::String&& value) { SetResourceName(std::move(value)); return *this;}
/**
* <p>The name of the source resource for which to enable or modify the add-on.</p>
*/
inline EnableAddOnRequest& WithResourceName(const char* value) { SetResourceName(value); return *this;}
/**
* <p>An array of strings representing the add-on to enable or modify.</p>
*/
inline const AddOnRequest& GetAddOnRequest() const{ return m_addOnRequest; }
/**
* <p>An array of strings representing the add-on to enable or modify.</p>
*/
inline bool AddOnRequestHasBeenSet() const { return m_addOnRequestHasBeenSet; }
/**
* <p>An array of strings representing the add-on to enable or modify.</p>
*/
inline void SetAddOnRequest(const AddOnRequest& value) { m_addOnRequestHasBeenSet = true; m_addOnRequest = value; }
/**
* <p>An array of strings representing the add-on to enable or modify.</p>
*/
inline void SetAddOnRequest(AddOnRequest&& value) { m_addOnRequestHasBeenSet = true; m_addOnRequest = std::move(value); }
/**
* <p>An array of strings representing the add-on to enable or modify.</p>
*/
inline EnableAddOnRequest& WithAddOnRequest(const AddOnRequest& value) { SetAddOnRequest(value); return *this;}
/**
* <p>An array of strings representing the add-on to enable or modify.</p>
*/
inline EnableAddOnRequest& WithAddOnRequest(AddOnRequest&& value) { SetAddOnRequest(std::move(value)); return *this;}
private:
Aws::String m_resourceName;
bool m_resourceNameHasBeenSet;
AddOnRequest m_addOnRequest;
bool m_addOnRequestHasBeenSet;
};
} // namespace Model
} // namespace Lightsail
} // namespace Aws