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,199 @@
/**
* 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>Describes an AWS Identity and Access Management (IAM) role that is associated
* with a DB cluster.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/neptune-2014-10-31/DBClusterRole">AWS
* API Reference</a></p>
*/
class AWS_NEPTUNE_API DBClusterRole
{
public:
DBClusterRole();
DBClusterRole(const Aws::Utils::Xml::XmlNode& xmlNode);
DBClusterRole& 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 Amazon Resource Name (ARN) of the IAM role that is associated with the DB
* cluster.</p>
*/
inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
/**
* <p>The Amazon Resource Name (ARN) of the IAM role that is associated with the DB
* cluster.</p>
*/
inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
/**
* <p>The Amazon Resource Name (ARN) of the IAM role that is associated with the DB
* cluster.</p>
*/
inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
/**
* <p>The Amazon Resource Name (ARN) of the IAM role that is associated with the DB
* cluster.</p>
*/
inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) of the IAM role that is associated with the DB
* cluster.</p>
*/
inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) of the IAM role that is associated with the DB
* cluster.</p>
*/
inline DBClusterRole& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the IAM role that is associated with the DB
* cluster.</p>
*/
inline DBClusterRole& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the IAM role that is associated with the DB
* cluster.</p>
*/
inline DBClusterRole& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
/**
* <p>Describes the state of association between the IAM role and the DB cluster.
* The Status property returns one of the following values:</p> <ul> <li> <p>
* <code>ACTIVE</code> - the IAM role ARN is associated with the DB cluster and can
* be used to access other AWS services on your behalf.</p> </li> <li> <p>
* <code>PENDING</code> - the IAM role ARN is being associated with the DB
* cluster.</p> </li> <li> <p> <code>INVALID</code> - the IAM role ARN is
* associated with the DB cluster, but the DB cluster is unable to assume the IAM
* role in order to access other AWS services on your behalf.</p> </li> </ul>
*/
inline const Aws::String& GetStatus() const{ return m_status; }
/**
* <p>Describes the state of association between the IAM role and the DB cluster.
* The Status property returns one of the following values:</p> <ul> <li> <p>
* <code>ACTIVE</code> - the IAM role ARN is associated with the DB cluster and can
* be used to access other AWS services on your behalf.</p> </li> <li> <p>
* <code>PENDING</code> - the IAM role ARN is being associated with the DB
* cluster.</p> </li> <li> <p> <code>INVALID</code> - the IAM role ARN is
* associated with the DB cluster, but the DB cluster is unable to assume the IAM
* role in order to access other AWS services on your behalf.</p> </li> </ul>
*/
inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
/**
* <p>Describes the state of association between the IAM role and the DB cluster.
* The Status property returns one of the following values:</p> <ul> <li> <p>
* <code>ACTIVE</code> - the IAM role ARN is associated with the DB cluster and can
* be used to access other AWS services on your behalf.</p> </li> <li> <p>
* <code>PENDING</code> - the IAM role ARN is being associated with the DB
* cluster.</p> </li> <li> <p> <code>INVALID</code> - the IAM role ARN is
* associated with the DB cluster, but the DB cluster is unable to assume the IAM
* role in order to access other AWS services on your behalf.</p> </li> </ul>
*/
inline void SetStatus(const Aws::String& value) { m_statusHasBeenSet = true; m_status = value; }
/**
* <p>Describes the state of association between the IAM role and the DB cluster.
* The Status property returns one of the following values:</p> <ul> <li> <p>
* <code>ACTIVE</code> - the IAM role ARN is associated with the DB cluster and can
* be used to access other AWS services on your behalf.</p> </li> <li> <p>
* <code>PENDING</code> - the IAM role ARN is being associated with the DB
* cluster.</p> </li> <li> <p> <code>INVALID</code> - the IAM role ARN is
* associated with the DB cluster, but the DB cluster is unable to assume the IAM
* role in order to access other AWS services on your behalf.</p> </li> </ul>
*/
inline void SetStatus(Aws::String&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
/**
* <p>Describes the state of association between the IAM role and the DB cluster.
* The Status property returns one of the following values:</p> <ul> <li> <p>
* <code>ACTIVE</code> - the IAM role ARN is associated with the DB cluster and can
* be used to access other AWS services on your behalf.</p> </li> <li> <p>
* <code>PENDING</code> - the IAM role ARN is being associated with the DB
* cluster.</p> </li> <li> <p> <code>INVALID</code> - the IAM role ARN is
* associated with the DB cluster, but the DB cluster is unable to assume the IAM
* role in order to access other AWS services on your behalf.</p> </li> </ul>
*/
inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); }
/**
* <p>Describes the state of association between the IAM role and the DB cluster.
* The Status property returns one of the following values:</p> <ul> <li> <p>
* <code>ACTIVE</code> - the IAM role ARN is associated with the DB cluster and can
* be used to access other AWS services on your behalf.</p> </li> <li> <p>
* <code>PENDING</code> - the IAM role ARN is being associated with the DB
* cluster.</p> </li> <li> <p> <code>INVALID</code> - the IAM role ARN is
* associated with the DB cluster, but the DB cluster is unable to assume the IAM
* role in order to access other AWS services on your behalf.</p> </li> </ul>
*/
inline DBClusterRole& WithStatus(const Aws::String& value) { SetStatus(value); return *this;}
/**
* <p>Describes the state of association between the IAM role and the DB cluster.
* The Status property returns one of the following values:</p> <ul> <li> <p>
* <code>ACTIVE</code> - the IAM role ARN is associated with the DB cluster and can
* be used to access other AWS services on your behalf.</p> </li> <li> <p>
* <code>PENDING</code> - the IAM role ARN is being associated with the DB
* cluster.</p> </li> <li> <p> <code>INVALID</code> - the IAM role ARN is
* associated with the DB cluster, but the DB cluster is unable to assume the IAM
* role in order to access other AWS services on your behalf.</p> </li> </ul>
*/
inline DBClusterRole& WithStatus(Aws::String&& value) { SetStatus(std::move(value)); return *this;}
/**
* <p>Describes the state of association between the IAM role and the DB cluster.
* The Status property returns one of the following values:</p> <ul> <li> <p>
* <code>ACTIVE</code> - the IAM role ARN is associated with the DB cluster and can
* be used to access other AWS services on your behalf.</p> </li> <li> <p>
* <code>PENDING</code> - the IAM role ARN is being associated with the DB
* cluster.</p> </li> <li> <p> <code>INVALID</code> - the IAM role ARN is
* associated with the DB cluster, but the DB cluster is unable to assume the IAM
* role in order to access other AWS services on your behalf.</p> </li> </ul>
*/
inline DBClusterRole& WithStatus(const char* value) { SetStatus(value); return *this;}
private:
Aws::String m_roleArn;
bool m_roleArnHasBeenSet;
Aws::String m_status;
bool m_statusHasBeenSet;
};
} // namespace Model
} // namespace Neptune
} // namespace Aws