Class CreateDataSourceFromRedshiftRequest
- java.lang.Object
-
- com.amazonaws.AmazonWebServiceRequest
-
- com.amazonaws.services.machinelearning.model.CreateDataSourceFromRedshiftRequest
-
- All Implemented Interfaces:
ReadLimitInfo,Serializable,Cloneable
public class CreateDataSourceFromRedshiftRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
-
Constructor Summary
Constructors Constructor Description CreateDataSourceFromRedshiftRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateDataSourceFromRedshiftRequestclone()Creates a shallow clone of this request.booleanequals(Object obj)BooleangetComputeStatistics()The compute statistics for aDataSource.StringgetDataSourceId()A user-supplied ID that uniquely identifies theDataSource.StringgetDataSourceName()A user-supplied name or description of theDataSource.RedshiftDataSpecgetDataSpec()The data specification of an Amazon RedshiftDataSource:StringgetRoleARN()A fully specified role Amazon Resource Name (ARN).inthashCode()BooleanisComputeStatistics()The compute statistics for aDataSource.voidsetComputeStatistics(Boolean computeStatistics)The compute statistics for aDataSource.voidsetDataSourceId(String dataSourceId)A user-supplied ID that uniquely identifies theDataSource.voidsetDataSourceName(String dataSourceName)A user-supplied name or description of theDataSource.voidsetDataSpec(RedshiftDataSpec dataSpec)The data specification of an Amazon RedshiftDataSource:voidsetRoleARN(String roleARN)A fully specified role Amazon Resource Name (ARN).StringtoString()Returns a string representation of this object; useful for testing and debugging.CreateDataSourceFromRedshiftRequestwithComputeStatistics(Boolean computeStatistics)The compute statistics for aDataSource.CreateDataSourceFromRedshiftRequestwithDataSourceId(String dataSourceId)A user-supplied ID that uniquely identifies theDataSource.CreateDataSourceFromRedshiftRequestwithDataSourceName(String dataSourceName)A user-supplied name or description of theDataSource.CreateDataSourceFromRedshiftRequestwithDataSpec(RedshiftDataSpec dataSpec)The data specification of an Amazon RedshiftDataSource:CreateDataSourceFromRedshiftRequestwithRoleARN(String roleARN)A fully specified role Amazon Resource Name (ARN).-
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
-
-
-
-
Method Detail
-
setDataSourceId
public void setDataSourceId(String dataSourceId)
A user-supplied ID that uniquely identifies the
DataSource.- Parameters:
dataSourceId- A user-supplied ID that uniquely identifies theDataSource.
-
getDataSourceId
public String getDataSourceId()
A user-supplied ID that uniquely identifies the
DataSource.- Returns:
- A user-supplied ID that uniquely identifies the
DataSource.
-
withDataSourceId
public CreateDataSourceFromRedshiftRequest withDataSourceId(String dataSourceId)
A user-supplied ID that uniquely identifies the
DataSource.- Parameters:
dataSourceId- A user-supplied ID that uniquely identifies theDataSource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setDataSourceName
public void setDataSourceName(String dataSourceName)
A user-supplied name or description of the
DataSource.- Parameters:
dataSourceName- A user-supplied name or description of theDataSource.
-
getDataSourceName
public String getDataSourceName()
A user-supplied name or description of the
DataSource.- Returns:
- A user-supplied name or description of the
DataSource.
-
withDataSourceName
public CreateDataSourceFromRedshiftRequest withDataSourceName(String dataSourceName)
A user-supplied name or description of the
DataSource.- Parameters:
dataSourceName- A user-supplied name or description of theDataSource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setDataSpec
public void setDataSpec(RedshiftDataSpec dataSpec)
The data specification of an Amazon Redshift
DataSource:-
DatabaseInformation -
-
DatabaseName- Name of the Amazon Redshift database. -
ClusterIdentifier- Unique ID for the Amazon Redshift cluster.
-
-
DatabaseCredentials - AWS Identity abd Access Management (IAM) credentials that are used to connect to the Amazon Redshift database.
-
SelectSqlQuery - Query that is used to retrieve the observation data for the
Datasource. -
S3StagingLocation - Amazon Simple Storage Service (Amazon S3) location for staging Amazon Redshift data. The data retrieved from Amazon Relational Database Service (Amazon RDS) using
SelectSqlQueryis stored in this location. -
DataSchemaUri - Amazon S3 location of the
DataSchema. -
DataSchema - A JSON string representing the schema. This is not required if
DataSchemaUriis specified. -
DataRearrangement - A JSON string representing the splitting requirement of a
Datasource.
Sample -
"{\"splitting\":{\"percentBegin\":10,\"percentEnd\":60}}"
- Parameters:
dataSpec- The data specification of an Amazon RedshiftDataSource:-
DatabaseInformation -
-
DatabaseName- Name of the Amazon Redshift database. -
ClusterIdentifier- Unique ID for the Amazon Redshift cluster.
-
-
DatabaseCredentials - AWS Identity abd Access Management (IAM) credentials that are used to connect to the Amazon Redshift database.
-
SelectSqlQuery - Query that is used to retrieve the observation data for the
Datasource. -
S3StagingLocation - Amazon Simple Storage Service (Amazon S3) location for staging Amazon Redshift data. The data retrieved from Amazon Relational Database Service (Amazon RDS) using
SelectSqlQueryis stored in this location. -
DataSchemaUri - Amazon S3 location of the
DataSchema. -
DataSchema - A JSON string representing the schema. This is not required if
DataSchemaUriis specified. -
DataRearrangement - A JSON string representing the splitting requirement of a
Datasource.
Sample -
"{\"splitting\":{\"percentBegin\":10,\"percentEnd\":60}}"
-
-
-
getDataSpec
public RedshiftDataSpec getDataSpec()
The data specification of an Amazon Redshift
DataSource:-
DatabaseInformation -
-
DatabaseName- Name of the Amazon Redshift database. -
ClusterIdentifier- Unique ID for the Amazon Redshift cluster.
-
-
DatabaseCredentials - AWS Identity abd Access Management (IAM) credentials that are used to connect to the Amazon Redshift database.
-
SelectSqlQuery - Query that is used to retrieve the observation data for the
Datasource. -
S3StagingLocation - Amazon Simple Storage Service (Amazon S3) location for staging Amazon Redshift data. The data retrieved from Amazon Relational Database Service (Amazon RDS) using
SelectSqlQueryis stored in this location. -
DataSchemaUri - Amazon S3 location of the
DataSchema. -
DataSchema - A JSON string representing the schema. This is not required if
DataSchemaUriis specified. -
DataRearrangement - A JSON string representing the splitting requirement of a
Datasource.
Sample -
"{\"splitting\":{\"percentBegin\":10,\"percentEnd\":60}}"
- Returns:
- The data specification of an Amazon Redshift
DataSource:-
DatabaseInformation -
-
DatabaseName- Name of the Amazon Redshift database. -
ClusterIdentifier- Unique ID for the Amazon Redshift cluster.
-
-
DatabaseCredentials - AWS Identity abd Access Management (IAM) credentials that are used to connect to the Amazon Redshift database.
-
SelectSqlQuery - Query that is used to retrieve the observation data for the
Datasource. -
S3StagingLocation - Amazon Simple Storage Service (Amazon S3) location for staging Amazon Redshift data. The data retrieved from Amazon Relational Database Service (Amazon RDS) using
SelectSqlQueryis stored in this location. -
DataSchemaUri - Amazon S3 location of the
DataSchema. -
DataSchema - A JSON string representing the schema. This is not required if
DataSchemaUriis specified. -
DataRearrangement - A JSON string representing the splitting requirement of a
Datasource.
Sample -
"{\"splitting\":{\"percentBegin\":10,\"percentEnd\":60}}"
-
-
-
withDataSpec
public CreateDataSourceFromRedshiftRequest withDataSpec(RedshiftDataSpec dataSpec)
The data specification of an Amazon Redshift
DataSource:-
DatabaseInformation -
-
DatabaseName- Name of the Amazon Redshift database. -
ClusterIdentifier- Unique ID for the Amazon Redshift cluster.
-
-
DatabaseCredentials - AWS Identity abd Access Management (IAM) credentials that are used to connect to the Amazon Redshift database.
-
SelectSqlQuery - Query that is used to retrieve the observation data for the
Datasource. -
S3StagingLocation - Amazon Simple Storage Service (Amazon S3) location for staging Amazon Redshift data. The data retrieved from Amazon Relational Database Service (Amazon RDS) using
SelectSqlQueryis stored in this location. -
DataSchemaUri - Amazon S3 location of the
DataSchema. -
DataSchema - A JSON string representing the schema. This is not required if
DataSchemaUriis specified. -
DataRearrangement - A JSON string representing the splitting requirement of a
Datasource.
Sample -
"{\"splitting\":{\"percentBegin\":10,\"percentEnd\":60}}"
- Parameters:
dataSpec- The data specification of an Amazon RedshiftDataSource:-
DatabaseInformation -
-
DatabaseName- Name of the Amazon Redshift database. -
ClusterIdentifier- Unique ID for the Amazon Redshift cluster.
-
-
DatabaseCredentials - AWS Identity abd Access Management (IAM) credentials that are used to connect to the Amazon Redshift database.
-
SelectSqlQuery - Query that is used to retrieve the observation data for the
Datasource. -
S3StagingLocation - Amazon Simple Storage Service (Amazon S3) location for staging Amazon Redshift data. The data retrieved from Amazon Relational Database Service (Amazon RDS) using
SelectSqlQueryis stored in this location. -
DataSchemaUri - Amazon S3 location of the
DataSchema. -
DataSchema - A JSON string representing the schema. This is not required if
DataSchemaUriis specified. -
DataRearrangement - A JSON string representing the splitting requirement of a
Datasource.
Sample -
"{\"splitting\":{\"percentBegin\":10,\"percentEnd\":60}}"
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
setRoleARN
public void setRoleARN(String roleARN)
A fully specified role Amazon Resource Name (ARN). Amazon ML assumes the role on behalf of the user to create the following:
-
A security group to allow Amazon ML to execute the
SelectSqlQueryquery on an Amazon Redshift cluster -
An Amazon S3 bucket policy to grant Amazon ML read/write permissions on the
S3StagingLocation
- Parameters:
roleARN- A fully specified role Amazon Resource Name (ARN). Amazon ML assumes the role on behalf of the user to create the following:-
A security group to allow Amazon ML to execute the
SelectSqlQueryquery on an Amazon Redshift cluster -
An Amazon S3 bucket policy to grant Amazon ML read/write permissions on the
S3StagingLocation
-
-
-
getRoleARN
public String getRoleARN()
A fully specified role Amazon Resource Name (ARN). Amazon ML assumes the role on behalf of the user to create the following:
-
A security group to allow Amazon ML to execute the
SelectSqlQueryquery on an Amazon Redshift cluster -
An Amazon S3 bucket policy to grant Amazon ML read/write permissions on the
S3StagingLocation
- Returns:
- A fully specified role Amazon Resource Name (ARN). Amazon ML
assumes the role on behalf of the user to create the following:
-
A security group to allow Amazon ML to execute the
SelectSqlQueryquery on an Amazon Redshift cluster -
An Amazon S3 bucket policy to grant Amazon ML read/write permissions on the
S3StagingLocation
-
-
-
withRoleARN
public CreateDataSourceFromRedshiftRequest withRoleARN(String roleARN)
A fully specified role Amazon Resource Name (ARN). Amazon ML assumes the role on behalf of the user to create the following:
-
A security group to allow Amazon ML to execute the
SelectSqlQueryquery on an Amazon Redshift cluster -
An Amazon S3 bucket policy to grant Amazon ML read/write permissions on the
S3StagingLocation
- Parameters:
roleARN- A fully specified role Amazon Resource Name (ARN). Amazon ML assumes the role on behalf of the user to create the following:-
A security group to allow Amazon ML to execute the
SelectSqlQueryquery on an Amazon Redshift cluster -
An Amazon S3 bucket policy to grant Amazon ML read/write permissions on the
S3StagingLocation
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
setComputeStatistics
public void setComputeStatistics(Boolean computeStatistics)
The compute statistics for a
DataSource. The statistics are generated from the observation data referenced by aDataSource. Amazon ML uses the statistics internally duringMLModeltraining. This parameter must be set totrueif theDataSourceneeds to be used forMLModeltraining- Parameters:
computeStatistics- The compute statistics for aDataSource. The statistics are generated from the observation data referenced by aDataSource. Amazon ML uses the statistics internally duringMLModeltraining. This parameter must be set totrueif theDataSourceneeds to be used forMLModeltraining
-
getComputeStatistics
public Boolean getComputeStatistics()
The compute statistics for a
DataSource. The statistics are generated from the observation data referenced by aDataSource. Amazon ML uses the statistics internally duringMLModeltraining. This parameter must be set totrueif theDataSourceneeds to be used forMLModeltraining- Returns:
- The compute statistics for a
DataSource. The statistics are generated from the observation data referenced by aDataSource. Amazon ML uses the statistics internally duringMLModeltraining. This parameter must be set totrueif theDataSourceneeds to be used forMLModeltraining
-
withComputeStatistics
public CreateDataSourceFromRedshiftRequest withComputeStatistics(Boolean computeStatistics)
The compute statistics for a
DataSource. The statistics are generated from the observation data referenced by aDataSource. Amazon ML uses the statistics internally duringMLModeltraining. This parameter must be set totrueif theDataSourceneeds to be used forMLModeltraining- Parameters:
computeStatistics- The compute statistics for aDataSource. The statistics are generated from the observation data referenced by aDataSource. Amazon ML uses the statistics internally duringMLModeltraining. This parameter must be set totrueif theDataSourceneeds to be used forMLModeltraining- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
isComputeStatistics
public Boolean isComputeStatistics()
The compute statistics for a
DataSource. The statistics are generated from the observation data referenced by aDataSource. Amazon ML uses the statistics internally duringMLModeltraining. This parameter must be set totrueif theDataSourceneeds to be used forMLModeltraining- Returns:
- The compute statistics for a
DataSource. The statistics are generated from the observation data referenced by aDataSource. Amazon ML uses the statistics internally duringMLModeltraining. This parameter must be set totrueif theDataSourceneeds to be used forMLModeltraining
-
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 CreateDataSourceFromRedshiftRequest clone()
Description copied from class:AmazonWebServiceRequestCreates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.- Overrides:
clonein classAmazonWebServiceRequest- See Also:
Object.clone()
-
-