Struct aws_sdk_timestreamwrite::operation::write_records::builders::WriteRecordsInputBuilder
source · #[non_exhaustive]pub struct WriteRecordsInputBuilder { /* private fields */ }
Expand description
A builder for WriteRecordsInput
.
Implementations§
source§impl WriteRecordsInputBuilder
impl WriteRecordsInputBuilder
sourcepub fn database_name(self, input: impl Into<String>) -> Self
pub fn database_name(self, input: impl Into<String>) -> Self
The name of the Timestream database.
sourcepub fn set_database_name(self, input: Option<String>) -> Self
pub fn set_database_name(self, input: Option<String>) -> Self
The name of the Timestream database.
sourcepub fn get_database_name(&self) -> &Option<String>
pub fn get_database_name(&self) -> &Option<String>
The name of the Timestream database.
sourcepub fn table_name(self, input: impl Into<String>) -> Self
pub fn table_name(self, input: impl Into<String>) -> Self
The name of the Timestream table.
sourcepub fn set_table_name(self, input: Option<String>) -> Self
pub fn set_table_name(self, input: Option<String>) -> Self
The name of the Timestream table.
sourcepub fn get_table_name(&self) -> &Option<String>
pub fn get_table_name(&self) -> &Option<String>
The name of the Timestream table.
sourcepub fn common_attributes(self, input: Record) -> Self
pub fn common_attributes(self, input: Record) -> Self
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.
sourcepub fn set_common_attributes(self, input: Option<Record>) -> Self
pub fn set_common_attributes(self, input: Option<Record>) -> Self
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.
sourcepub fn get_common_attributes(&self) -> &Option<Record>
pub fn get_common_attributes(&self) -> &Option<Record>
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.
sourcepub fn records(self, input: Record) -> Self
pub fn records(self, input: Record) -> Self
Appends an item to records
.
To override the contents of this collection use set_records
.
An array of records that contain the unique measure, dimension, time, and version attributes for each time-series data point.
sourcepub fn set_records(self, input: Option<Vec<Record>>) -> Self
pub fn set_records(self, input: Option<Vec<Record>>) -> Self
An array of records that contain the unique measure, dimension, time, and version attributes for each time-series data point.
sourcepub fn get_records(&self) -> &Option<Vec<Record>>
pub fn get_records(&self) -> &Option<Vec<Record>>
An array of records that contain the unique measure, dimension, time, and version attributes for each time-series data point.
sourcepub fn build(self) -> Result<WriteRecordsInput, BuildError>
pub fn build(self) -> Result<WriteRecordsInput, BuildError>
Consumes the builder and constructs a WriteRecordsInput
.
source§impl WriteRecordsInputBuilder
impl WriteRecordsInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<WriteRecordsOutput, SdkError<WriteRecordsError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<WriteRecordsOutput, SdkError<WriteRecordsError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for WriteRecordsInputBuilder
impl Clone for WriteRecordsInputBuilder
source§fn clone(&self) -> WriteRecordsInputBuilder
fn clone(&self) -> WriteRecordsInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for WriteRecordsInputBuilder
impl Debug for WriteRecordsInputBuilder
source§impl Default for WriteRecordsInputBuilder
impl Default for WriteRecordsInputBuilder
source§fn default() -> WriteRecordsInputBuilder
fn default() -> WriteRecordsInputBuilder
source§impl PartialEq<WriteRecordsInputBuilder> for WriteRecordsInputBuilder
impl PartialEq<WriteRecordsInputBuilder> for WriteRecordsInputBuilder
source§fn eq(&self, other: &WriteRecordsInputBuilder) -> bool
fn eq(&self, other: &WriteRecordsInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.