/** * 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 OpsWorks { namespace Model { /** *

Describes an Amazon RDS instance.

See Also:

AWS * API Reference

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

The instance's ARN.

*/ inline const Aws::String& GetRdsDbInstanceArn() const{ return m_rdsDbInstanceArn; } /** *

The instance's ARN.

*/ inline bool RdsDbInstanceArnHasBeenSet() const { return m_rdsDbInstanceArnHasBeenSet; } /** *

The instance's ARN.

*/ inline void SetRdsDbInstanceArn(const Aws::String& value) { m_rdsDbInstanceArnHasBeenSet = true; m_rdsDbInstanceArn = value; } /** *

The instance's ARN.

*/ inline void SetRdsDbInstanceArn(Aws::String&& value) { m_rdsDbInstanceArnHasBeenSet = true; m_rdsDbInstanceArn = std::move(value); } /** *

The instance's ARN.

*/ inline void SetRdsDbInstanceArn(const char* value) { m_rdsDbInstanceArnHasBeenSet = true; m_rdsDbInstanceArn.assign(value); } /** *

The instance's ARN.

*/ inline RdsDbInstance& WithRdsDbInstanceArn(const Aws::String& value) { SetRdsDbInstanceArn(value); return *this;} /** *

The instance's ARN.

*/ inline RdsDbInstance& WithRdsDbInstanceArn(Aws::String&& value) { SetRdsDbInstanceArn(std::move(value)); return *this;} /** *

The instance's ARN.

*/ inline RdsDbInstance& WithRdsDbInstanceArn(const char* value) { SetRdsDbInstanceArn(value); return *this;} /** *

The DB instance identifier.

*/ inline const Aws::String& GetDbInstanceIdentifier() const{ return m_dbInstanceIdentifier; } /** *

The DB instance identifier.

*/ inline bool DbInstanceIdentifierHasBeenSet() const { return m_dbInstanceIdentifierHasBeenSet; } /** *

The DB instance identifier.

*/ inline void SetDbInstanceIdentifier(const Aws::String& value) { m_dbInstanceIdentifierHasBeenSet = true; m_dbInstanceIdentifier = value; } /** *

The DB instance identifier.

*/ inline void SetDbInstanceIdentifier(Aws::String&& value) { m_dbInstanceIdentifierHasBeenSet = true; m_dbInstanceIdentifier = std::move(value); } /** *

The DB instance identifier.

*/ inline void SetDbInstanceIdentifier(const char* value) { m_dbInstanceIdentifierHasBeenSet = true; m_dbInstanceIdentifier.assign(value); } /** *

The DB instance identifier.

*/ inline RdsDbInstance& WithDbInstanceIdentifier(const Aws::String& value) { SetDbInstanceIdentifier(value); return *this;} /** *

The DB instance identifier.

*/ inline RdsDbInstance& WithDbInstanceIdentifier(Aws::String&& value) { SetDbInstanceIdentifier(std::move(value)); return *this;} /** *

The DB instance identifier.

*/ inline RdsDbInstance& WithDbInstanceIdentifier(const char* value) { SetDbInstanceIdentifier(value); return *this;} /** *

The master user name.

*/ inline const Aws::String& GetDbUser() const{ return m_dbUser; } /** *

The master user name.

*/ inline bool DbUserHasBeenSet() const { return m_dbUserHasBeenSet; } /** *

The master user name.

*/ inline void SetDbUser(const Aws::String& value) { m_dbUserHasBeenSet = true; m_dbUser = value; } /** *

The master user name.

*/ inline void SetDbUser(Aws::String&& value) { m_dbUserHasBeenSet = true; m_dbUser = std::move(value); } /** *

The master user name.

*/ inline void SetDbUser(const char* value) { m_dbUserHasBeenSet = true; m_dbUser.assign(value); } /** *

The master user name.

*/ inline RdsDbInstance& WithDbUser(const Aws::String& value) { SetDbUser(value); return *this;} /** *

The master user name.

*/ inline RdsDbInstance& WithDbUser(Aws::String&& value) { SetDbUser(std::move(value)); return *this;} /** *

The master user name.

*/ inline RdsDbInstance& WithDbUser(const char* value) { SetDbUser(value); return *this;} /** *

AWS OpsWorks Stacks returns *****FILTERED***** instead of the * actual value.

*/ inline const Aws::String& GetDbPassword() const{ return m_dbPassword; } /** *

AWS OpsWorks Stacks returns *****FILTERED***** instead of the * actual value.

*/ inline bool DbPasswordHasBeenSet() const { return m_dbPasswordHasBeenSet; } /** *

AWS OpsWorks Stacks returns *****FILTERED***** instead of the * actual value.

*/ inline void SetDbPassword(const Aws::String& value) { m_dbPasswordHasBeenSet = true; m_dbPassword = value; } /** *

AWS OpsWorks Stacks returns *****FILTERED***** instead of the * actual value.

*/ inline void SetDbPassword(Aws::String&& value) { m_dbPasswordHasBeenSet = true; m_dbPassword = std::move(value); } /** *

AWS OpsWorks Stacks returns *****FILTERED***** instead of the * actual value.

*/ inline void SetDbPassword(const char* value) { m_dbPasswordHasBeenSet = true; m_dbPassword.assign(value); } /** *

AWS OpsWorks Stacks returns *****FILTERED***** instead of the * actual value.

*/ inline RdsDbInstance& WithDbPassword(const Aws::String& value) { SetDbPassword(value); return *this;} /** *

AWS OpsWorks Stacks returns *****FILTERED***** instead of the * actual value.

*/ inline RdsDbInstance& WithDbPassword(Aws::String&& value) { SetDbPassword(std::move(value)); return *this;} /** *

AWS OpsWorks Stacks returns *****FILTERED***** instead of the * actual value.

*/ inline RdsDbInstance& WithDbPassword(const char* value) { SetDbPassword(value); return *this;} /** *

The instance's AWS region.

*/ inline const Aws::String& GetRegion() const{ return m_region; } /** *

The instance's AWS region.

*/ inline bool RegionHasBeenSet() const { return m_regionHasBeenSet; } /** *

The instance's AWS region.

*/ inline void SetRegion(const Aws::String& value) { m_regionHasBeenSet = true; m_region = value; } /** *

The instance's AWS region.

*/ inline void SetRegion(Aws::String&& value) { m_regionHasBeenSet = true; m_region = std::move(value); } /** *

The instance's AWS region.

*/ inline void SetRegion(const char* value) { m_regionHasBeenSet = true; m_region.assign(value); } /** *

The instance's AWS region.

*/ inline RdsDbInstance& WithRegion(const Aws::String& value) { SetRegion(value); return *this;} /** *

The instance's AWS region.

*/ inline RdsDbInstance& WithRegion(Aws::String&& value) { SetRegion(std::move(value)); return *this;} /** *

The instance's AWS region.

*/ inline RdsDbInstance& WithRegion(const char* value) { SetRegion(value); return *this;} /** *

The instance's address.

*/ inline const Aws::String& GetAddress() const{ return m_address; } /** *

The instance's address.

*/ inline bool AddressHasBeenSet() const { return m_addressHasBeenSet; } /** *

The instance's address.

*/ inline void SetAddress(const Aws::String& value) { m_addressHasBeenSet = true; m_address = value; } /** *

The instance's address.

*/ inline void SetAddress(Aws::String&& value) { m_addressHasBeenSet = true; m_address = std::move(value); } /** *

The instance's address.

*/ inline void SetAddress(const char* value) { m_addressHasBeenSet = true; m_address.assign(value); } /** *

The instance's address.

*/ inline RdsDbInstance& WithAddress(const Aws::String& value) { SetAddress(value); return *this;} /** *

The instance's address.

*/ inline RdsDbInstance& WithAddress(Aws::String&& value) { SetAddress(std::move(value)); return *this;} /** *

The instance's address.

*/ inline RdsDbInstance& WithAddress(const char* value) { SetAddress(value); return *this;} /** *

The instance's database engine.

*/ inline const Aws::String& GetEngine() const{ return m_engine; } /** *

The instance's database engine.

*/ inline bool EngineHasBeenSet() const { return m_engineHasBeenSet; } /** *

The instance's database engine.

*/ inline void SetEngine(const Aws::String& value) { m_engineHasBeenSet = true; m_engine = value; } /** *

The instance's database engine.

*/ inline void SetEngine(Aws::String&& value) { m_engineHasBeenSet = true; m_engine = std::move(value); } /** *

The instance's database engine.

*/ inline void SetEngine(const char* value) { m_engineHasBeenSet = true; m_engine.assign(value); } /** *

The instance's database engine.

*/ inline RdsDbInstance& WithEngine(const Aws::String& value) { SetEngine(value); return *this;} /** *

The instance's database engine.

*/ inline RdsDbInstance& WithEngine(Aws::String&& value) { SetEngine(std::move(value)); return *this;} /** *

The instance's database engine.

*/ inline RdsDbInstance& WithEngine(const char* value) { SetEngine(value); return *this;} /** *

The ID of the stack with which the instance is registered.

*/ inline const Aws::String& GetStackId() const{ return m_stackId; } /** *

The ID of the stack with which the instance is registered.

*/ inline bool StackIdHasBeenSet() const { return m_stackIdHasBeenSet; } /** *

The ID of the stack with which the instance is registered.

*/ inline void SetStackId(const Aws::String& value) { m_stackIdHasBeenSet = true; m_stackId = value; } /** *

The ID of the stack with which the instance is registered.

*/ inline void SetStackId(Aws::String&& value) { m_stackIdHasBeenSet = true; m_stackId = std::move(value); } /** *

The ID of the stack with which the instance is registered.

*/ inline void SetStackId(const char* value) { m_stackIdHasBeenSet = true; m_stackId.assign(value); } /** *

The ID of the stack with which the instance is registered.

*/ inline RdsDbInstance& WithStackId(const Aws::String& value) { SetStackId(value); return *this;} /** *

The ID of the stack with which the instance is registered.

*/ inline RdsDbInstance& WithStackId(Aws::String&& value) { SetStackId(std::move(value)); return *this;} /** *

The ID of the stack with which the instance is registered.

*/ inline RdsDbInstance& WithStackId(const char* value) { SetStackId(value); return *this;} /** *

Set to true if AWS OpsWorks Stacks is unable to discover the * Amazon RDS instance. AWS OpsWorks Stacks attempts to discover the instance only * once. If this value is set to true, you must deregister the * instance, and then register it again.

*/ inline bool GetMissingOnRds() const{ return m_missingOnRds; } /** *

Set to true if AWS OpsWorks Stacks is unable to discover the * Amazon RDS instance. AWS OpsWorks Stacks attempts to discover the instance only * once. If this value is set to true, you must deregister the * instance, and then register it again.

*/ inline bool MissingOnRdsHasBeenSet() const { return m_missingOnRdsHasBeenSet; } /** *

Set to true if AWS OpsWorks Stacks is unable to discover the * Amazon RDS instance. AWS OpsWorks Stacks attempts to discover the instance only * once. If this value is set to true, you must deregister the * instance, and then register it again.

*/ inline void SetMissingOnRds(bool value) { m_missingOnRdsHasBeenSet = true; m_missingOnRds = value; } /** *

Set to true if AWS OpsWorks Stacks is unable to discover the * Amazon RDS instance. AWS OpsWorks Stacks attempts to discover the instance only * once. If this value is set to true, you must deregister the * instance, and then register it again.

*/ inline RdsDbInstance& WithMissingOnRds(bool value) { SetMissingOnRds(value); return *this;} private: Aws::String m_rdsDbInstanceArn; bool m_rdsDbInstanceArnHasBeenSet = false; Aws::String m_dbInstanceIdentifier; bool m_dbInstanceIdentifierHasBeenSet = false; Aws::String m_dbUser; bool m_dbUserHasBeenSet = false; Aws::String m_dbPassword; bool m_dbPasswordHasBeenSet = false; Aws::String m_region; bool m_regionHasBeenSet = false; Aws::String m_address; bool m_addressHasBeenSet = false; Aws::String m_engine; bool m_engineHasBeenSet = false; Aws::String m_stackId; bool m_stackIdHasBeenSet = false; bool m_missingOnRds; bool m_missingOnRdsHasBeenSet = false; }; } // namespace Model } // namespace OpsWorks } // namespace Aws