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,92 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/neptune/Neptune_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
namespace Aws
{
namespace Utils
{
namespace Xml
{
class XmlNode;
} // namespace Xml
} // namespace Utils
namespace Neptune
{
namespace Model
{
/**
* <p>A range of double values.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/neptune-2014-10-31/DoubleRange">AWS
* API Reference</a></p>
*/
class AWS_NEPTUNE_API DoubleRange
{
public:
DoubleRange();
DoubleRange(const Aws::Utils::Xml::XmlNode& xmlNode);
DoubleRange& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
void OutputToStream(Aws::OStream& oStream, const char* location) const;
/**
* <p>The minimum value in the range.</p>
*/
inline double GetFrom() const{ return m_from; }
/**
* <p>The minimum value in the range.</p>
*/
inline bool FromHasBeenSet() const { return m_fromHasBeenSet; }
/**
* <p>The minimum value in the range.</p>
*/
inline void SetFrom(double value) { m_fromHasBeenSet = true; m_from = value; }
/**
* <p>The minimum value in the range.</p>
*/
inline DoubleRange& WithFrom(double value) { SetFrom(value); return *this;}
/**
* <p>The maximum value in the range.</p>
*/
inline double GetTo() const{ return m_to; }
/**
* <p>The maximum value in the range.</p>
*/
inline bool ToHasBeenSet() const { return m_toHasBeenSet; }
/**
* <p>The maximum value in the range.</p>
*/
inline void SetTo(double value) { m_toHasBeenSet = true; m_to = value; }
/**
* <p>The maximum value in the range.</p>
*/
inline DoubleRange& WithTo(double value) { SetTo(value); return *this;}
private:
double m_from;
bool m_fromHasBeenSet;
double m_to;
bool m_toHasBeenSet;
};
} // namespace Model
} // namespace Neptune
} // namespace Aws