This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
pxz-hos-client-cpp-module/support/aws-sdk-cpp-master/aws-cpp-sdk-rds/include/aws/rds/model/DBInstanceRole.h

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 instance.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DBInstanceRole">AWS
* API Reference</a></p>
*/
class AWS_RDS_API DBInstanceRole
{
public:
DBInstanceRole();
DBInstanceRole(const Aws::Utils::Xml::XmlNode& xmlNode);
DBInstanceRole& 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
* instance.</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
* instance.</p>
*/
inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
/**
* <p>The Amazon Resource Name (ARN) of the IAM role that is associated with the DB
* instance.</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
* instance.</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
* instance.</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
* instance.</p>
*/
inline DBInstanceRole& 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
* instance.</p>
*/
inline DBInstanceRole& 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
* instance.</p>
*/
inline DBInstanceRole& WithRoleArn(const char* value) { SetRoleArn(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
* <code>DBEngineVersion</code>. </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
* <code>DBEngineVersion</code>. </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
* <code>DBEngineVersion</code>. </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
* <code>DBEngineVersion</code>. </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
* <code>DBEngineVersion</code>. </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
* <code>DBEngineVersion</code>. </p>
*/
inline DBInstanceRole& 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
* <code>DBEngineVersion</code>. </p>
*/
inline DBInstanceRole& 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
* <code>DBEngineVersion</code>. </p>
*/
inline DBInstanceRole& WithFeatureName(const char* value) { SetFeatureName(value); return *this;}
/**
* <p>Describes the state of association between the IAM role and the DB instance.
* 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 instance 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
* instance.</p> </li> <li> <p> <code>INVALID</code> - the IAM role ARN is
* associated with the DB instance, but the DB instance 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 instance.
* 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 instance 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
* instance.</p> </li> <li> <p> <code>INVALID</code> - the IAM role ARN is
* associated with the DB instance, but the DB instance 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 instance.
* 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 instance 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
* instance.</p> </li> <li> <p> <code>INVALID</code> - the IAM role ARN is
* associated with the DB instance, but the DB instance 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 instance.
* 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 instance 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
* instance.</p> </li> <li> <p> <code>INVALID</code> - the IAM role ARN is
* associated with the DB instance, but the DB instance 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 instance.
* 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 instance 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
* instance.</p> </li> <li> <p> <code>INVALID</code> - the IAM role ARN is
* associated with the DB instance, but the DB instance 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 instance.
* 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 instance 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
* instance.</p> </li> <li> <p> <code>INVALID</code> - the IAM role ARN is
* associated with the DB instance, but the DB instance is unable to assume the IAM
* role in order to access other AWS services on your behalf.</p> </li> </ul>
*/
inline DBInstanceRole& WithStatus(const Aws::String& value) { SetStatus(value); return *this;}
/**
* <p>Describes the state of association between the IAM role and the DB instance.
* 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 instance 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
* instance.</p> </li> <li> <p> <code>INVALID</code> - the IAM role ARN is
* associated with the DB instance, but the DB instance is unable to assume the IAM
* role in order to access other AWS services on your behalf.</p> </li> </ul>
*/
inline DBInstanceRole& WithStatus(Aws::String&& value) { SetStatus(std::move(value)); return *this;}
/**
* <p>Describes the state of association between the IAM role and the DB instance.
* 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 instance 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
* instance.</p> </li> <li> <p> <code>INVALID</code> - the IAM role ARN is
* associated with the DB instance, but the DB instance is unable to assume the IAM
* role in order to access other AWS services on your behalf.</p> </li> </ul>
*/
inline DBInstanceRole& WithStatus(const char* value) { SetStatus(value); return *this;}
private:
Aws::String m_roleArn;
bool m_roleArnHasBeenSet;
Aws::String m_featureName;
bool m_featureNameHasBeenSet;
Aws::String m_status;
bool m_statusHasBeenSet;
};
} // namespace Model
} // namespace RDS
} // namespace Aws