com.amazonaws.services.opsworks.model
Class DataSource

java.lang.Object
  extended by com.amazonaws.services.opsworks.model.DataSource
All Implemented Interfaces:
Serializable

public class DataSource
extends Object
implements Serializable

Describes an app's data source.

See Also:
Serialized Form

Constructor Summary
DataSource()
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DataSource

public DataSource()
Method Detail

getType

public String getType()
The data source's type, AutoSelectOpsworksMysqlInstance, OpsworksMysqlInstance, or RdsDbInstance.

Returns:
The data source's type, AutoSelectOpsworksMysqlInstance, OpsworksMysqlInstance, or RdsDbInstance.

setType

public void setType(String type)
The data source's type, AutoSelectOpsworksMysqlInstance, OpsworksMysqlInstance, or RdsDbInstance.

Parameters:
type - The data source's type, AutoSelectOpsworksMysqlInstance, OpsworksMysqlInstance, or RdsDbInstance.

withType

public DataSource withType(String type)
The data source's type, AutoSelectOpsworksMysqlInstance, OpsworksMysqlInstance, or RdsDbInstance.

Returns a reference to this object so that method calls can be chained together.

Parameters:
type - The data source's type, AutoSelectOpsworksMysqlInstance, OpsworksMysqlInstance, or RdsDbInstance.
Returns:
A reference to this updated object so that method calls can be chained together.

getArn

public String getArn()
The data source's ARN.

Returns:
The data source's ARN.

setArn

public void setArn(String arn)
The data source's ARN.

Parameters:
arn - The data source's ARN.

withArn

public DataSource withArn(String arn)
The data source's ARN.

Returns a reference to this object so that method calls can be chained together.

Parameters:
arn - The data source's ARN.
Returns:
A reference to this updated object so that method calls can be chained together.

getDatabaseName

public String getDatabaseName()
The database name.

Returns:
The database name.

setDatabaseName

public void setDatabaseName(String databaseName)
The database name.

Parameters:
databaseName - The database name.

withDatabaseName

public DataSource withDatabaseName(String databaseName)
The database name.

Returns a reference to this object so that method calls can be chained together.

Parameters:
databaseName - The database name.
Returns:
A reference to this updated 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 class Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2016. All rights reserved.