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/appmesh/AppMesh_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.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 DNS service discovery information for your
* virtual
node.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/appmesh-2019-01-25/DnsServiceDiscovery">AWS
* API Reference</a></p>
*/
class AWS_APPMESH_API DnsServiceDiscovery
{
public:
DnsServiceDiscovery();
DnsServiceDiscovery(Aws::Utils::Json::JsonView jsonValue);
DnsServiceDiscovery& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>Specifies the DNS service discovery hostname for the virtual node. </p>
*/
inline const Aws::String& GetHostname() const{ return m_hostname; }
/**
* <p>Specifies the DNS service discovery hostname for the virtual node. </p>
*/
inline bool HostnameHasBeenSet() const { return m_hostnameHasBeenSet; }
/**
* <p>Specifies the DNS service discovery hostname for the virtual node. </p>
*/
inline void SetHostname(const Aws::String& value) { m_hostnameHasBeenSet = true; m_hostname = value; }
/**
* <p>Specifies the DNS service discovery hostname for the virtual node. </p>
*/
inline void SetHostname(Aws::String&& value) { m_hostnameHasBeenSet = true; m_hostname = std::move(value); }
/**
* <p>Specifies the DNS service discovery hostname for the virtual node. </p>
*/
inline void SetHostname(const char* value) { m_hostnameHasBeenSet = true; m_hostname.assign(value); }
/**
* <p>Specifies the DNS service discovery hostname for the virtual node. </p>
*/
inline DnsServiceDiscovery& WithHostname(const Aws::String& value) { SetHostname(value); return *this;}
/**
* <p>Specifies the DNS service discovery hostname for the virtual node. </p>
*/
inline DnsServiceDiscovery& WithHostname(Aws::String&& value) { SetHostname(std::move(value)); return *this;}
/**
* <p>Specifies the DNS service discovery hostname for the virtual node. </p>
*/
inline DnsServiceDiscovery& WithHostname(const char* value) { SetHostname(value); return *this;}
private:
Aws::String m_hostname;
bool m_hostnameHasBeenSet;
};
} // namespace Model
} // namespace AppMesh
} // namespace Aws