Class CfnProcessingJob.RedshiftDatasetDefinitionProperty.Builder
java.lang.Object
software.amazon.awscdk.services.sagemaker.CfnProcessingJob.RedshiftDatasetDefinitionProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnProcessingJob.RedshiftDatasetDefinitionProperty>
- Enclosing interface:
CfnProcessingJob.RedshiftDatasetDefinitionProperty
@Stability(Stable)
public static final class CfnProcessingJob.RedshiftDatasetDefinitionProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnProcessingJob.RedshiftDatasetDefinitionProperty>
A builder for
CfnProcessingJob.RedshiftDatasetDefinitionProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnProcessingJob.RedshiftDatasetDefinitionProperty.getClusterId()clusterRoleArn(String clusterRoleArn) Sets the value ofCfnProcessingJob.RedshiftDatasetDefinitionProperty.getClusterRoleArn()Sets the value ofCfnProcessingJob.RedshiftDatasetDefinitionProperty.getDatabase()Sets the value ofCfnProcessingJob.RedshiftDatasetDefinitionProperty.getDbUser()Sets the value ofCfnProcessingJob.RedshiftDatasetDefinitionProperty.getKmsKeyId()outputCompression(String outputCompression) outputFormat(String outputFormat) Sets the value ofCfnProcessingJob.RedshiftDatasetDefinitionProperty.getOutputFormat()outputS3Uri(String outputS3Uri) Sets the value ofCfnProcessingJob.RedshiftDatasetDefinitionProperty.getOutputS3Uri()queryString(String queryString) Sets the value ofCfnProcessingJob.RedshiftDatasetDefinitionProperty.getQueryString()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
clusterId
@Stability(Stable) public CfnProcessingJob.RedshiftDatasetDefinitionProperty.Builder clusterId(String clusterId) Sets the value ofCfnProcessingJob.RedshiftDatasetDefinitionProperty.getClusterId()- Parameters:
clusterId- The Redshift cluster Identifier. This parameter is required.- Returns:
this
-
clusterRoleArn
@Stability(Stable) public CfnProcessingJob.RedshiftDatasetDefinitionProperty.Builder clusterRoleArn(String clusterRoleArn) Sets the value ofCfnProcessingJob.RedshiftDatasetDefinitionProperty.getClusterRoleArn()- Parameters:
clusterRoleArn- The IAM role attached to your Redshift cluster that Amazon SageMaker uses to generate datasets. This parameter is required.- Returns:
this
-
database
@Stability(Stable) public CfnProcessingJob.RedshiftDatasetDefinitionProperty.Builder database(String database) Sets the value ofCfnProcessingJob.RedshiftDatasetDefinitionProperty.getDatabase()- Parameters:
database- The name of the Redshift database used in Redshift query execution. This parameter is required.- Returns:
this
-
dbUser
@Stability(Stable) public CfnProcessingJob.RedshiftDatasetDefinitionProperty.Builder dbUser(String dbUser) Sets the value ofCfnProcessingJob.RedshiftDatasetDefinitionProperty.getDbUser()- Parameters:
dbUser- The database user name used in Redshift query execution. This parameter is required.- Returns:
this
-
outputFormat
@Stability(Stable) public CfnProcessingJob.RedshiftDatasetDefinitionProperty.Builder outputFormat(String outputFormat) Sets the value ofCfnProcessingJob.RedshiftDatasetDefinitionProperty.getOutputFormat()- Parameters:
outputFormat- The data storage format for Redshift query results. This parameter is required.- Returns:
this
-
outputS3Uri
@Stability(Stable) public CfnProcessingJob.RedshiftDatasetDefinitionProperty.Builder outputS3Uri(String outputS3Uri) Sets the value ofCfnProcessingJob.RedshiftDatasetDefinitionProperty.getOutputS3Uri()- Parameters:
outputS3Uri- The location in Amazon S3 where the Redshift query results are stored. This parameter is required.- Returns:
this
-
queryString
@Stability(Stable) public CfnProcessingJob.RedshiftDatasetDefinitionProperty.Builder queryString(String queryString) Sets the value ofCfnProcessingJob.RedshiftDatasetDefinitionProperty.getQueryString()- Parameters:
queryString- The SQL query statements to be executed. This parameter is required.- Returns:
this
-
kmsKeyId
@Stability(Stable) public CfnProcessingJob.RedshiftDatasetDefinitionProperty.Builder kmsKeyId(String kmsKeyId) Sets the value ofCfnProcessingJob.RedshiftDatasetDefinitionProperty.getKmsKeyId()- Parameters:
kmsKeyId- The AWS Key Management Service ( AWS KMS) key that Amazon SageMaker uses to encrypt data from a Redshift execution.- Returns:
this
-
outputCompression
@Stability(Stable) public CfnProcessingJob.RedshiftDatasetDefinitionProperty.Builder outputCompression(String outputCompression) - Parameters:
outputCompression- The compression used for Redshift query results.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnProcessingJob.RedshiftDatasetDefinitionProperty>- Returns:
- a new instance of
CfnProcessingJob.RedshiftDatasetDefinitionProperty - Throws:
NullPointerException- if any required attribute was not provided
-