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

An IAM role that is associated with the Amazon RDS DB cluster.

See * Also:

AWS * API Reference

*/ class AwsRdsDbClusterAssociatedRole { public: AWS_SECURITYHUB_API AwsRdsDbClusterAssociatedRole(); AWS_SECURITYHUB_API AwsRdsDbClusterAssociatedRole(Aws::Utils::Json::JsonView jsonValue); AWS_SECURITYHUB_API AwsRdsDbClusterAssociatedRole& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The ARN of the IAM role.

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

The ARN of the IAM role.

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

The ARN of the IAM role.

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

The ARN of the IAM role.

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

The ARN of the IAM role.

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

The ARN of the IAM role.

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

The ARN of the IAM role.

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

The ARN of the IAM role.

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

The status of the association between the IAM role and the DB cluster. Valid * values are as follows:

  • ACTIVE

  • * INVALID

  • PENDING

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

The status of the association between the IAM role and the DB cluster. Valid * values are as follows:

  • ACTIVE

  • * INVALID

  • PENDING

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

The status of the association between the IAM role and the DB cluster. Valid * values are as follows:

  • ACTIVE

  • * INVALID

  • PENDING

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

The status of the association between the IAM role and the DB cluster. Valid * values are as follows:

  • ACTIVE

  • * INVALID

  • PENDING

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

The status of the association between the IAM role and the DB cluster. Valid * values are as follows:

  • ACTIVE

  • * INVALID

  • PENDING

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

The status of the association between the IAM role and the DB cluster. Valid * values are as follows:

  • ACTIVE

  • * INVALID

  • PENDING

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

The status of the association between the IAM role and the DB cluster. Valid * values are as follows:

  • ACTIVE

  • * INVALID

  • PENDING

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

The status of the association between the IAM role and the DB cluster. Valid * values are as follows:

  • ACTIVE

  • * INVALID

  • PENDING

*/ inline AwsRdsDbClusterAssociatedRole& 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 SecurityHub } // namespace Aws