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 RedshiftDataSpec
clone()
boolean
equals(Object obj)
RedshiftDatabaseCredentials
getDatabaseCredentials()
Describes AWS Identity and Access Management (IAM) credentials that are used connect to the Amazon Redshift database.RedshiftDatabase
getDatabaseInformation()
Describes theDatabaseName
andClusterIdentifier
for an Amazon RedshiftDataSource
.String
getDataRearrangement()
Describes the splitting specifications for aDataSource
.String
getDataSchema()
A JSON string that represents the schema for an Amazon RedshiftDataSource
.String
getDataSchemaUri()
Describes the schema location for an Amazon RedshiftDataSource
.String
getS3StagingLocation()
Describes an Amazon S3 location to store the result set of theSelectSqlQuery
query.String
getSelectSqlQuery()
Describes the SQL Query to execute on an Amazon Redshift database for an Amazon RedshiftDataSource
.int
hashCode()
void
setDatabaseCredentials(RedshiftDatabaseCredentials databaseCredentials)
Describes AWS Identity and Access Management (IAM) credentials that are used connect to the Amazon Redshift database.void
setDatabaseInformation(RedshiftDatabase databaseInformation)
Describes theDatabaseName
andClusterIdentifier
for an Amazon RedshiftDataSource
.void
setDataRearrangement(String dataRearrangement)
Describes the splitting specifications for aDataSource
.void
setDataSchema(String dataSchema)
A JSON string that represents the schema for an Amazon RedshiftDataSource
.void
setDataSchemaUri(String dataSchemaUri)
Describes the schema location for an Amazon RedshiftDataSource
.void
setS3StagingLocation(String s3StagingLocation)
Describes an Amazon S3 location to store the result set of theSelectSqlQuery
query.void
setSelectSqlQuery(String selectSqlQuery)
Describes the SQL Query to execute on an Amazon Redshift database for an Amazon RedshiftDataSource
.String
toString()
Returns a string representation of this object; useful for testing and debugging.RedshiftDataSpec
withDatabaseCredentials(RedshiftDatabaseCredentials databaseCredentials)
Describes AWS Identity and Access Management (IAM) credentials that are used connect to the Amazon Redshift database.RedshiftDataSpec
withDatabaseInformation(RedshiftDatabase databaseInformation)
Describes theDatabaseName
andClusterIdentifier
for an Amazon RedshiftDataSource
.RedshiftDataSpec
withDataRearrangement(String dataRearrangement)
Describes the splitting specifications for aDataSource
.RedshiftDataSpec
withDataSchema(String dataSchema)
A JSON string that represents the schema for an Amazon RedshiftDataSource
.RedshiftDataSpec
withDataSchemaUri(String dataSchemaUri)
Describes the schema location for an Amazon RedshiftDataSource
.RedshiftDataSpec
withS3StagingLocation(String s3StagingLocation)
Describes an Amazon S3 location to store the result set of theSelectSqlQuery
query.RedshiftDataSpec
withSelectSqlQuery(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
DatabaseName
andClusterIdentifier
for an Amazon RedshiftDataSource
.- Parameters:
databaseInformation
- Describes theDatabaseName
andClusterIdentifier
for an Amazon RedshiftDataSource
.
-
getDatabaseInformation
public RedshiftDatabase getDatabaseInformation()
Describes the
DatabaseName
andClusterIdentifier
for an Amazon RedshiftDataSource
.- Returns:
- Describes the
DatabaseName
andClusterIdentifier
for an Amazon RedshiftDataSource
.
-
withDatabaseInformation
public RedshiftDataSpec withDatabaseInformation(RedshiftDatabase databaseInformation)
Describes the
DatabaseName
andClusterIdentifier
for an Amazon RedshiftDataSource
.- Parameters:
databaseInformation
- Describes theDatabaseName
andClusterIdentifier
for 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
SelectSqlQuery
query.- Parameters:
s3StagingLocation
- Describes an Amazon S3 location to store the result set of theSelectSqlQuery
query.
-
getS3StagingLocation
public String getS3StagingLocation()
Describes an Amazon S3 location to store the result set of the
SelectSqlQuery
query.- Returns:
- Describes an Amazon S3 location to store the result set of the
SelectSqlQuery
query.
-
withS3StagingLocation
public RedshiftDataSpec withS3StagingLocation(String s3StagingLocation)
Describes an Amazon S3 location to store the result set of the
SelectSqlQuery
query.- Parameters:
s3StagingLocation
- Describes an Amazon S3 location to store the result set of theSelectSqlQuery
query.- 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
. TheDataSchema
defines the structure of the observation data in the data file(s) referenced in theDataSource
.A
DataSchema
is not required if you specify aDataSchemaUri
.Define your
DataSchema
as a series of key-value pairs.attributes
andexcludedVariableNames
have 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
. TheDataSchema
defines the structure of the observation data in the data file(s) referenced in theDataSource
.A
DataSchema
is not required if you specify aDataSchemaUri
.Define your
DataSchema
as a series of key-value pairs.attributes
andexcludedVariableNames
have 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
. TheDataSchema
defines the structure of the observation data in the data file(s) referenced in theDataSource
.A
DataSchema
is not required if you specify aDataSchemaUri
.Define your
DataSchema
as a series of key-value pairs.attributes
andexcludedVariableNames
have 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
. TheDataSchema
defines the structure of the observation data in the data file(s) referenced in theDataSource
.A
DataSchema
is not required if you specify aDataSchemaUri
.Define your
DataSchema
as a series of key-value pairs.attributes
andexcludedVariableNames
have 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
. TheDataSchema
defines the structure of the observation data in the data file(s) referenced in theDataSource
.A
DataSchema
is not required if you specify aDataSchemaUri
.Define your
DataSchema
as a series of key-value pairs.attributes
andexcludedVariableNames
have 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
. TheDataSchema
defines the structure of the observation data in the data file(s) referenced in theDataSource
.A
DataSchema
is not required if you specify aDataSchemaUri
.Define your
DataSchema
as a series of key-value pairs.attributes
andexcludedVariableNames
have 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:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public RedshiftDataSpec clone()
-
-