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,89 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/xray/XRay_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 XRay
{
namespace Model
{
/**
* <p>A list of resources ARNs corresponding to the segments in a
* trace.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/ResourceARNDetail">AWS
* API Reference</a></p>
*/
class AWS_XRAY_API ResourceARNDetail
{
public:
ResourceARNDetail();
ResourceARNDetail(Aws::Utils::Json::JsonView jsonValue);
ResourceARNDetail& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The ARN of a corresponding resource.</p>
*/
inline const Aws::String& GetARN() const{ return m_aRN; }
/**
* <p>The ARN of a corresponding resource.</p>
*/
inline bool ARNHasBeenSet() const { return m_aRNHasBeenSet; }
/**
* <p>The ARN of a corresponding resource.</p>
*/
inline void SetARN(const Aws::String& value) { m_aRNHasBeenSet = true; m_aRN = value; }
/**
* <p>The ARN of a corresponding resource.</p>
*/
inline void SetARN(Aws::String&& value) { m_aRNHasBeenSet = true; m_aRN = std::move(value); }
/**
* <p>The ARN of a corresponding resource.</p>
*/
inline void SetARN(const char* value) { m_aRNHasBeenSet = true; m_aRN.assign(value); }
/**
* <p>The ARN of a corresponding resource.</p>
*/
inline ResourceARNDetail& WithARN(const Aws::String& value) { SetARN(value); return *this;}
/**
* <p>The ARN of a corresponding resource.</p>
*/
inline ResourceARNDetail& WithARN(Aws::String&& value) { SetARN(std::move(value)); return *this;}
/**
* <p>The ARN of a corresponding resource.</p>
*/
inline ResourceARNDetail& WithARN(const char* value) { SetARN(value); return *this;}
private:
Aws::String m_aRN;
bool m_aRNHasBeenSet;
};
} // namespace Model
} // namespace XRay
} // namespace Aws