Interface Datastore.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<Datastore.Builder,
,Datastore> SdkBuilder<Datastore.Builder,
,Datastore> SdkPojo
- Enclosing class:
Datastore
-
Method Summary
Modifier and TypeMethodDescriptionThe ARN of the data store.creationTime
(Instant creationTime) When the data store was created.default Datastore.Builder
datastorePartitions
(Consumer<DatastorePartitions.Builder> datastorePartitions) Contains information about the partition dimensions in a data store.datastorePartitions
(DatastorePartitions datastorePartitions) Contains information about the partition dimensions in a data store.default Datastore.Builder
fileFormatConfiguration
(Consumer<FileFormatConfiguration.Builder> fileFormatConfiguration) Contains the configuration information of file formats.fileFormatConfiguration
(FileFormatConfiguration fileFormatConfiguration) Contains the configuration information of file formats.lastMessageArrivalTime
(Instant lastMessageArrivalTime) The last time when a new message arrived in the data store.lastUpdateTime
(Instant lastUpdateTime) The last time the data store was updated.The name of the data store.default Datastore.Builder
retentionPeriod
(Consumer<RetentionPeriod.Builder> retentionPeriod) How long, in days, message data is kept for the data store.retentionPeriod
(RetentionPeriod retentionPeriod) How long, in days, message data is kept for the data store.The status of a data store:status
(DatastoreStatus status) The status of a data store:default Datastore.Builder
storage
(Consumer<DatastoreStorage.Builder> storage) Where data in a data store is stored..storage
(DatastoreStorage storage) Where data in a data store is stored..Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
name
The name of the data store.
- Parameters:
name
- The name of the data store.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
storage
Where data in a data store is stored.. You can choose
serviceManagedS3
storage,customerManagedS3
storage, oriotSiteWiseMultiLayerStorage
storage. The default isserviceManagedS3
. You can't change the choice of Amazon S3 storage after your data store is created.- Parameters:
storage
- Where data in a data store is stored.. You can chooseserviceManagedS3
storage,customerManagedS3
storage, oriotSiteWiseMultiLayerStorage
storage. The default isserviceManagedS3
. You can't change the choice of Amazon S3 storage after your data store is created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
storage
Where data in a data store is stored.. You can choose
This is a convenience method that creates an instance of theserviceManagedS3
storage,customerManagedS3
storage, oriotSiteWiseMultiLayerStorage
storage. The default isserviceManagedS3
. You can't change the choice of Amazon S3 storage after your data store is created.DatastoreStorage.Builder
avoiding the need to create one manually viaDatastoreStorage.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tostorage(DatastoreStorage)
.- Parameters:
storage
- a consumer that will call methods onDatastoreStorage.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
arn
The ARN of the data store.
- Parameters:
arn
- The ARN of the data store.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
status
The status of a data store:
- CREATING
-
The data store is being created.
- ACTIVE
-
The data store has been created and can be used.
- DELETING
-
The data store is being deleted.
- Parameters:
status
- The status of a data store:- CREATING
-
The data store is being created.
- ACTIVE
-
The data store has been created and can be used.
- DELETING
-
The data store is being deleted.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
status
The status of a data store:
- CREATING
-
The data store is being created.
- ACTIVE
-
The data store has been created and can be used.
- DELETING
-
The data store is being deleted.
- Parameters:
status
- The status of a data store:- CREATING
-
The data store is being created.
- ACTIVE
-
The data store has been created and can be used.
- DELETING
-
The data store is being deleted.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
retentionPeriod
How long, in days, message data is kept for the data store. When
customerManagedS3
storage is selected, this parameter is ignored.- Parameters:
retentionPeriod
- How long, in days, message data is kept for the data store. WhencustomerManagedS3
storage is selected, this parameter is ignored.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
retentionPeriod
How long, in days, message data is kept for the data store. When
This is a convenience method that creates an instance of thecustomerManagedS3
storage is selected, this parameter is ignored.RetentionPeriod.Builder
avoiding the need to create one manually viaRetentionPeriod.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toretentionPeriod(RetentionPeriod)
.- Parameters:
retentionPeriod
- a consumer that will call methods onRetentionPeriod.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
creationTime
When the data store was created.
- Parameters:
creationTime
- When the data store was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
lastUpdateTime
The last time the data store was updated.
- Parameters:
lastUpdateTime
- The last time the data store was updated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
lastMessageArrivalTime
The last time when a new message arrived in the data store.
IoT Analytics updates this value at most once per minute for Amazon Simple Storage Service one data store. Hence, the
lastMessageArrivalTime
value is an approximation.This feature only applies to messages that arrived in the data store after October 23, 2020.
- Parameters:
lastMessageArrivalTime
- The last time when a new message arrived in the data store.IoT Analytics updates this value at most once per minute for Amazon Simple Storage Service one data store. Hence, the
lastMessageArrivalTime
value is an approximation.This feature only applies to messages that arrived in the data store after October 23, 2020.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
fileFormatConfiguration
Contains the configuration information of file formats. 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.
- Parameters:
fileFormatConfiguration
- Contains the configuration information of file formats. 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:
- Returns a reference to this object so that method calls can be chained together.
-
fileFormatConfiguration
default Datastore.Builder fileFormatConfiguration(Consumer<FileFormatConfiguration.Builder> fileFormatConfiguration) Contains the configuration information of file formats. 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.
This is a convenience method that creates an instance of theFileFormatConfiguration.Builder
avoiding the need to create one manually viaFileFormatConfiguration.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tofileFormatConfiguration(FileFormatConfiguration)
.- Parameters:
fileFormatConfiguration
- a consumer that will call methods onFileFormatConfiguration.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
datastorePartitions
Contains information about the partition dimensions in a data store.
- Parameters:
datastorePartitions
- Contains information about the partition dimensions in a data store.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
datastorePartitions
default Datastore.Builder datastorePartitions(Consumer<DatastorePartitions.Builder> datastorePartitions) Contains information about the partition dimensions in a data store.
This is a convenience method that creates an instance of theDatastorePartitions.Builder
avoiding the need to create one manually viaDatastorePartitions.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed todatastorePartitions(DatastorePartitions)
.- Parameters:
datastorePartitions
- a consumer that will call methods onDatastorePartitions.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-