public class DataSource extends Object implements Serializable
Describes an app's data source.
Constructor and Description |
---|
DataSource() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getArn()
The data source's ARN.
|
String |
getDatabaseName()
The database name.
|
String |
getType()
The data source's type,
AutoSelectOpsworksMysqlInstance ,
OpsworksMysqlInstance , or RdsDbInstance . |
int |
hashCode() |
void |
setArn(String arn)
The data source's ARN.
|
void |
setDatabaseName(String databaseName)
The database name.
|
void |
setType(String type)
The data source's type,
AutoSelectOpsworksMysqlInstance ,
OpsworksMysqlInstance , or RdsDbInstance . |
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
DataSource |
withArn(String arn)
The data source's ARN.
|
DataSource |
withDatabaseName(String databaseName)
The database name.
|
DataSource |
withType(String type)
The data source's type,
AutoSelectOpsworksMysqlInstance ,
OpsworksMysqlInstance , or RdsDbInstance . |
public String getType()
AutoSelectOpsworksMysqlInstance
,
OpsworksMysqlInstance
, or RdsDbInstance
.AutoSelectOpsworksMysqlInstance
,
OpsworksMysqlInstance
, or RdsDbInstance
.public void setType(String type)
AutoSelectOpsworksMysqlInstance
,
OpsworksMysqlInstance
, or RdsDbInstance
.type
- The data source's type, AutoSelectOpsworksMysqlInstance
,
OpsworksMysqlInstance
, or RdsDbInstance
.public DataSource withType(String type)
AutoSelectOpsworksMysqlInstance
,
OpsworksMysqlInstance
, or RdsDbInstance
.
Returns a reference to this object so that method calls can be chained together.
type
- The data source's type, AutoSelectOpsworksMysqlInstance
,
OpsworksMysqlInstance
, or RdsDbInstance
.public String getArn()
public void setArn(String arn)
arn
- The data source's ARN.public DataSource withArn(String arn)
Returns a reference to this object so that method calls can be chained together.
arn
- The data source's ARN.public String getDatabaseName()
public void setDatabaseName(String databaseName)
databaseName
- The database name.public DataSource withDatabaseName(String databaseName)
Returns a reference to this object so that method calls can be chained together.
databaseName
- The database name.public String toString()
toString
in class Object
Object.toString()
Copyright © 2014. All rights reserved.