Class RdsDbInstance
- java.lang.Object
-
- com.amazonaws.services.opsworks.model.RdsDbInstance
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class RdsDbInstance extends Object implements Serializable, Cloneable
Describes an Amazon RDS instance.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description RdsDbInstance()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RdsDbInstance
clone()
boolean
equals(Object obj)
String
getAddress()
The instance's address.String
getDbInstanceIdentifier()
The DB instance identifier.String
getDbPassword()
AWS OpsWorks returns*****FILTERED*****
instead of the actual value.String
getDbUser()
The master user name.String
getEngine()
The instance's database engine.Boolean
getMissingOnRds()
Set totrue
if AWS OpsWorks was unable to discover the Amazon RDS instance.String
getRdsDbInstanceArn()
The instance's ARN.String
getRegion()
The instance's AWS region.String
getStackId()
The ID of the stack that the instance is registered with.int
hashCode()
Boolean
isMissingOnRds()
Set totrue
if AWS OpsWorks was unable to discover the Amazon RDS instance.void
setAddress(String address)
The instance's address.void
setDbInstanceIdentifier(String dbInstanceIdentifier)
The DB instance identifier.void
setDbPassword(String dbPassword)
AWS OpsWorks returns*****FILTERED*****
instead of the actual value.void
setDbUser(String dbUser)
The master user name.void
setEngine(String engine)
The instance's database engine.void
setMissingOnRds(Boolean missingOnRds)
Set totrue
if AWS OpsWorks was unable to discover the Amazon RDS instance.void
setRdsDbInstanceArn(String rdsDbInstanceArn)
The instance's ARN.void
setRegion(String region)
The instance's AWS region.void
setStackId(String stackId)
The ID of the stack that the instance is registered with.String
toString()
Returns a string representation of this object; useful for testing and debugging.RdsDbInstance
withAddress(String address)
The instance's address.RdsDbInstance
withDbInstanceIdentifier(String dbInstanceIdentifier)
The DB instance identifier.RdsDbInstance
withDbPassword(String dbPassword)
AWS OpsWorks returns*****FILTERED*****
instead of the actual value.RdsDbInstance
withDbUser(String dbUser)
The master user name.RdsDbInstance
withEngine(String engine)
The instance's database engine.RdsDbInstance
withMissingOnRds(Boolean missingOnRds)
Set totrue
if AWS OpsWorks was unable to discover the Amazon RDS instance.RdsDbInstance
withRdsDbInstanceArn(String rdsDbInstanceArn)
The instance's ARN.RdsDbInstance
withRegion(String region)
The instance's AWS region.RdsDbInstance
withStackId(String stackId)
The ID of the stack that the instance is registered with.
-
-
-
Method Detail
-
setRdsDbInstanceArn
public void setRdsDbInstanceArn(String rdsDbInstanceArn)
The instance's ARN.
- Parameters:
rdsDbInstanceArn
- The instance's ARN.
-
getRdsDbInstanceArn
public String getRdsDbInstanceArn()
The instance's ARN.
- Returns:
- The instance's ARN.
-
withRdsDbInstanceArn
public RdsDbInstance withRdsDbInstanceArn(String rdsDbInstanceArn)
The instance's ARN.
- Parameters:
rdsDbInstanceArn
- The instance's ARN.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setDbInstanceIdentifier
public void setDbInstanceIdentifier(String dbInstanceIdentifier)
The DB instance identifier.
- Parameters:
dbInstanceIdentifier
- The DB instance identifier.
-
getDbInstanceIdentifier
public String getDbInstanceIdentifier()
The DB instance identifier.
- Returns:
- The DB instance identifier.
-
withDbInstanceIdentifier
public RdsDbInstance withDbInstanceIdentifier(String dbInstanceIdentifier)
The DB instance identifier.
- Parameters:
dbInstanceIdentifier
- The DB instance identifier.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setDbUser
public void setDbUser(String dbUser)
The master user name.
- Parameters:
dbUser
- The master user name.
-
getDbUser
public String getDbUser()
The master user name.
- Returns:
- The master user name.
-
withDbUser
public RdsDbInstance withDbUser(String dbUser)
The master user name.
- Parameters:
dbUser
- The master user name.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setDbPassword
public void setDbPassword(String dbPassword)
AWS OpsWorks returns
*****FILTERED*****
instead of the actual value.- Parameters:
dbPassword
- AWS OpsWorks returns*****FILTERED*****
instead of the actual value.
-
getDbPassword
public String getDbPassword()
AWS OpsWorks returns
*****FILTERED*****
instead of the actual value.- Returns:
- AWS OpsWorks returns
*****FILTERED*****
instead of the actual value.
-
withDbPassword
public RdsDbInstance withDbPassword(String dbPassword)
AWS OpsWorks returns
*****FILTERED*****
instead of the actual value.- Parameters:
dbPassword
- AWS OpsWorks returns*****FILTERED*****
instead of the actual value.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setRegion
public void setRegion(String region)
The instance's AWS region.
- Parameters:
region
- The instance's AWS region.
-
getRegion
public String getRegion()
The instance's AWS region.
- Returns:
- The instance's AWS region.
-
withRegion
public RdsDbInstance withRegion(String region)
The instance's AWS region.
- Parameters:
region
- The instance's AWS region.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setAddress
public void setAddress(String address)
The instance's address.
- Parameters:
address
- The instance's address.
-
getAddress
public String getAddress()
The instance's address.
- Returns:
- The instance's address.
-
withAddress
public RdsDbInstance withAddress(String address)
The instance's address.
- Parameters:
address
- The instance's address.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setEngine
public void setEngine(String engine)
The instance's database engine.
- Parameters:
engine
- The instance's database engine.
-
getEngine
public String getEngine()
The instance's database engine.
- Returns:
- The instance's database engine.
-
withEngine
public RdsDbInstance withEngine(String engine)
The instance's database engine.
- Parameters:
engine
- The instance's database engine.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setStackId
public void setStackId(String stackId)
The ID of the stack that the instance is registered with.
- Parameters:
stackId
- The ID of the stack that the instance is registered with.
-
getStackId
public String getStackId()
The ID of the stack that the instance is registered with.
- Returns:
- The ID of the stack that the instance is registered with.
-
withStackId
public RdsDbInstance withStackId(String stackId)
The ID of the stack that the instance is registered with.
- Parameters:
stackId
- The ID of the stack that the instance is registered with.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setMissingOnRds
public void setMissingOnRds(Boolean missingOnRds)
Set to
true
if AWS OpsWorks was unable to discover the Amazon RDS instance. AWS OpsWorks attempts to discover the instance only once. If this value is set totrue
, you must deregister the instance and then register it again.- Parameters:
missingOnRds
- Set totrue
if AWS OpsWorks was unable to discover the Amazon RDS instance. AWS OpsWorks attempts to discover the instance only once. If this value is set totrue
, you must deregister the instance and then register it again.
-
getMissingOnRds
public Boolean getMissingOnRds()
Set to
true
if AWS OpsWorks was unable to discover the Amazon RDS instance. AWS OpsWorks attempts to discover the instance only once. If this value is set totrue
, you must deregister the instance and then register it again.- Returns:
- Set to
true
if AWS OpsWorks was unable to discover the Amazon RDS instance. AWS OpsWorks attempts to discover the instance only once. If this value is set totrue
, you must deregister the instance and then register it again.
-
withMissingOnRds
public RdsDbInstance withMissingOnRds(Boolean missingOnRds)
Set to
true
if AWS OpsWorks was unable to discover the Amazon RDS instance. AWS OpsWorks attempts to discover the instance only once. If this value is set totrue
, you must deregister the instance and then register it again.- Parameters:
missingOnRds
- Set totrue
if AWS OpsWorks was unable to discover the Amazon RDS instance. AWS OpsWorks attempts to discover the instance only once. If this value is set totrue
, you must deregister the instance and then register it again.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
isMissingOnRds
public Boolean isMissingOnRds()
Set to
true
if AWS OpsWorks was unable to discover the Amazon RDS instance. AWS OpsWorks attempts to discover the instance only once. If this value is set totrue
, you must deregister the instance and then register it again.- Returns:
- Set to
true
if AWS OpsWorks was unable to discover the Amazon RDS instance. AWS OpsWorks attempts to discover the instance only once. If this value is set totrue
, you must deregister the instance and then register it again.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public RdsDbInstance clone()
-
-