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,223 @@
/**
* 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>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Xml
{
class XmlNode;
} // namespace Xml
} // namespace Utils
namespace Neptune
{
namespace Model
{
/**
* <p>Provides a list of status information for a DB instance.</p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/neptune-2014-10-31/DBInstanceStatusInfo">AWS
* API Reference</a></p>
*/
class AWS_NEPTUNE_API DBInstanceStatusInfo
{
public:
DBInstanceStatusInfo();
DBInstanceStatusInfo(const Aws::Utils::Xml::XmlNode& xmlNode);
DBInstanceStatusInfo& 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>This value is currently "read replication."</p>
*/
inline const Aws::String& GetStatusType() const{ return m_statusType; }
/**
* <p>This value is currently "read replication."</p>
*/
inline bool StatusTypeHasBeenSet() const { return m_statusTypeHasBeenSet; }
/**
* <p>This value is currently "read replication."</p>
*/
inline void SetStatusType(const Aws::String& value) { m_statusTypeHasBeenSet = true; m_statusType = value; }
/**
* <p>This value is currently "read replication."</p>
*/
inline void SetStatusType(Aws::String&& value) { m_statusTypeHasBeenSet = true; m_statusType = std::move(value); }
/**
* <p>This value is currently "read replication."</p>
*/
inline void SetStatusType(const char* value) { m_statusTypeHasBeenSet = true; m_statusType.assign(value); }
/**
* <p>This value is currently "read replication."</p>
*/
inline DBInstanceStatusInfo& WithStatusType(const Aws::String& value) { SetStatusType(value); return *this;}
/**
* <p>This value is currently "read replication."</p>
*/
inline DBInstanceStatusInfo& WithStatusType(Aws::String&& value) { SetStatusType(std::move(value)); return *this;}
/**
* <p>This value is currently "read replication."</p>
*/
inline DBInstanceStatusInfo& WithStatusType(const char* value) { SetStatusType(value); return *this;}
/**
* <p>Boolean value that is true if the instance is operating normally, or false if
* the instance is in an error state.</p>
*/
inline bool GetNormal() const{ return m_normal; }
/**
* <p>Boolean value that is true if the instance is operating normally, or false if
* the instance is in an error state.</p>
*/
inline bool NormalHasBeenSet() const { return m_normalHasBeenSet; }
/**
* <p>Boolean value that is true if the instance is operating normally, or false if
* the instance is in an error state.</p>
*/
inline void SetNormal(bool value) { m_normalHasBeenSet = true; m_normal = value; }
/**
* <p>Boolean value that is true if the instance is operating normally, or false if
* the instance is in an error state.</p>
*/
inline DBInstanceStatusInfo& WithNormal(bool value) { SetNormal(value); return *this;}
/**
* <p>Status of the DB instance. For a StatusType of read replica, the values can
* be replicating, error, stopped, or terminated.</p>
*/
inline const Aws::String& GetStatus() const{ return m_status; }
/**
* <p>Status of the DB instance. For a StatusType of read replica, the values can
* be replicating, error, stopped, or terminated.</p>
*/
inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
/**
* <p>Status of the DB instance. For a StatusType of read replica, the values can
* be replicating, error, stopped, or terminated.</p>
*/
inline void SetStatus(const Aws::String& value) { m_statusHasBeenSet = true; m_status = value; }
/**
* <p>Status of the DB instance. For a StatusType of read replica, the values can
* be replicating, error, stopped, or terminated.</p>
*/
inline void SetStatus(Aws::String&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
/**
* <p>Status of the DB instance. For a StatusType of read replica, the values can
* be replicating, error, stopped, or terminated.</p>
*/
inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); }
/**
* <p>Status of the DB instance. For a StatusType of read replica, the values can
* be replicating, error, stopped, or terminated.</p>
*/
inline DBInstanceStatusInfo& WithStatus(const Aws::String& value) { SetStatus(value); return *this;}
/**
* <p>Status of the DB instance. For a StatusType of read replica, the values can
* be replicating, error, stopped, or terminated.</p>
*/
inline DBInstanceStatusInfo& WithStatus(Aws::String&& value) { SetStatus(std::move(value)); return *this;}
/**
* <p>Status of the DB instance. For a StatusType of read replica, the values can
* be replicating, error, stopped, or terminated.</p>
*/
inline DBInstanceStatusInfo& WithStatus(const char* value) { SetStatus(value); return *this;}
/**
* <p>Details of the error if there is an error for the instance. If the instance
* is not in an error state, this value is blank.</p>
*/
inline const Aws::String& GetMessage() const{ return m_message; }
/**
* <p>Details of the error if there is an error for the instance. If the instance
* is not in an error state, this value is blank.</p>
*/
inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
/**
* <p>Details of the error if there is an error for the instance. If the instance
* is not in an error state, this value is blank.</p>
*/
inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
/**
* <p>Details of the error if there is an error for the instance. If the instance
* is not in an error state, this value is blank.</p>
*/
inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
/**
* <p>Details of the error if there is an error for the instance. If the instance
* is not in an error state, this value is blank.</p>
*/
inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
/**
* <p>Details of the error if there is an error for the instance. If the instance
* is not in an error state, this value is blank.</p>
*/
inline DBInstanceStatusInfo& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
/**
* <p>Details of the error if there is an error for the instance. If the instance
* is not in an error state, this value is blank.</p>
*/
inline DBInstanceStatusInfo& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
/**
* <p>Details of the error if there is an error for the instance. If the instance
* is not in an error state, this value is blank.</p>
*/
inline DBInstanceStatusInfo& WithMessage(const char* value) { SetMessage(value); return *this;}
private:
Aws::String m_statusType;
bool m_statusTypeHasBeenSet;
bool m_normal;
bool m_normalHasBeenSet;
Aws::String m_status;
bool m_statusHasBeenSet;
Aws::String m_message;
bool m_messageHasBeenSet;
};
} // namespace Model
} // namespace Neptune
} // namespace Aws