Class CfnDatasetProps.Builder
java.lang.Object
software.amazon.awscdk.services.scn.CfnDatasetProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDatasetProps>
- Enclosing interface:
CfnDatasetProps
@Stability(Stable)
public static final class CfnDatasetProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDatasetProps>
A builder for
CfnDatasetProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.description(String description) Sets the value ofCfnDatasetProps.getDescription()instanceId(String instanceId) Sets the value ofCfnDatasetProps.getInstanceId()Sets the value ofCfnDatasetProps.getName()Sets the value ofCfnDatasetProps.getNamespace()partitionSpec(IResolvable partitionSpec) Sets the value ofCfnDatasetProps.getPartitionSpec()partitionSpec(CfnDataset.PartitionSpecProperty partitionSpec) Sets the value ofCfnDatasetProps.getPartitionSpec()schema(IResolvable schema) Sets the value ofCfnDatasetProps.getSchema()schema(CfnDataset.SchemaProperty schema) Sets the value ofCfnDatasetProps.getSchema()Sets the value ofCfnDatasetProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
instanceId
Sets the value ofCfnDatasetProps.getInstanceId()- Parameters:
instanceId- The Amazon Web Services Supply Chain instance identifier. This parameter is required.- Returns:
this
-
name
Sets the value ofCfnDatasetProps.getName()- Parameters:
name- The name of the dataset. This parameter is required.- Returns:
this
-
namespace
Sets the value ofCfnDatasetProps.getNamespace()- Parameters:
namespace- The namespace of the dataset. This parameter is required.- Returns:
this
-
description
Sets the value ofCfnDatasetProps.getDescription()- Parameters:
description- The description of the dataset.- Returns:
this
-
partitionSpec
Sets the value ofCfnDatasetProps.getPartitionSpec()- Parameters:
partitionSpec- The partition specification of the dataset.- Returns:
this
-
partitionSpec
@Stability(Stable) public CfnDatasetProps.Builder partitionSpec(CfnDataset.PartitionSpecProperty partitionSpec) Sets the value ofCfnDatasetProps.getPartitionSpec()- Parameters:
partitionSpec- The partition specification of the dataset.- Returns:
this
-
schema
Sets the value ofCfnDatasetProps.getSchema()- Parameters:
schema- The schema of the dataset.- Returns:
this
-
schema
Sets the value ofCfnDatasetProps.getSchema()- Parameters:
schema- The schema of the dataset.- Returns:
this
-
tags
Sets the value ofCfnDatasetProps.getTags()- Parameters:
tags- The tags for the dataset.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnDatasetProps>- Returns:
- a new instance of
CfnDatasetProps - Throws:
NullPointerException- if any required attribute was not provided
-