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,79 @@
/**
* 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/FileAccessLog.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 access logging information for a virtual
* node.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/appmesh-2019-01-25/AccessLog">AWS
* API Reference</a></p>
*/
class AWS_APPMESH_API AccessLog
{
public:
AccessLog();
AccessLog(Aws::Utils::Json::JsonView jsonValue);
AccessLog& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The file object to send virtual node access logs to.</p>
*/
inline const FileAccessLog& GetFile() const{ return m_file; }
/**
* <p>The file object to send virtual node access logs to.</p>
*/
inline bool FileHasBeenSet() const { return m_fileHasBeenSet; }
/**
* <p>The file object to send virtual node access logs to.</p>
*/
inline void SetFile(const FileAccessLog& value) { m_fileHasBeenSet = true; m_file = value; }
/**
* <p>The file object to send virtual node access logs to.</p>
*/
inline void SetFile(FileAccessLog&& value) { m_fileHasBeenSet = true; m_file = std::move(value); }
/**
* <p>The file object to send virtual node access logs to.</p>
*/
inline AccessLog& WithFile(const FileAccessLog& value) { SetFile(value); return *this;}
/**
* <p>The file object to send virtual node access logs to.</p>
*/
inline AccessLog& WithFile(FileAccessLog&& value) { SetFile(std::move(value)); return *this;}
private:
FileAccessLog m_file;
bool m_fileHasBeenSet;
};
} // namespace Model
} // namespace AppMesh
} // namespace Aws