Class CfnDataset.SchemaProperty.Builder
java.lang.Object
software.amazon.awscdk.services.forecast.CfnDataset.SchemaProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDataset.SchemaProperty>
- Enclosing interface:
CfnDataset.SchemaProperty
@Stability(Stable)
public static final class CfnDataset.SchemaProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDataset.SchemaProperty>
A builder for
CfnDataset.SchemaProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionattributes
(List<? extends Object> attributes) Sets the value ofCfnDataset.SchemaProperty.getAttributes()
attributes
(IResolvable attributes) Sets the value ofCfnDataset.SchemaProperty.getAttributes()
build()
Builds the configured instance.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
attributes
Sets the value ofCfnDataset.SchemaProperty.getAttributes()
- Parameters:
attributes
- An array of attributes specifying the name and type of each field in a dataset.- Returns:
this
-
attributes
@Stability(Stable) public CfnDataset.SchemaProperty.Builder attributes(List<? extends Object> attributes) Sets the value ofCfnDataset.SchemaProperty.getAttributes()
- Parameters:
attributes
- An array of attributes specifying the name and type of each field in a dataset.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnDataset.SchemaProperty>
- Returns:
- a new instance of
CfnDataset.SchemaProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-