Class DataSource
- java.lang.Object
-
- com.amazonaws.services.opsworks.model.DataSource
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class DataSource extends Object implements Serializable, Cloneable
Describes an app's data source.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DataSource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DataSource
clone()
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
, orRdsDbInstance
.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
, orRdsDbInstance
.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
, orRdsDbInstance
.
-
-
-
Method Detail
-
setType
public void setType(String type)
The data source's type,
AutoSelectOpsworksMysqlInstance
,OpsworksMysqlInstance
, orRdsDbInstance
.- Parameters:
type
- The data source's type,AutoSelectOpsworksMysqlInstance
,OpsworksMysqlInstance
, orRdsDbInstance
.
-
getType
public String getType()
The data source's type,
AutoSelectOpsworksMysqlInstance
,OpsworksMysqlInstance
, orRdsDbInstance
.- Returns:
- The data source's type,
AutoSelectOpsworksMysqlInstance
,OpsworksMysqlInstance
, orRdsDbInstance
.
-
withType
public DataSource withType(String type)
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
public void setArn(String arn)
The data source's ARN.
- Parameters:
arn
- The data source's ARN.
-
getArn
public String getArn()
The data source's ARN.
- Returns:
- The data source's ARN.
-
withArn
public DataSource withArn(String arn)
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
public void setDatabaseName(String databaseName)
The database name.
- Parameters:
databaseName
- The database name.
-
getDatabaseName
public String getDatabaseName()
The database name.
- Returns:
- The database name.
-
withDatabaseName
public DataSource withDatabaseName(String databaseName)
The database name.
- Parameters:
databaseName
- The database name.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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 DataSource clone()
-
-