260 lines
12 KiB
C
260 lines
12 KiB
C
|
|
/**
|
|||
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|||
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|||
|
|
*/
|
|||
|
|
|
|||
|
|
#pragma once
|
|||
|
|
#include <aws/rds/RDS_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 RDS
|
|||
|
|
{
|
|||
|
|
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/rds-2014-10-31/DBClusterRole">AWS
|
|||
|
|
* API Reference</a></p>
|
|||
|
|
*/
|
|||
|
|
class AWS_RDS_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;}
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The name of the feature associated with the AWS Identity and Access
|
|||
|
|
* Management (IAM) role. For the list of supported feature names, see
|
|||
|
|
* <a>DBEngineVersion</a>. </p>
|
|||
|
|
*/
|
|||
|
|
inline const Aws::String& GetFeatureName() const{ return m_featureName; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The name of the feature associated with the AWS Identity and Access
|
|||
|
|
* Management (IAM) role. For the list of supported feature names, see
|
|||
|
|
* <a>DBEngineVersion</a>. </p>
|
|||
|
|
*/
|
|||
|
|
inline bool FeatureNameHasBeenSet() const { return m_featureNameHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The name of the feature associated with the AWS Identity and Access
|
|||
|
|
* Management (IAM) role. For the list of supported feature names, see
|
|||
|
|
* <a>DBEngineVersion</a>. </p>
|
|||
|
|
*/
|
|||
|
|
inline void SetFeatureName(const Aws::String& value) { m_featureNameHasBeenSet = true; m_featureName = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The name of the feature associated with the AWS Identity and Access
|
|||
|
|
* Management (IAM) role. For the list of supported feature names, see
|
|||
|
|
* <a>DBEngineVersion</a>. </p>
|
|||
|
|
*/
|
|||
|
|
inline void SetFeatureName(Aws::String&& value) { m_featureNameHasBeenSet = true; m_featureName = std::move(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The name of the feature associated with the AWS Identity and Access
|
|||
|
|
* Management (IAM) role. For the list of supported feature names, see
|
|||
|
|
* <a>DBEngineVersion</a>. </p>
|
|||
|
|
*/
|
|||
|
|
inline void SetFeatureName(const char* value) { m_featureNameHasBeenSet = true; m_featureName.assign(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The name of the feature associated with the AWS Identity and Access
|
|||
|
|
* Management (IAM) role. For the list of supported feature names, see
|
|||
|
|
* <a>DBEngineVersion</a>. </p>
|
|||
|
|
*/
|
|||
|
|
inline DBClusterRole& WithFeatureName(const Aws::String& value) { SetFeatureName(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The name of the feature associated with the AWS Identity and Access
|
|||
|
|
* Management (IAM) role. For the list of supported feature names, see
|
|||
|
|
* <a>DBEngineVersion</a>. </p>
|
|||
|
|
*/
|
|||
|
|
inline DBClusterRole& WithFeatureName(Aws::String&& value) { SetFeatureName(std::move(value)); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The name of the feature associated with the AWS Identity and Access
|
|||
|
|
* Management (IAM) role. For the list of supported feature names, see
|
|||
|
|
* <a>DBEngineVersion</a>. </p>
|
|||
|
|
*/
|
|||
|
|
inline DBClusterRole& WithFeatureName(const char* value) { SetFeatureName(value); return *this;}
|
|||
|
|
|
|||
|
|
private:
|
|||
|
|
|
|||
|
|
Aws::String m_roleArn;
|
|||
|
|
bool m_roleArnHasBeenSet;
|
|||
|
|
|
|||
|
|
Aws::String m_status;
|
|||
|
|
bool m_statusHasBeenSet;
|
|||
|
|
|
|||
|
|
Aws::String m_featureName;
|
|||
|
|
bool m_featureNameHasBeenSet;
|
|||
|
|
};
|
|||
|
|
|
|||
|
|
} // namespace Model
|
|||
|
|
} // namespace RDS
|
|||
|
|
} // namespace Aws
|