Class RedshiftDataSpec
- java.lang.Object
-
- com.amazonaws.services.machinelearning.model.RedshiftDataSpec
-
- All Implemented Interfaces:
Serializable,Cloneable
public class RedshiftDataSpec extends Object implements Serializable, Cloneable
Describes the data specification of an Amazon Redshift
DataSource.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description RedshiftDataSpec()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RedshiftDataSpecclone()booleanequals(Object obj)RedshiftDatabaseCredentialsgetDatabaseCredentials()Describes AWS Identity and Access Management (IAM) credentials that are used connect to the Amazon Redshift database.RedshiftDatabasegetDatabaseInformation()Describes theDatabaseNameandClusterIdentifierfor an Amazon RedshiftDataSource.StringgetDataRearrangement()Describes the splitting specifications for aDataSource.StringgetDataSchema()A JSON string that represents the schema for an Amazon RedshiftDataSource.StringgetDataSchemaUri()Describes the schema location for an Amazon RedshiftDataSource.StringgetS3StagingLocation()Describes an Amazon S3 location to store the result set of theSelectSqlQueryquery.StringgetSelectSqlQuery()Describes the SQL Query to execute on an Amazon Redshift database for an Amazon RedshiftDataSource.inthashCode()voidsetDatabaseCredentials(RedshiftDatabaseCredentials databaseCredentials)Describes AWS Identity and Access Management (IAM) credentials that are used connect to the Amazon Redshift database.voidsetDatabaseInformation(RedshiftDatabase databaseInformation)Describes theDatabaseNameandClusterIdentifierfor an Amazon RedshiftDataSource.voidsetDataRearrangement(String dataRearrangement)Describes the splitting specifications for aDataSource.voidsetDataSchema(String dataSchema)A JSON string that represents the schema for an Amazon RedshiftDataSource.voidsetDataSchemaUri(String dataSchemaUri)Describes the schema location for an Amazon RedshiftDataSource.voidsetS3StagingLocation(String s3StagingLocation)Describes an Amazon S3 location to store the result set of theSelectSqlQueryquery.voidsetSelectSqlQuery(String selectSqlQuery)Describes the SQL Query to execute on an Amazon Redshift database for an Amazon RedshiftDataSource.StringtoString()Returns a string representation of this object; useful for testing and debugging.RedshiftDataSpecwithDatabaseCredentials(RedshiftDatabaseCredentials databaseCredentials)Describes AWS Identity and Access Management (IAM) credentials that are used connect to the Amazon Redshift database.RedshiftDataSpecwithDatabaseInformation(RedshiftDatabase databaseInformation)Describes theDatabaseNameandClusterIdentifierfor an Amazon RedshiftDataSource.RedshiftDataSpecwithDataRearrangement(String dataRearrangement)Describes the splitting specifications for aDataSource.RedshiftDataSpecwithDataSchema(String dataSchema)A JSON string that represents the schema for an Amazon RedshiftDataSource.RedshiftDataSpecwithDataSchemaUri(String dataSchemaUri)Describes the schema location for an Amazon RedshiftDataSource.RedshiftDataSpecwithS3StagingLocation(String s3StagingLocation)Describes an Amazon S3 location to store the result set of theSelectSqlQueryquery.RedshiftDataSpecwithSelectSqlQuery(String selectSqlQuery)Describes the SQL Query to execute on an Amazon Redshift database for an Amazon RedshiftDataSource.
-
-
-
Method Detail
-
setDatabaseInformation
public void setDatabaseInformation(RedshiftDatabase databaseInformation)
Describes the
DatabaseNameandClusterIdentifierfor an Amazon RedshiftDataSource.- Parameters:
databaseInformation- Describes theDatabaseNameandClusterIdentifierfor an Amazon RedshiftDataSource.
-
getDatabaseInformation
public RedshiftDatabase getDatabaseInformation()
Describes the
DatabaseNameandClusterIdentifierfor an Amazon RedshiftDataSource.- Returns:
- Describes the
DatabaseNameandClusterIdentifierfor an Amazon RedshiftDataSource.
-
withDatabaseInformation
public RedshiftDataSpec withDatabaseInformation(RedshiftDatabase databaseInformation)
Describes the
DatabaseNameandClusterIdentifierfor an Amazon RedshiftDataSource.- Parameters:
databaseInformation- Describes theDatabaseNameandClusterIdentifierfor an Amazon RedshiftDataSource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setSelectSqlQuery
public void setSelectSqlQuery(String selectSqlQuery)
Describes the SQL Query to execute on an Amazon Redshift database for an Amazon Redshift
DataSource.- Parameters:
selectSqlQuery- Describes the SQL Query to execute on an Amazon Redshift database for an Amazon RedshiftDataSource.
-
getSelectSqlQuery
public String getSelectSqlQuery()
Describes the SQL Query to execute on an Amazon Redshift database for an Amazon Redshift
DataSource.- Returns:
- Describes the SQL Query to execute on an Amazon Redshift database
for an Amazon Redshift
DataSource.
-
withSelectSqlQuery
public RedshiftDataSpec withSelectSqlQuery(String selectSqlQuery)
Describes the SQL Query to execute on an Amazon Redshift database for an Amazon Redshift
DataSource.- Parameters:
selectSqlQuery- Describes the SQL Query to execute on an Amazon Redshift database for an Amazon RedshiftDataSource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setDatabaseCredentials
public void setDatabaseCredentials(RedshiftDatabaseCredentials databaseCredentials)
Describes AWS Identity and Access Management (IAM) credentials that are used connect to the Amazon Redshift database.
- Parameters:
databaseCredentials- Describes AWS Identity and Access Management (IAM) credentials that are used connect to the Amazon Redshift database.
-
getDatabaseCredentials
public RedshiftDatabaseCredentials getDatabaseCredentials()
Describes AWS Identity and Access Management (IAM) credentials that are used connect to the Amazon Redshift database.
- Returns:
- Describes AWS Identity and Access Management (IAM) credentials that are used connect to the Amazon Redshift database.
-
withDatabaseCredentials
public RedshiftDataSpec withDatabaseCredentials(RedshiftDatabaseCredentials databaseCredentials)
Describes AWS Identity and Access Management (IAM) credentials that are used connect to the Amazon Redshift database.
- Parameters:
databaseCredentials- Describes AWS Identity and Access Management (IAM) credentials that are used connect to the Amazon Redshift database.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setS3StagingLocation
public void setS3StagingLocation(String s3StagingLocation)
Describes an Amazon S3 location to store the result set of the
SelectSqlQueryquery.- Parameters:
s3StagingLocation- Describes an Amazon S3 location to store the result set of theSelectSqlQueryquery.
-
getS3StagingLocation
public String getS3StagingLocation()
Describes an Amazon S3 location to store the result set of the
SelectSqlQueryquery.- Returns:
- Describes an Amazon S3 location to store the result set of the
SelectSqlQueryquery.
-
withS3StagingLocation
public RedshiftDataSpec withS3StagingLocation(String s3StagingLocation)
Describes an Amazon S3 location to store the result set of the
SelectSqlQueryquery.- Parameters:
s3StagingLocation- Describes an Amazon S3 location to store the result set of theSelectSqlQueryquery.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setDataRearrangement
public void setDataRearrangement(String dataRearrangement)
Describes the splitting specifications for a
DataSource.- Parameters:
dataRearrangement- Describes the splitting specifications for aDataSource.
-
getDataRearrangement
public String getDataRearrangement()
Describes the splitting specifications for a
DataSource.- Returns:
- Describes the splitting specifications for a
DataSource.
-
withDataRearrangement
public RedshiftDataSpec withDataRearrangement(String dataRearrangement)
Describes the splitting specifications for a
DataSource.- Parameters:
dataRearrangement- Describes the splitting specifications for aDataSource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setDataSchema
public void setDataSchema(String dataSchema)
A JSON string that represents the schema for an Amazon Redshift
DataSource. TheDataSchemadefines the structure of the observation data in the data file(s) referenced in theDataSource.A
DataSchemais not required if you specify aDataSchemaUri.Define your
DataSchemaas a series of key-value pairs.attributesandexcludedVariableNameshave an array of key-value pairs for their value. Use the following format to define yourDataSchema.{ "version": "1.0",
"recordAnnotationFieldName": "F1",
"recordWeightFieldName": "F2",
"targetFieldName": "F3",
"dataFormat": "CSV",
"dataFileContainsHeader": true,
"attributes": [
{ "fieldName": "F1", "fieldType": "TEXT" }, { "fieldName": "F2", "fieldType": "NUMERIC" }, { "fieldName": "F3", "fieldType": "CATEGORICAL" }, { "fieldName": "F4", "fieldType": "NUMERIC" }, { "fieldName": "F5", "fieldType": "CATEGORICAL" }, { "fieldName": "F6", "fieldType": "TEXT" }, { "fieldName": "F7", "fieldType": "WEIGHTED_INT_SEQUENCE" }, { "fieldName": "F8", "fieldType": "WEIGHTED_STRING_SEQUENCE" } ],
"excludedVariableNames": [ "F6" ] }
- Parameters:
dataSchema- A JSON string that represents the schema for an Amazon RedshiftDataSource. TheDataSchemadefines the structure of the observation data in the data file(s) referenced in theDataSource.A
DataSchemais not required if you specify aDataSchemaUri.Define your
DataSchemaas a series of key-value pairs.attributesandexcludedVariableNameshave an array of key-value pairs for their value. Use the following format to define yourDataSchema.{ "version": "1.0",
"recordAnnotationFieldName": "F1",
"recordWeightFieldName": "F2",
"targetFieldName": "F3",
"dataFormat": "CSV",
"dataFileContainsHeader": true,
"attributes": [
{ "fieldName": "F1", "fieldType": "TEXT" }, { "fieldName": "F2", "fieldType": "NUMERIC" }, { "fieldName": "F3", "fieldType": "CATEGORICAL" }, { "fieldName": "F4", "fieldType": "NUMERIC" }, { "fieldName": "F5", "fieldType": "CATEGORICAL" }, { "fieldName": "F6", "fieldType": "TEXT" }, { "fieldName": "F7", "fieldType": "WEIGHTED_INT_SEQUENCE" }, { "fieldName": "F8", "fieldType": "WEIGHTED_STRING_SEQUENCE" } ],
"excludedVariableNames": [ "F6" ] }
-
getDataSchema
public String getDataSchema()
A JSON string that represents the schema for an Amazon Redshift
DataSource. TheDataSchemadefines the structure of the observation data in the data file(s) referenced in theDataSource.A
DataSchemais not required if you specify aDataSchemaUri.Define your
DataSchemaas a series of key-value pairs.attributesandexcludedVariableNameshave an array of key-value pairs for their value. Use the following format to define yourDataSchema.{ "version": "1.0",
"recordAnnotationFieldName": "F1",
"recordWeightFieldName": "F2",
"targetFieldName": "F3",
"dataFormat": "CSV",
"dataFileContainsHeader": true,
"attributes": [
{ "fieldName": "F1", "fieldType": "TEXT" }, { "fieldName": "F2", "fieldType": "NUMERIC" }, { "fieldName": "F3", "fieldType": "CATEGORICAL" }, { "fieldName": "F4", "fieldType": "NUMERIC" }, { "fieldName": "F5", "fieldType": "CATEGORICAL" }, { "fieldName": "F6", "fieldType": "TEXT" }, { "fieldName": "F7", "fieldType": "WEIGHTED_INT_SEQUENCE" }, { "fieldName": "F8", "fieldType": "WEIGHTED_STRING_SEQUENCE" } ],
"excludedVariableNames": [ "F6" ] }
- Returns:
- A JSON string that represents the schema for an Amazon Redshift
DataSource. TheDataSchemadefines the structure of the observation data in the data file(s) referenced in theDataSource.A
DataSchemais not required if you specify aDataSchemaUri.Define your
DataSchemaas a series of key-value pairs.attributesandexcludedVariableNameshave an array of key-value pairs for their value. Use the following format to define yourDataSchema.{ "version": "1.0",
"recordAnnotationFieldName": "F1",
"recordWeightFieldName": "F2",
"targetFieldName": "F3",
"dataFormat": "CSV",
"dataFileContainsHeader": true,
"attributes": [
{ "fieldName": "F1", "fieldType": "TEXT" }, { "fieldName": "F2", "fieldType": "NUMERIC" }, { "fieldName": "F3", "fieldType": "CATEGORICAL" }, { "fieldName": "F4", "fieldType": "NUMERIC" }, { "fieldName": "F5", "fieldType": "CATEGORICAL" }, { "fieldName": "F6", "fieldType": "TEXT" }, { "fieldName": "F7", "fieldType": "WEIGHTED_INT_SEQUENCE" }, { "fieldName": "F8", "fieldType": "WEIGHTED_STRING_SEQUENCE" } ],
"excludedVariableNames": [ "F6" ] }
-
withDataSchema
public RedshiftDataSpec withDataSchema(String dataSchema)
A JSON string that represents the schema for an Amazon Redshift
DataSource. TheDataSchemadefines the structure of the observation data in the data file(s) referenced in theDataSource.A
DataSchemais not required if you specify aDataSchemaUri.Define your
DataSchemaas a series of key-value pairs.attributesandexcludedVariableNameshave an array of key-value pairs for their value. Use the following format to define yourDataSchema.{ "version": "1.0",
"recordAnnotationFieldName": "F1",
"recordWeightFieldName": "F2",
"targetFieldName": "F3",
"dataFormat": "CSV",
"dataFileContainsHeader": true,
"attributes": [
{ "fieldName": "F1", "fieldType": "TEXT" }, { "fieldName": "F2", "fieldType": "NUMERIC" }, { "fieldName": "F3", "fieldType": "CATEGORICAL" }, { "fieldName": "F4", "fieldType": "NUMERIC" }, { "fieldName": "F5", "fieldType": "CATEGORICAL" }, { "fieldName": "F6", "fieldType": "TEXT" }, { "fieldName": "F7", "fieldType": "WEIGHTED_INT_SEQUENCE" }, { "fieldName": "F8", "fieldType": "WEIGHTED_STRING_SEQUENCE" } ],
"excludedVariableNames": [ "F6" ] }
- Parameters:
dataSchema- A JSON string that represents the schema for an Amazon RedshiftDataSource. TheDataSchemadefines the structure of the observation data in the data file(s) referenced in theDataSource.A
DataSchemais not required if you specify aDataSchemaUri.Define your
DataSchemaas a series of key-value pairs.attributesandexcludedVariableNameshave an array of key-value pairs for their value. Use the following format to define yourDataSchema.{ "version": "1.0",
"recordAnnotationFieldName": "F1",
"recordWeightFieldName": "F2",
"targetFieldName": "F3",
"dataFormat": "CSV",
"dataFileContainsHeader": true,
"attributes": [
{ "fieldName": "F1", "fieldType": "TEXT" }, { "fieldName": "F2", "fieldType": "NUMERIC" }, { "fieldName": "F3", "fieldType": "CATEGORICAL" }, { "fieldName": "F4", "fieldType": "NUMERIC" }, { "fieldName": "F5", "fieldType": "CATEGORICAL" }, { "fieldName": "F6", "fieldType": "TEXT" }, { "fieldName": "F7", "fieldType": "WEIGHTED_INT_SEQUENCE" }, { "fieldName": "F8", "fieldType": "WEIGHTED_STRING_SEQUENCE" } ],
"excludedVariableNames": [ "F6" ] }
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setDataSchemaUri
public void setDataSchemaUri(String dataSchemaUri)
Describes the schema location for an Amazon Redshift
DataSource.- Parameters:
dataSchemaUri- Describes the schema location for an Amazon RedshiftDataSource.
-
getDataSchemaUri
public String getDataSchemaUri()
Describes the schema location for an Amazon Redshift
DataSource.- Returns:
- Describes the schema location for an Amazon Redshift
DataSource.
-
withDataSchemaUri
public RedshiftDataSpec withDataSchemaUri(String dataSchemaUri)
Describes the schema location for an Amazon Redshift
DataSource.- Parameters:
dataSchemaUri- Describes the schema location for an Amazon RedshiftDataSource.- 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 RedshiftDataSpec clone()
-
-