Interface WriteRecordsRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<WriteRecordsRequest.Builder,
,WriteRecordsRequest> SdkBuilder<WriteRecordsRequest.Builder,
,WriteRecordsRequest> SdkPojo
,SdkRequest.Builder
,TimestreamWriteRequest.Builder
- Enclosing class:
WriteRecordsRequest
-
Method Summary
Modifier and TypeMethodDescriptiondefault WriteRecordsRequest.Builder
commonAttributes
(Consumer<Record.Builder> commonAttributes) A record that contains the common measure, dimension, time, and version attributes shared across all the records in the request.commonAttributes
(Record commonAttributes) A record that contains the common measure, dimension, time, and version attributes shared across all the records in the request.databaseName
(String databaseName) The name of the Timestream database.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.records
(Collection<Record> records) An array of records that contain the unique measure, dimension, time, and version attributes for each time-series data point.records
(Consumer<Record.Builder>... records) An array of records that contain the unique measure, dimension, time, and version attributes for each time-series data point.An array of records that contain the unique measure, dimension, time, and version attributes for each time-series data point.The name of the Timestream table.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
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
Methods inherited from interface software.amazon.awssdk.services.timestreamwrite.model.TimestreamWriteRequest.Builder
build
-
Method Details
-
databaseName
The name of the Timestream database.
- Parameters:
databaseName
- The name of the Timestream database.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tableName
The name of the Timestream table.
- Parameters:
tableName
- The name of the Timestream table.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
commonAttributes
A record that contains the common measure, dimension, time, and version attributes shared across all the records in the request. The measure and dimension attributes specified will be merged with the measure and dimension attributes in the records object when the data is written into Timestream. Dimensions may not overlap, or a
ValidationException
will be thrown. In other words, a record must contain dimensions with unique names.- Parameters:
commonAttributes
- A record that contains the common measure, dimension, time, and version attributes shared across all the records in the request. The measure and dimension attributes specified will be merged with the measure and dimension attributes in the records object when the data is written into Timestream. Dimensions may not overlap, or aValidationException
will be thrown. In other words, a record must contain dimensions with unique names.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
commonAttributes
A record that contains the common measure, dimension, time, and version attributes shared across all the records in the request. The measure and dimension attributes specified will be merged with the measure and dimension attributes in the records object when the data is written into Timestream. Dimensions may not overlap, or a
This is a convenience method that creates an instance of theValidationException
will be thrown. In other words, a record must contain dimensions with unique names.Record.Builder
avoiding the need to create one manually viaRecord.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tocommonAttributes(Record)
.- Parameters:
commonAttributes
- a consumer that will call methods onRecord.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
records
An array of records that contain the unique measure, dimension, time, and version attributes for each time-series data point.
- Parameters:
records
- An array of records that contain the unique measure, dimension, time, and version attributes for each time-series data point.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
records
An array of records that contain the unique measure, dimension, time, and version attributes for each time-series data point.
- Parameters:
records
- An array of records that contain the unique measure, dimension, time, and version attributes for each time-series data point.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
records
An array of records that contain the unique measure, dimension, time, and version attributes for each time-series data point.
This is a convenience method that creates an instance of theRecord.Builder
avoiding the need to create one manually viaRecord.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed torecords(List<Record>)
.- Parameters:
records
- a consumer that will call methods onRecord.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
overrideConfiguration
WriteRecordsRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
WriteRecordsRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-