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,127 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/elasticache/ElastiCache_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/elasticache/model/AvailabilityZone.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Xml
{
class XmlNode;
} // namespace Xml
} // namespace Utils
namespace ElastiCache
{
namespace Model
{
/**
* <p>Represents the subnet associated with a cluster. This parameter refers to
* subnets defined in Amazon Virtual Private Cloud (Amazon VPC) and used with
* ElastiCache.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/Subnet">AWS
* API Reference</a></p>
*/
class AWS_ELASTICACHE_API Subnet
{
public:
Subnet();
Subnet(const Aws::Utils::Xml::XmlNode& xmlNode);
Subnet& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
void OutputToStream(Aws::OStream& oStream, const char* location) const;
/**
* <p>The unique identifier for the subnet.</p>
*/
inline const Aws::String& GetSubnetIdentifier() const{ return m_subnetIdentifier; }
/**
* <p>The unique identifier for the subnet.</p>
*/
inline bool SubnetIdentifierHasBeenSet() const { return m_subnetIdentifierHasBeenSet; }
/**
* <p>The unique identifier for the subnet.</p>
*/
inline void SetSubnetIdentifier(const Aws::String& value) { m_subnetIdentifierHasBeenSet = true; m_subnetIdentifier = value; }
/**
* <p>The unique identifier for the subnet.</p>
*/
inline void SetSubnetIdentifier(Aws::String&& value) { m_subnetIdentifierHasBeenSet = true; m_subnetIdentifier = std::move(value); }
/**
* <p>The unique identifier for the subnet.</p>
*/
inline void SetSubnetIdentifier(const char* value) { m_subnetIdentifierHasBeenSet = true; m_subnetIdentifier.assign(value); }
/**
* <p>The unique identifier for the subnet.</p>
*/
inline Subnet& WithSubnetIdentifier(const Aws::String& value) { SetSubnetIdentifier(value); return *this;}
/**
* <p>The unique identifier for the subnet.</p>
*/
inline Subnet& WithSubnetIdentifier(Aws::String&& value) { SetSubnetIdentifier(std::move(value)); return *this;}
/**
* <p>The unique identifier for the subnet.</p>
*/
inline Subnet& WithSubnetIdentifier(const char* value) { SetSubnetIdentifier(value); return *this;}
/**
* <p>The Availability Zone associated with the subnet.</p>
*/
inline const AvailabilityZone& GetSubnetAvailabilityZone() const{ return m_subnetAvailabilityZone; }
/**
* <p>The Availability Zone associated with the subnet.</p>
*/
inline bool SubnetAvailabilityZoneHasBeenSet() const { return m_subnetAvailabilityZoneHasBeenSet; }
/**
* <p>The Availability Zone associated with the subnet.</p>
*/
inline void SetSubnetAvailabilityZone(const AvailabilityZone& value) { m_subnetAvailabilityZoneHasBeenSet = true; m_subnetAvailabilityZone = value; }
/**
* <p>The Availability Zone associated with the subnet.</p>
*/
inline void SetSubnetAvailabilityZone(AvailabilityZone&& value) { m_subnetAvailabilityZoneHasBeenSet = true; m_subnetAvailabilityZone = std::move(value); }
/**
* <p>The Availability Zone associated with the subnet.</p>
*/
inline Subnet& WithSubnetAvailabilityZone(const AvailabilityZone& value) { SetSubnetAvailabilityZone(value); return *this;}
/**
* <p>The Availability Zone associated with the subnet.</p>
*/
inline Subnet& WithSubnetAvailabilityZone(AvailabilityZone&& value) { SetSubnetAvailabilityZone(std::move(value)); return *this;}
private:
Aws::String m_subnetIdentifier;
bool m_subnetIdentifierHasBeenSet;
AvailabilityZone m_subnetAvailabilityZone;
bool m_subnetAvailabilityZoneHasBeenSet;
};
} // namespace Model
} // namespace ElastiCache
} // namespace Aws