Class CfnDataset.Builder
java.lang.Object
software.amazon.awscdk.services.rekognition.CfnDataset.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDataset>
- Enclosing class:
CfnDataset
@Stability(Stable)
public static final class CfnDataset.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDataset>
A fluent builder for
CfnDataset.-
Method Summary
Modifier and TypeMethodDescriptionbuild()static CfnDataset.BuilderdatasetType(String datasetType) The type of the dataset.projectArn(String projectArn) The ARN of the project to which the dataset belongs.An array of key-value pairs to apply to this resource.
-
Method Details
-
create
@Stability(Stable) public static CfnDataset.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.- Returns:
- a new instance of
CfnDataset.Builder.
-
datasetType
The type of the dataset.Specify TRAIN to create a training dataset. Specify TEST to create a test dataset.
- Parameters:
datasetType- The type of the dataset. This parameter is required.- Returns:
this- See Also:
-
projectArn
The ARN of the project to which the dataset belongs.- Parameters:
projectArn- The ARN of the project to which the dataset belongs. This parameter is required.- Returns:
this- See Also:
-
tags
An array of key-value pairs to apply to this resource.- Parameters:
tags- An array of key-value pairs to apply to this resource. This parameter is required.- Returns:
this- See Also:
-
build
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnDataset>- Returns:
- a newly built instance of
CfnDataset.
-