Class CfnDatastoreProps.Builder
java.lang.Object
software.amazon.awscdk.services.iotanalytics.CfnDatastoreProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDatastoreProps>
- Enclosing interface:
CfnDatastoreProps
@Stability(Stable)
public static final class CfnDatastoreProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDatastoreProps>
A builder for
CfnDatastoreProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.datastoreName(String datastoreName) Sets the value ofCfnDatastoreProps.getDatastoreName()datastorePartitions(IResolvable datastorePartitions) Sets the value ofCfnDatastoreProps.getDatastorePartitions()datastorePartitions(CfnDatastore.DatastorePartitionsProperty datastorePartitions) Sets the value ofCfnDatastoreProps.getDatastorePartitions()datastoreStorage(IResolvable datastoreStorage) Sets the value ofCfnDatastoreProps.getDatastoreStorage()datastoreStorage(CfnDatastore.DatastoreStorageProperty datastoreStorage) Sets the value ofCfnDatastoreProps.getDatastoreStorage()fileFormatConfiguration(IResolvable fileFormatConfiguration) Sets the value ofCfnDatastoreProps.getFileFormatConfiguration()fileFormatConfiguration(CfnDatastore.FileFormatConfigurationProperty fileFormatConfiguration) Sets the value ofCfnDatastoreProps.getFileFormatConfiguration()retentionPeriod(IResolvable retentionPeriod) Sets the value ofCfnDatastoreProps.getRetentionPeriod()retentionPeriod(CfnDatastore.RetentionPeriodProperty retentionPeriod) Sets the value ofCfnDatastoreProps.getRetentionPeriod()Sets the value ofCfnDatastoreProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
datastoreName
Sets the value ofCfnDatastoreProps.getDatastoreName()- Parameters:
datastoreName- The name of the data store.- Returns:
this
-
datastorePartitions
@Stability(Stable) public CfnDatastoreProps.Builder datastorePartitions(IResolvable datastorePartitions) Sets the value ofCfnDatastoreProps.getDatastorePartitions()- Parameters:
datastorePartitions- Information about the partition dimensions in a data store.- Returns:
this
-
datastorePartitions
@Stability(Stable) public CfnDatastoreProps.Builder datastorePartitions(CfnDatastore.DatastorePartitionsProperty datastorePartitions) Sets the value ofCfnDatastoreProps.getDatastorePartitions()- Parameters:
datastorePartitions- Information about the partition dimensions in a data store.- Returns:
this
-
datastoreStorage
Sets the value ofCfnDatastoreProps.getDatastoreStorage()- Parameters:
datastoreStorage- Where data store data is stored.- Returns:
this
-
datastoreStorage
@Stability(Stable) public CfnDatastoreProps.Builder datastoreStorage(CfnDatastore.DatastoreStorageProperty datastoreStorage) Sets the value ofCfnDatastoreProps.getDatastoreStorage()- Parameters:
datastoreStorage- Where data store data is stored.- Returns:
this
-
fileFormatConfiguration
@Stability(Stable) public CfnDatastoreProps.Builder fileFormatConfiguration(IResolvable fileFormatConfiguration) Sets the value ofCfnDatastoreProps.getFileFormatConfiguration()- Parameters:
fileFormatConfiguration- Contains the configuration information of file formats. AWS IoT Analytics data stores support JSON and Parquet . The default file format is JSON. You can specify only one format.You can't change the file format after you create the data store.
- Returns:
this
-
fileFormatConfiguration
@Stability(Stable) public CfnDatastoreProps.Builder fileFormatConfiguration(CfnDatastore.FileFormatConfigurationProperty fileFormatConfiguration) Sets the value ofCfnDatastoreProps.getFileFormatConfiguration()- Parameters:
fileFormatConfiguration- Contains the configuration information of file formats. AWS IoT Analytics data stores support JSON and Parquet . The default file format is JSON. You can specify only one format.You can't change the file format after you create the data store.
- Returns:
this
-
retentionPeriod
Sets the value ofCfnDatastoreProps.getRetentionPeriod()- Parameters:
retentionPeriod- How long, in days, message data is kept for the data store. WhencustomerManagedS3storage is selected, this parameter is ignored.- Returns:
this
-
retentionPeriod
@Stability(Stable) public CfnDatastoreProps.Builder retentionPeriod(CfnDatastore.RetentionPeriodProperty retentionPeriod) Sets the value ofCfnDatastoreProps.getRetentionPeriod()- Parameters:
retentionPeriod- How long, in days, message data is kept for the data store. WhencustomerManagedS3storage is selected, this parameter is ignored.- Returns:
this
-
tags
Sets the value ofCfnDatastoreProps.getTags()- Parameters:
tags- Metadata which can be used to manage the data store. For more information, see Tag .- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnDatastoreProps>- Returns:
- a new instance of
CfnDatastoreProps - Throws:
NullPointerException- if any required attribute was not provided
-