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 DataSourceclone()booleanequals(Object obj)StringgetArn()The data source's ARN.StringgetDatabaseName()The database name.StringgetType()The data source's type,AutoSelectOpsworksMysqlInstance,OpsworksMysqlInstance, orRdsDbInstance.inthashCode()voidsetArn(String arn)The data source's ARN.voidsetDatabaseName(String databaseName)The database name.voidsetType(String type)The data source's type,AutoSelectOpsworksMysqlInstance,OpsworksMysqlInstance, orRdsDbInstance.StringtoString()Returns a string representation of this object; useful for testing and debugging.DataSourcewithArn(String arn)The data source's ARN.DataSourcewithDatabaseName(String databaseName)The database name.DataSourcewithType(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:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public DataSource clone()
-
-