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,69 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/elasticache/ElastiCache_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
namespace Aws
{
namespace Utils
{
namespace Xml
{
class XmlNode;
} // namespace Xml
} // namespace Utils
namespace ElastiCache
{
namespace Model
{
/**
* <p>Represents the progress of an online resharding operation.</p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/elasticache-2015-02-02/SlotMigration">AWS
* API Reference</a></p>
*/
class AWS_ELASTICACHE_API SlotMigration
{
public:
SlotMigration();
SlotMigration(const Aws::Utils::Xml::XmlNode& xmlNode);
SlotMigration& 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 percentage of the slot migration that is complete.</p>
*/
inline double GetProgressPercentage() const{ return m_progressPercentage; }
/**
* <p>The percentage of the slot migration that is complete.</p>
*/
inline bool ProgressPercentageHasBeenSet() const { return m_progressPercentageHasBeenSet; }
/**
* <p>The percentage of the slot migration that is complete.</p>
*/
inline void SetProgressPercentage(double value) { m_progressPercentageHasBeenSet = true; m_progressPercentage = value; }
/**
* <p>The percentage of the slot migration that is complete.</p>
*/
inline SlotMigration& WithProgressPercentage(double value) { SetProgressPercentage(value); return *this;}
private:
double m_progressPercentage;
bool m_progressPercentageHasBeenSet;
};
} // namespace Model
} // namespace ElastiCache
} // namespace Aws