Class CfnDatasetGroup.Builder

java.lang.Object
software.amazon.awscdk.services.forecast.CfnDatasetGroup.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDatasetGroup>
Enclosing class:
CfnDatasetGroup

@Stability(Stable) public static final class CfnDatasetGroup.Builder extends Object implements software.amazon.jsii.Builder<CfnDatasetGroup>
A fluent builder for CfnDatasetGroup.
  • Method Details

    • create

      @Stability(Stable) public static CfnDatasetGroup.Builder create(Construct scope, String id)
      Parameters:
      scope -
      • scope in which this resource is defined.
      This parameter is required.
      id -
      • scoped id of the resource.
      This parameter is required.
      Returns:
      a new instance of CfnDatasetGroup.Builder.
    • datasetGroupName

      @Stability(Stable) public CfnDatasetGroup.Builder datasetGroupName(String datasetGroupName)
      The name of the dataset group.

      Parameters:
      datasetGroupName - The name of the dataset group. This parameter is required.
      Returns:
      this
    • domain

      @Stability(Stable) public CfnDatasetGroup.Builder domain(String domain)
      The domain associated with the dataset group.

      When you add a dataset to a dataset group, this value and the value specified for the Domain parameter of the CreateDataset operation must match.

      The Domain and DatasetType that you choose determine the fields that must be present in training data that you import to a dataset. For example, if you choose the RETAIL domain and TARGET_TIME_SERIES as the DatasetType , Amazon Forecast requires that item_id , timestamp , and demand fields are present in your data. For more information, see Dataset groups .

      Parameters:
      domain - The domain associated with the dataset group. This parameter is required.
      Returns:
      this
    • datasetArns

      @Stability(Stable) public CfnDatasetGroup.Builder datasetArns(List<String> datasetArns)
      An array of Amazon Resource Names (ARNs) of the datasets that you want to include in the dataset group.

      Parameters:
      datasetArns - An array of Amazon Resource Names (ARNs) of the datasets that you want to include in the dataset group. This parameter is required.
      Returns:
      this
    • tags

      @Stability(Stable) public CfnDatasetGroup.Builder tags(List<? extends CfnTag> tags)
      An array of key-value pairs to apply to this resource.

      For more information, see Tag .

      Parameters:
      tags - An array of key-value pairs to apply to this resource. This parameter is required.
      Returns:
      this
    • build

      @Stability(Stable) public CfnDatasetGroup build()
      Specified by:
      build in interface software.amazon.jsii.Builder<CfnDatasetGroup>
      Returns:
      a newly built instance of CfnDatasetGroup.