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.BuildercommonAttributes(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
overrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldsMethods 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
ValidationExceptionwill 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 aValidationExceptionwill 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 theValidationExceptionwill be thrown. In other words, a record must contain dimensions with unique names.Record.Builderavoiding the need to create one manually viaRecord.builder().When the
Consumercompletes,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.Builderavoiding the need to create one manually viaRecord.builder().When the
Consumercompletes,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.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin 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.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-