public class DataSource
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Describes an app's data source.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
arn
The data source's ARN.
|
private java.lang.String |
databaseName
The database name.
|
private java.lang.String |
type
The data source's type,
AutoSelectOpsworksMysqlInstance ,
OpsworksMysqlInstance , or RdsDbInstance . |
Constructor and Description |
---|
DataSource() |
Modifier and Type | Method and Description |
---|---|
DataSource |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getArn()
The data source's ARN.
|
java.lang.String |
getDatabaseName()
The database name.
|
java.lang.String |
getType()
The data source's type,
AutoSelectOpsworksMysqlInstance ,
OpsworksMysqlInstance , or RdsDbInstance . |
int |
hashCode() |
void |
setArn(java.lang.String arn)
The data source's ARN.
|
void |
setDatabaseName(java.lang.String databaseName)
The database name.
|
void |
setType(java.lang.String type)
The data source's type,
AutoSelectOpsworksMysqlInstance ,
OpsworksMysqlInstance , or RdsDbInstance . |
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
DataSource |
withArn(java.lang.String arn)
The data source's ARN.
|
DataSource |
withDatabaseName(java.lang.String databaseName)
The database name.
|
DataSource |
withType(java.lang.String type)
The data source's type,
AutoSelectOpsworksMysqlInstance ,
OpsworksMysqlInstance , or RdsDbInstance . |
private java.lang.String type
The data source's type, AutoSelectOpsworksMysqlInstance
,
OpsworksMysqlInstance
, or RdsDbInstance
.
private java.lang.String arn
The data source's ARN.
private java.lang.String databaseName
The database name.
public void setType(java.lang.String type)
The data source's type, AutoSelectOpsworksMysqlInstance
,
OpsworksMysqlInstance
, or RdsDbInstance
.
type
- The data source's type,
AutoSelectOpsworksMysqlInstance
,
OpsworksMysqlInstance
, or RdsDbInstance
.public java.lang.String getType()
The data source's type, AutoSelectOpsworksMysqlInstance
,
OpsworksMysqlInstance
, or RdsDbInstance
.
AutoSelectOpsworksMysqlInstance
,
OpsworksMysqlInstance
, or RdsDbInstance
.public DataSource withType(java.lang.String type)
The data source's type, AutoSelectOpsworksMysqlInstance
,
OpsworksMysqlInstance
, or RdsDbInstance
.
type
- The data source's type,
AutoSelectOpsworksMysqlInstance
,
OpsworksMysqlInstance
, or RdsDbInstance
.public void setArn(java.lang.String arn)
The data source's ARN.
arn
- The data source's ARN.public java.lang.String getArn()
The data source's ARN.
public DataSource withArn(java.lang.String arn)
The data source's ARN.
arn
- The data source's ARN.public void setDatabaseName(java.lang.String databaseName)
The database name.
databaseName
- The database name.public java.lang.String getDatabaseName()
The database name.
public DataSource withDatabaseName(java.lang.String databaseName)
The database name.
databaseName
- The database name.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public DataSource clone()
clone
in class java.lang.Object