Class CfnDatasetGroupProps.Builder
java.lang.Object
software.amazon.awscdk.services.forecast.CfnDatasetGroupProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDatasetGroupProps>
- Enclosing interface:
CfnDatasetGroupProps
@Stability(Stable)
public static final class CfnDatasetGroupProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDatasetGroupProps>
A builder for
CfnDatasetGroupProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.datasetArns
(List<String> datasetArns) Sets the value ofCfnDatasetGroupProps.getDatasetArns()
datasetGroupName
(String datasetGroupName) Sets the value ofCfnDatasetGroupProps.getDatasetGroupName()
Sets the value ofCfnDatasetGroupProps.getDomain()
Sets the value ofCfnDatasetGroupProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
datasetGroupName
Sets the value ofCfnDatasetGroupProps.getDatasetGroupName()
- Parameters:
datasetGroupName
- The name of the dataset group. This parameter is required.- Returns:
this
-
domain
Sets the value ofCfnDatasetGroupProps.getDomain()
- Parameters:
domain
- The domain associated with the dataset group. This parameter is required. When you add a dataset to a dataset group, this value and the value specified for theDomain
parameter of the CreateDataset operation must match.The
Domain
andDatasetType
that you choose determine the fields that must be present in training data that you import to a dataset. For example, if you choose theRETAIL
domain andTARGET_TIME_SERIES
as theDatasetType
, Amazon Forecast requires thatitem_id
,timestamp
, anddemand
fields are present in your data. For more information, see Dataset groups .- Returns:
this
-
datasetArns
Sets the value ofCfnDatasetGroupProps.getDatasetArns()
- Parameters:
datasetArns
- An array of Amazon Resource Names (ARNs) of the datasets that you want to include in the dataset group.- Returns:
this
-
tags
Sets the value ofCfnDatasetGroupProps.getTags()
- Parameters:
tags
- An array of key-value pairs to apply to this resource. For more information, see Tag .- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnDatasetGroupProps>
- Returns:
- a new instance of
CfnDatasetGroupProps
- Throws:
NullPointerException
- if any required attribute was not provided
-