Class DataSource

    • Constructor Detail

      • DataSource

        public DataSource()
    • Method Detail

      • 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:
        Object.toString()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object