@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class DataSource extends Object implements Serializable, Cloneable, StructuredPojo
Describes an app's data source.
Constructor and Description |
---|
DataSource() |
Modifier and Type | Method and 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 , or
RdsDbInstance . |
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
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 void setType(String type)
The data source's type, AutoSelectOpsworksMysqlInstance
, OpsworksMysqlInstance
, or
RdsDbInstance
.
type
- The data source's type, AutoSelectOpsworksMysqlInstance
, OpsworksMysqlInstance
,
or RdsDbInstance
.public String getType()
The data source's type, AutoSelectOpsworksMysqlInstance
, OpsworksMysqlInstance
, or
RdsDbInstance
.
AutoSelectOpsworksMysqlInstance
, OpsworksMysqlInstance
,
or RdsDbInstance
.public DataSource withType(String type)
The data source's type, AutoSelectOpsworksMysqlInstance
, OpsworksMysqlInstance
, or
RdsDbInstance
.
type
- The data source's type, AutoSelectOpsworksMysqlInstance
, OpsworksMysqlInstance
,
or RdsDbInstance
.public void setArn(String arn)
The data source's ARN.
arn
- The data source's ARN.public String getArn()
The data source's ARN.
public DataSource withArn(String arn)
The data source's ARN.
arn
- The data source's ARN.public void setDatabaseName(String databaseName)
The database name.
databaseName
- The database name.public String getDatabaseName()
The database name.
public DataSource withDatabaseName(String databaseName)
The database name.
databaseName
- The database name.public String toString()
toString
in class Object
Object.toString()
public DataSource clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.