Class CfnDatasetMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.forecast.CfnDatasetMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDatasetMixinProps>
- Enclosing interface:
CfnDatasetMixinProps
@Stability(Stable)
public static final class CfnDatasetMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDatasetMixinProps>
A builder for
CfnDatasetMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.dataFrequency(String dataFrequency) Sets the value ofCfnDatasetMixinProps.getDataFrequency()datasetName(String datasetName) Sets the value ofCfnDatasetMixinProps.getDatasetName()datasetType(String datasetType) Sets the value ofCfnDatasetMixinProps.getDatasetType()Sets the value ofCfnDatasetMixinProps.getDomain()encryptionConfig(Object encryptionConfig) Sets the value ofCfnDatasetMixinProps.getEncryptionConfig()Sets the value ofCfnDatasetMixinProps.getSchema()tags(List<? extends CfnDatasetPropsMixin.TagsItemsProperty> tags) Sets the value ofCfnDatasetMixinProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
dataFrequency
Sets the value ofCfnDatasetMixinProps.getDataFrequency()- Parameters:
dataFrequency- The frequency of data collection. This parameter is required for RELATED_TIME_SERIES datasets. Valid intervals are an integer followed by Y (Year), M (Month), W (Week), D (Day), H (Hour), and min (Minute). For example, "1D" indicates every day and "15min" indicates every 15 minutes. You cannot specify a value that would overlap with the next larger frequency. That means, for example, you cannot specify a frequency of 60 minutes, because that is equivalent to 1 hour. The valid values for each frequency are the following:- Minute - 1-59
- Hour - 1-23
- Day - 1-6
- Week - 1-4
- Month - 1-11
- Year - 1
Thus, if you want every other week forecasts, specify "2W". Or, if you want quarterly forecasts, you specify "3M".
- Returns:
this
-
datasetName
Sets the value ofCfnDatasetMixinProps.getDatasetName()- Parameters:
datasetName- The name of the dataset.- Returns:
this
-
datasetType
Sets the value ofCfnDatasetMixinProps.getDatasetType()- Parameters:
datasetType- The dataset type.- Returns:
this
-
domain
Sets the value ofCfnDatasetMixinProps.getDomain()- Parameters:
domain- The domain associated with the dataset.- Returns:
this
-
encryptionConfig
Sets the value ofCfnDatasetMixinProps.getEncryptionConfig()- Parameters:
encryptionConfig- A Key Management Service (KMS) key and the Identity and Access Management (IAM) role that Amazon Forecast can assume to access the key.- Returns:
this
-
schema
Sets the value ofCfnDatasetMixinProps.getSchema()- Parameters:
schema- The schema for the dataset. The schema attributes and their order must match the fields in your data. The datasetDomainandDatasetTypethat you choose determine the minimum required fields in your training data. For information about the required fields for a specific dataset domain and type, see Dataset Domains and Dataset Types .- Returns:
this
-
tags
@Stability(Stable) public CfnDatasetMixinProps.Builder tags(List<? extends CfnDatasetPropsMixin.TagsItemsProperty> tags) Sets the value ofCfnDatasetMixinProps.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:
buildin interfacesoftware.amazon.jsii.Builder<CfnDatasetMixinProps>- Returns:
- a new instance of
CfnDatasetMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-