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,103 @@
/**
* 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/xray/model/SamplingStrategyName.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace XRay
{
namespace Model
{
/**
* <p>The name and value of a sampling rule to apply to a trace
* summary.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/SamplingStrategy">AWS
* API Reference</a></p>
*/
class AWS_XRAY_API SamplingStrategy
{
public:
SamplingStrategy();
SamplingStrategy(Aws::Utils::Json::JsonView jsonValue);
SamplingStrategy& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The name of a sampling rule.</p>
*/
inline const SamplingStrategyName& GetName() const{ return m_name; }
/**
* <p>The name of a sampling rule.</p>
*/
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
/**
* <p>The name of a sampling rule.</p>
*/
inline void SetName(const SamplingStrategyName& value) { m_nameHasBeenSet = true; m_name = value; }
/**
* <p>The name of a sampling rule.</p>
*/
inline void SetName(SamplingStrategyName&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
/**
* <p>The name of a sampling rule.</p>
*/
inline SamplingStrategy& WithName(const SamplingStrategyName& value) { SetName(value); return *this;}
/**
* <p>The name of a sampling rule.</p>
*/
inline SamplingStrategy& WithName(SamplingStrategyName&& value) { SetName(std::move(value)); return *this;}
/**
* <p>The value of a sampling rule.</p>
*/
inline double GetValue() const{ return m_value; }
/**
* <p>The value of a sampling rule.</p>
*/
inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
/**
* <p>The value of a sampling rule.</p>
*/
inline void SetValue(double value) { m_valueHasBeenSet = true; m_value = value; }
/**
* <p>The value of a sampling rule.</p>
*/
inline SamplingStrategy& WithValue(double value) { SetValue(value); return *this;}
private:
SamplingStrategyName m_name;
bool m_nameHasBeenSet;
double m_value;
bool m_valueHasBeenSet;
};
} // namespace Model
} // namespace XRay
} // namespace Aws