Class CfnDatasetProps.Builder
java.lang.Object
software.amazon.awscdk.services.rekognition.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.datasetType(String datasetType) Sets the value ofCfnDatasetProps.getDatasetType()projectArn(String projectArn) Sets the value ofCfnDatasetProps.getProjectArn()Sets the value ofCfnDatasetProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
datasetType
Sets the value ofCfnDatasetProps.getDatasetType()- Parameters:
datasetType- The type of the dataset. This parameter is required. Specify TRAIN to create a training dataset. Specify TEST to create a test dataset.- Returns:
this
-
projectArn
Sets the value ofCfnDatasetProps.getProjectArn()- Parameters:
projectArn- The ARN of the project to which the dataset belongs.- Returns:
this
-
tags
Sets the value ofCfnDatasetProps.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<CfnDatasetProps>- Returns:
- a new instance of
CfnDatasetProps - Throws:
NullPointerException- if any required attribute was not provided
-