@Generated(value="software.amazon.awssdk:codegen") public final class WriteRecordsRequest extends TimestreamWriteRequest implements ToCopyableBuilder<WriteRecordsRequest.Builder,WriteRecordsRequest>
| Modifier and Type | Class and Description |
|---|---|
static interface |
WriteRecordsRequest.Builder |
| Modifier and Type | Method and Description |
|---|---|
static WriteRecordsRequest.Builder |
builder() |
Record |
commonAttributes()
A record that contains the common measure, dimension, time, and version attributes shared across all the records
in the request.
|
String |
databaseName()
The name of the Timestream database.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
boolean |
hasRecords()
For responses, this returns true if the service returned a value for the Records property.
|
List<Record> |
records()
An array of records that contain the unique measure, dimension, time, and version attributes for each time-series
data point.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends WriteRecordsRequest.Builder> |
serializableBuilderClass() |
String |
tableName()
The name of the Timestream table.
|
WriteRecordsRequest.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
overrideConfigurationclone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String databaseName()
The name of the Timestream database.
public final String tableName()
The name of the Timestream table.
public final 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
ValidationException will be thrown. In other words, a record must contain dimensions with unique
names.
ValidationException will be thrown. In other words, a record must contain
dimensions with unique names.public final boolean hasRecords()
isEmpty() method on the property). This is
useful because the SDK will never return a null collection or map, but you may need to differentiate between the
service returning nothing (or null) and the service returning an empty collection or map. For requests, this
returns true if a value for the property was specified in the request builder, and false if a value was not
specified.public final List<Record> records()
An array of records that contain the unique measure, dimension, time, and version attributes for each time-series data point.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasRecords() method.
public WriteRecordsRequest.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<WriteRecordsRequest.Builder,WriteRecordsRequest>toBuilder in class TimestreamWriteRequestpublic static WriteRecordsRequest.Builder builder()
public static Class<? extends WriteRecordsRequest.Builder> serializableBuilderClass()
public final int hashCode()
hashCode in class AwsRequestpublic final boolean equals(Object obj)
equals in class AwsRequestpublic final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
getValueForField in class SdkRequestCopyright © 2023. All rights reserved.