Class CreateDataSourceFromRedshiftRequest
- java.lang.Object
-
- software.amazon.awssdk.core.SdkRequest
-
- software.amazon.awssdk.awscore.AwsRequest
-
- software.amazon.awssdk.services.machinelearning.model.MachineLearningRequest
-
- software.amazon.awssdk.services.machinelearning.model.CreateDataSourceFromRedshiftRequest
-
- All Implemented Interfaces:
SdkPojo,ToCopyableBuilder<CreateDataSourceFromRedshiftRequest.Builder,CreateDataSourceFromRedshiftRequest>
@Generated("software.amazon.awssdk:codegen") public final class CreateDataSourceFromRedshiftRequest extends MachineLearningRequest implements ToCopyableBuilder<CreateDataSourceFromRedshiftRequest.Builder,CreateDataSourceFromRedshiftRequest>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceCreateDataSourceFromRedshiftRequest.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CreateDataSourceFromRedshiftRequest.Builderbuilder()BooleancomputeStatistics()The compute statistics for aDataSource.StringdataSourceId()A user-supplied ID that uniquely identifies theDataSource.StringdataSourceName()A user-supplied name or description of theDataSource.RedshiftDataSpecdataSpec()The data specification of an Amazon RedshiftDataSource:booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()StringroleARN()A fully specified role Amazon Resource Name (ARN).List<SdkField<?>>sdkFields()static Class<? extends CreateDataSourceFromRedshiftRequest.Builder>serializableBuilderClass()CreateDataSourceFromRedshiftRequest.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class software.amazon.awssdk.awscore.AwsRequest
overrideConfiguration
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
dataSourceId
public final String dataSourceId()
A user-supplied ID that uniquely identifies the
DataSource.- Returns:
- A user-supplied ID that uniquely identifies the
DataSource.
-
dataSourceName
public final String dataSourceName()
A user-supplied name or description of the
DataSource.- Returns:
- A user-supplied name or description of the
DataSource.
-
dataSpec
public final RedshiftDataSpec dataSpec()
The data specification of an Amazon Redshift
DataSource:-
DatabaseInformation -
-
DatabaseName- The name of the Amazon Redshift database. -
ClusterIdentifier- The unique ID for the Amazon Redshift cluster.
-
-
DatabaseCredentials - The AWS Identity and Access Management (IAM) credentials that are used to connect to the Amazon Redshift database.
-
SelectSqlQuery - The query that is used to retrieve the observation data for the
Datasource. -
S3StagingLocation - The Amazon Simple Storage Service (Amazon S3) location for staging Amazon Redshift data. The data retrieved from Amazon Redshift using the
SelectSqlQueryquery is stored in this location. -
DataSchemaUri - The Amazon S3 location of the
DataSchema. -
DataSchema - A JSON string representing the schema. This is not required if
DataSchemaUriis specified. -
DataRearrangement - A JSON string that represents the splitting and rearrangement requirements for the
DataSource.Sample -
"{\"splitting\":{\"percentBegin\":10,\"percentEnd\":60}}"
- Returns:
- The data specification of an Amazon Redshift
DataSource:-
DatabaseInformation -
-
DatabaseName- The name of the Amazon Redshift database. -
ClusterIdentifier- The unique ID for the Amazon Redshift cluster.
-
-
DatabaseCredentials - The AWS Identity and Access Management (IAM) credentials that are used to connect to the Amazon Redshift database.
-
SelectSqlQuery - The query that is used to retrieve the observation data for the
Datasource. -
S3StagingLocation - The Amazon Simple Storage Service (Amazon S3) location for staging Amazon Redshift data. The data retrieved from Amazon Redshift using the
SelectSqlQueryquery is stored in this location. -
DataSchemaUri - The Amazon S3 location of the
DataSchema. -
DataSchema - A JSON string representing the schema. This is not required if
DataSchemaUriis specified. -
DataRearrangement - A JSON string that represents the splitting and rearrangement requirements for the
DataSource.Sample -
"{\"splitting\":{\"percentBegin\":10,\"percentEnd\":60}}"
-
-
-
roleARN
public final 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
- 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
-
-
-
computeStatistics
public final 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.- 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.
-
toBuilder
public CreateDataSourceFromRedshiftRequest.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<CreateDataSourceFromRedshiftRequest.Builder,CreateDataSourceFromRedshiftRequest>- Specified by:
toBuilderin classMachineLearningRequest
-
builder
public static CreateDataSourceFromRedshiftRequest.Builder builder()
-
serializableBuilderClass
public static Class<? extends CreateDataSourceFromRedshiftRequest.Builder> serializableBuilderClass()
-
hashCode
public final int hashCode()
- Overrides:
hashCodein classAwsRequest
-
equals
public final boolean equals(Object obj)
- Overrides:
equalsin classAwsRequest
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
getValueForField
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
- Overrides:
getValueForFieldin classSdkRequest
-
-