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,114 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/appmesh/AppMesh_EXPORTS.h>
#include <aws/appmesh/model/AwsCloudMapServiceDiscovery.h>
#include <aws/appmesh/model/DnsServiceDiscovery.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace AppMesh
{
namespace Model
{
/**
* <p>An object that represents the service discovery information for a virtual
* node.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/appmesh-2019-01-25/ServiceDiscovery">AWS
* API Reference</a></p>
*/
class AWS_APPMESH_API ServiceDiscovery
{
public:
ServiceDiscovery();
ServiceDiscovery(Aws::Utils::Json::JsonView jsonValue);
ServiceDiscovery& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>Specifies any AWS Cloud Map information for the virtual node.</p>
*/
inline const AwsCloudMapServiceDiscovery& GetAwsCloudMap() const{ return m_awsCloudMap; }
/**
* <p>Specifies any AWS Cloud Map information for the virtual node.</p>
*/
inline bool AwsCloudMapHasBeenSet() const { return m_awsCloudMapHasBeenSet; }
/**
* <p>Specifies any AWS Cloud Map information for the virtual node.</p>
*/
inline void SetAwsCloudMap(const AwsCloudMapServiceDiscovery& value) { m_awsCloudMapHasBeenSet = true; m_awsCloudMap = value; }
/**
* <p>Specifies any AWS Cloud Map information for the virtual node.</p>
*/
inline void SetAwsCloudMap(AwsCloudMapServiceDiscovery&& value) { m_awsCloudMapHasBeenSet = true; m_awsCloudMap = std::move(value); }
/**
* <p>Specifies any AWS Cloud Map information for the virtual node.</p>
*/
inline ServiceDiscovery& WithAwsCloudMap(const AwsCloudMapServiceDiscovery& value) { SetAwsCloudMap(value); return *this;}
/**
* <p>Specifies any AWS Cloud Map information for the virtual node.</p>
*/
inline ServiceDiscovery& WithAwsCloudMap(AwsCloudMapServiceDiscovery&& value) { SetAwsCloudMap(std::move(value)); return *this;}
/**
* <p>Specifies the DNS information for the virtual node.</p>
*/
inline const DnsServiceDiscovery& GetDns() const{ return m_dns; }
/**
* <p>Specifies the DNS information for the virtual node.</p>
*/
inline bool DnsHasBeenSet() const { return m_dnsHasBeenSet; }
/**
* <p>Specifies the DNS information for the virtual node.</p>
*/
inline void SetDns(const DnsServiceDiscovery& value) { m_dnsHasBeenSet = true; m_dns = value; }
/**
* <p>Specifies the DNS information for the virtual node.</p>
*/
inline void SetDns(DnsServiceDiscovery&& value) { m_dnsHasBeenSet = true; m_dns = std::move(value); }
/**
* <p>Specifies the DNS information for the virtual node.</p>
*/
inline ServiceDiscovery& WithDns(const DnsServiceDiscovery& value) { SetDns(value); return *this;}
/**
* <p>Specifies the DNS information for the virtual node.</p>
*/
inline ServiceDiscovery& WithDns(DnsServiceDiscovery&& value) { SetDns(std::move(value)); return *this;}
private:
AwsCloudMapServiceDiscovery m_awsCloudMap;
bool m_awsCloudMapHasBeenSet;
DnsServiceDiscovery m_dns;
bool m_dnsHasBeenSet;
};
} // namespace Model
} // namespace AppMesh
} // namespace Aws