Interface WriteRecordsRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<WriteRecordsRequest.Builder,WriteRecordsRequest>,SdkBuilder<WriteRecordsRequest.Builder,WriteRecordsRequest>,SdkPojo,SdkRequest.Builder,TimestreamWriteRequest.Builder
- Enclosing class:
- WriteRecordsRequest
public static interface WriteRecordsRequest.Builder extends TimestreamWriteRequest.Builder, SdkPojo, CopyableBuilder<WriteRecordsRequest.Builder,WriteRecordsRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default 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.WriteRecordsRequest.BuildercommonAttributes(Record commonAttributes)A record that contains the common measure, dimension, time, and version attributes shared across all the records in the request.WriteRecordsRequest.BuilderdatabaseName(String databaseName)The name of the Timestream database.WriteRecordsRequest.BuilderoverrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)WriteRecordsRequest.BuilderoverrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)WriteRecordsRequest.Builderrecords(Collection<Record> records)An array of records that contain the unique measure, dimension, time, and version attributes for each time-series data point.WriteRecordsRequest.Builderrecords(Consumer<Record.Builder>... records)An array of records that contain the unique measure, dimension, time, and version attributes for each time-series data point.WriteRecordsRequest.Builderrecords(Record... records)An array of records that contain the unique measure, dimension, time, and version attributes for each time-series data point.WriteRecordsRequest.BuildertableName(String tableName)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 Detail
-
databaseName
WriteRecordsRequest.Builder databaseName(String 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
WriteRecordsRequest.Builder tableName(String 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
WriteRecordsRequest.Builder commonAttributes(Record 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
default 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. 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:
commonAttributes(Record)
-
records
WriteRecordsRequest.Builder records(Collection<Record> 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
WriteRecordsRequest.Builder records(Record... 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
WriteRecordsRequest.Builder 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.
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 to#records(List.) - 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:
#records(java.util.Collection)
-
overrideConfiguration
WriteRecordsRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
WriteRecordsRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-