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:
  • Constructor Details

    • DataSource

      public DataSource()
  • Method Details

    • 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.
    • getType

      public String getType()

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

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

      public DataSource withType(String type)

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

      Parameters:
      type - The data source's type, AutoSelectOpsworksMysqlInstance, OpsworksMysqlInstance, or RdsDbInstance.
      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 class Object
      Returns:
      A string representation of this object.
      See Also:
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object
    • clone

      public DataSource clone()
      Overrides:
      clone in class Object