/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Utils { namespace Xml { class XmlNode; } // namespace Xml } // namespace Utils namespace DocDB { namespace Model { /** *

Describes an Identity and Access Management (IAM) role that is associated * with a cluster.

See Also:

AWS * API Reference

*/ class DBClusterRole { public: AWS_DOCDB_API DBClusterRole(); AWS_DOCDB_API DBClusterRole(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_DOCDB_API DBClusterRole& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_DOCDB_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const; AWS_DOCDB_API void OutputToStream(Aws::OStream& oStream, const char* location) const; /** *

The Amazon Resource Name (ARN) of the IAMrole that is associated with the DB * cluster.

*/ inline const Aws::String& GetRoleArn() const{ return m_roleArn; } /** *

The Amazon Resource Name (ARN) of the IAMrole that is associated with the DB * cluster.

*/ inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the IAMrole that is associated with the DB * cluster.

*/ inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; } /** *

The Amazon Resource Name (ARN) of the IAMrole that is associated with the DB * cluster.

*/ inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the IAMrole that is associated with the DB * cluster.

*/ inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the IAMrole that is associated with the DB * cluster.

*/ inline DBClusterRole& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the IAMrole that is associated with the DB * cluster.

*/ inline DBClusterRole& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the IAMrole that is associated with the DB * cluster.

*/ inline DBClusterRole& WithRoleArn(const char* value) { SetRoleArn(value); return *this;} /** *

Describes the state of association between the IAMrole and the cluster. The * Status property returns one of the following values:

  • *

    ACTIVE - The IAMrole ARN is associated with the cluster and can * be used to access other Amazon Web Services services on your behalf.

  • *
  • PENDING - The IAMrole ARN is being associated with the * cluster.

  • INVALID - The IAMrole ARN is associated * with the cluster, but the cluster cannot assume the IAMrole to access other * Amazon Web Services services on your behalf.

*/ inline const Aws::String& GetStatus() const{ return m_status; } /** *

Describes the state of association between the IAMrole and the cluster. The * Status property returns one of the following values:

  • *

    ACTIVE - The IAMrole ARN is associated with the cluster and can * be used to access other Amazon Web Services services on your behalf.

  • *
  • PENDING - The IAMrole ARN is being associated with the * cluster.

  • INVALID - The IAMrole ARN is associated * with the cluster, but the cluster cannot assume the IAMrole to access other * Amazon Web Services services on your behalf.

*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *

Describes the state of association between the IAMrole and the cluster. The * Status property returns one of the following values:

  • *

    ACTIVE - The IAMrole ARN is associated with the cluster and can * be used to access other Amazon Web Services services on your behalf.

  • *
  • PENDING - The IAMrole ARN is being associated with the * cluster.

  • INVALID - The IAMrole ARN is associated * with the cluster, but the cluster cannot assume the IAMrole to access other * Amazon Web Services services on your behalf.

*/ inline void SetStatus(const Aws::String& value) { m_statusHasBeenSet = true; m_status = value; } /** *

Describes the state of association between the IAMrole and the cluster. The * Status property returns one of the following values:

  • *

    ACTIVE - The IAMrole ARN is associated with the cluster and can * be used to access other Amazon Web Services services on your behalf.

  • *
  • PENDING - The IAMrole ARN is being associated with the * cluster.

  • INVALID - The IAMrole ARN is associated * with the cluster, but the cluster cannot assume the IAMrole to access other * Amazon Web Services services on your behalf.

*/ inline void SetStatus(Aws::String&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *

Describes the state of association between the IAMrole and the cluster. The * Status property returns one of the following values:

  • *

    ACTIVE - The IAMrole ARN is associated with the cluster and can * be used to access other Amazon Web Services services on your behalf.

  • *
  • PENDING - The IAMrole ARN is being associated with the * cluster.

  • INVALID - The IAMrole ARN is associated * with the cluster, but the cluster cannot assume the IAMrole to access other * Amazon Web Services services on your behalf.

*/ inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); } /** *

Describes the state of association between the IAMrole and the cluster. The * Status property returns one of the following values:

  • *

    ACTIVE - The IAMrole ARN is associated with the cluster and can * be used to access other Amazon Web Services services on your behalf.

  • *
  • PENDING - The IAMrole ARN is being associated with the * cluster.

  • INVALID - The IAMrole ARN is associated * with the cluster, but the cluster cannot assume the IAMrole to access other * Amazon Web Services services on your behalf.

*/ inline DBClusterRole& WithStatus(const Aws::String& value) { SetStatus(value); return *this;} /** *

Describes the state of association between the IAMrole and the cluster. The * Status property returns one of the following values:

  • *

    ACTIVE - The IAMrole ARN is associated with the cluster and can * be used to access other Amazon Web Services services on your behalf.

  • *
  • PENDING - The IAMrole ARN is being associated with the * cluster.

  • INVALID - The IAMrole ARN is associated * with the cluster, but the cluster cannot assume the IAMrole to access other * Amazon Web Services services on your behalf.

*/ inline DBClusterRole& WithStatus(Aws::String&& value) { SetStatus(std::move(value)); return *this;} /** *

Describes the state of association between the IAMrole and the cluster. The * Status property returns one of the following values:

  • *

    ACTIVE - The IAMrole ARN is associated with the cluster and can * be used to access other Amazon Web Services services on your behalf.

  • *
  • PENDING - The IAMrole ARN is being associated with the * cluster.

  • INVALID - The IAMrole ARN is associated * with the cluster, but the cluster cannot assume the IAMrole to access other * Amazon Web Services services on your behalf.

*/ inline DBClusterRole& WithStatus(const char* value) { SetStatus(value); return *this;} private: Aws::String m_roleArn; bool m_roleArnHasBeenSet = false; Aws::String m_status; bool m_statusHasBeenSet = false; }; } // namespace Model } // namespace DocDB } // namespace Aws