Class DataSource
java.lang.Object
com.amazonaws.services.opsworks.model.DataSource
- All Implemented Interfaces:
Serializable
,Cloneable
Describes an app's data source.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
getArn()
The data source's ARN.The database name.getType()
The data source's type,AutoSelectOpsworksMysqlInstance
,OpsworksMysqlInstance
, orRdsDbInstance
.int
hashCode()
void
The data source's ARN.void
setDatabaseName
(String databaseName) The database name.void
The data source's type,AutoSelectOpsworksMysqlInstance
,OpsworksMysqlInstance
, orRdsDbInstance
.toString()
Returns a string representation of this object; useful for testing and debugging.The data source's ARN.withDatabaseName
(String databaseName) The database name.The data source's type,AutoSelectOpsworksMysqlInstance
,OpsworksMysqlInstance
, orRdsDbInstance
.
-
Constructor Details
-
DataSource
public DataSource()
-
-
Method Details
-
setType
The data source's type,
AutoSelectOpsworksMysqlInstance
,OpsworksMysqlInstance
, orRdsDbInstance
.- Parameters:
type
- The data source's type,AutoSelectOpsworksMysqlInstance
,OpsworksMysqlInstance
, orRdsDbInstance
.
-
getType
The data source's type,
AutoSelectOpsworksMysqlInstance
,OpsworksMysqlInstance
, orRdsDbInstance
.- Returns:
- The data source's type,
AutoSelectOpsworksMysqlInstance
,OpsworksMysqlInstance
, orRdsDbInstance
.
-
withType
The data source's type,
AutoSelectOpsworksMysqlInstance
,OpsworksMysqlInstance
, orRdsDbInstance
.- Parameters:
type
- The data source's type,AutoSelectOpsworksMysqlInstance
,OpsworksMysqlInstance
, orRdsDbInstance
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setArn
The data source's ARN.
- Parameters:
arn
- The data source's ARN.
-
getArn
The data source's ARN.
- Returns:
- The data source's ARN.
-
withArn
The data source's ARN.
- Parameters:
arn
- The data source's ARN.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setDatabaseName
The database name.
- Parameters:
databaseName
- The database name.
-
getDatabaseName
The database name.
- Returns:
- The database name.
-
withDatabaseName
The database name.
- Parameters:
databaseName
- The database name.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-