Class CfnDatasetMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.rekognition.CfnDatasetMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDatasetMixinProps>
- Enclosing interface:
CfnDatasetMixinProps
@Stability(Stable)
public static final class CfnDatasetMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDatasetMixinProps>
A builder for
CfnDatasetMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.datasetType(String datasetType) Sets the value ofCfnDatasetMixinProps.getDatasetType()projectArn(String projectArn) Sets the value ofCfnDatasetMixinProps.getProjectArn()Sets the value ofCfnDatasetMixinProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
datasetType
Sets the value ofCfnDatasetMixinProps.getDatasetType()- Parameters:
datasetType- The type of the dataset. Specify TRAIN to create a training dataset. Specify TEST to create a test dataset.- Returns:
this
-
projectArn
Sets the value ofCfnDatasetMixinProps.getProjectArn()- Parameters:
projectArn- The ARN of the project to which the dataset belongs.- Returns:
this
-
tags
Sets the value ofCfnDatasetMixinProps.getTags()- Parameters:
tags- An array of key-value pairs to apply to this resource.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnDatasetMixinProps>- Returns:
- a new instance of
CfnDatasetMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-