Class CfnDatasetProps.Builder
java.lang.Object
software.amazon.awscdk.services.iotanalytics.CfnDatasetProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDatasetProps>
- Enclosing interface:
- CfnDatasetProps
@Stability(Stable)
public static final class CfnDatasetProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDatasetProps>
A builder for
CfnDatasetProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnDatasetProps.getActions()
actions
(IResolvable actions) Sets the value ofCfnDatasetProps.getActions()
build()
Builds the configured instance.contentDeliveryRules
(List<? extends Object> contentDeliveryRules) Sets the value ofCfnDatasetProps.getContentDeliveryRules()
contentDeliveryRules
(IResolvable contentDeliveryRules) Sets the value ofCfnDatasetProps.getContentDeliveryRules()
datasetName
(String datasetName) Sets the value ofCfnDatasetProps.getDatasetName()
lateDataRules
(List<? extends Object> lateDataRules) Sets the value ofCfnDatasetProps.getLateDataRules()
lateDataRules
(IResolvable lateDataRules) Sets the value ofCfnDatasetProps.getLateDataRules()
retentionPeriod
(IResolvable retentionPeriod) Sets the value ofCfnDatasetProps.getRetentionPeriod()
retentionPeriod
(CfnDataset.RetentionPeriodProperty retentionPeriod) Sets the value ofCfnDatasetProps.getRetentionPeriod()
Sets the value ofCfnDatasetProps.getTags()
Sets the value ofCfnDatasetProps.getTriggers()
triggers
(IResolvable triggers) Sets the value ofCfnDatasetProps.getTriggers()
versioningConfiguration
(IResolvable versioningConfiguration) Sets the value ofCfnDatasetProps.getVersioningConfiguration()
versioningConfiguration
(CfnDataset.VersioningConfigurationProperty versioningConfiguration) Sets the value ofCfnDatasetProps.getVersioningConfiguration()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
actions
Sets the value ofCfnDatasetProps.getActions()
- Parameters:
actions
- TheDatasetAction
objects that automatically create the dataset contents. This parameter is required.- Returns:
this
-
actions
Sets the value ofCfnDatasetProps.getActions()
- Parameters:
actions
- TheDatasetAction
objects that automatically create the dataset contents. This parameter is required.- Returns:
this
-
contentDeliveryRules
@Stability(Stable) public CfnDatasetProps.Builder contentDeliveryRules(IResolvable contentDeliveryRules) Sets the value ofCfnDatasetProps.getContentDeliveryRules()
- Parameters:
contentDeliveryRules
- When dataset contents are created they are delivered to destinations specified here.- Returns:
this
-
contentDeliveryRules
@Stability(Stable) public CfnDatasetProps.Builder contentDeliveryRules(List<? extends Object> contentDeliveryRules) Sets the value ofCfnDatasetProps.getContentDeliveryRules()
- Parameters:
contentDeliveryRules
- When dataset contents are created they are delivered to destinations specified here.- Returns:
this
-
datasetName
Sets the value ofCfnDatasetProps.getDatasetName()
- Parameters:
datasetName
- The name of the dataset.- Returns:
this
-
lateDataRules
Sets the value ofCfnDatasetProps.getLateDataRules()
- Parameters:
lateDataRules
- A list of data rules that send notifications to CloudWatch, when data arrives late. To specifylateDataRules
, the dataset must use a DeltaTimer filter.- Returns:
this
-
lateDataRules
@Stability(Stable) public CfnDatasetProps.Builder lateDataRules(List<? extends Object> lateDataRules) Sets the value ofCfnDatasetProps.getLateDataRules()
- Parameters:
lateDataRules
- A list of data rules that send notifications to CloudWatch, when data arrives late. To specifylateDataRules
, the dataset must use a DeltaTimer filter.- Returns:
this
-
retentionPeriod
Sets the value ofCfnDatasetProps.getRetentionPeriod()
- Parameters:
retentionPeriod
- Optional. How long, in days, message data is kept for the dataset.- Returns:
this
-
retentionPeriod
@Stability(Stable) public CfnDatasetProps.Builder retentionPeriod(CfnDataset.RetentionPeriodProperty retentionPeriod) Sets the value ofCfnDatasetProps.getRetentionPeriod()
- Parameters:
retentionPeriod
- Optional. How long, in days, message data is kept for the dataset.- Returns:
this
-
tags
Sets the value ofCfnDatasetProps.getTags()
- Parameters:
tags
- Metadata which can be used to manage the data set. For more information, see Tag .- Returns:
this
-
triggers
Sets the value ofCfnDatasetProps.getTriggers()
- Parameters:
triggers
- TheDatasetTrigger
objects that specify when the dataset is automatically updated.- Returns:
this
-
triggers
Sets the value ofCfnDatasetProps.getTriggers()
- Parameters:
triggers
- TheDatasetTrigger
objects that specify when the dataset is automatically updated.- Returns:
this
-
versioningConfiguration
@Stability(Stable) public CfnDatasetProps.Builder versioningConfiguration(IResolvable versioningConfiguration) Sets the value ofCfnDatasetProps.getVersioningConfiguration()
- Parameters:
versioningConfiguration
- Optional. How many versions of dataset contents are kept. If not specified or set to null, only the latest version plus the latest succeeded version (if they are different) are kept for the time period specified by theretentionPeriod
parameter. For more information, see Keeping Multiple Versions of AWS IoT Analytics datasets in the AWS IoT Analytics User Guide .- Returns:
this
-
versioningConfiguration
@Stability(Stable) public CfnDatasetProps.Builder versioningConfiguration(CfnDataset.VersioningConfigurationProperty versioningConfiguration) Sets the value ofCfnDatasetProps.getVersioningConfiguration()
- Parameters:
versioningConfiguration
- Optional. How many versions of dataset contents are kept. If not specified or set to null, only the latest version plus the latest succeeded version (if they are different) are kept for the time period specified by theretentionPeriod
parameter. For more information, see Keeping Multiple Versions of AWS IoT Analytics datasets in the AWS IoT Analytics User Guide .- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnDatasetProps>
- Returns:
- a new instance of
CfnDatasetProps
- Throws:
NullPointerException
- if any required attribute was not provided
-