Struct aws_sdk_honeycode::types::builders::UpsertRowDataBuilder
source · #[non_exhaustive]pub struct UpsertRowDataBuilder { /* private fields */ }
Expand description
A builder for UpsertRowData
.
Implementations§
source§impl UpsertRowDataBuilder
impl UpsertRowDataBuilder
sourcepub fn batch_item_id(self, input: impl Into<String>) -> Self
pub fn batch_item_id(self, input: impl Into<String>) -> Self
An external identifier that represents a single item in the request that is being upserted as part of the BatchUpsertTableRows request. This can be any string that you can use to identify the item in the request. The BatchUpsertTableRows API puts the batch item id in the results to allow you to link data in the request to data in the results.
This field is required.sourcepub fn set_batch_item_id(self, input: Option<String>) -> Self
pub fn set_batch_item_id(self, input: Option<String>) -> Self
An external identifier that represents a single item in the request that is being upserted as part of the BatchUpsertTableRows request. This can be any string that you can use to identify the item in the request. The BatchUpsertTableRows API puts the batch item id in the results to allow you to link data in the request to data in the results.
sourcepub fn get_batch_item_id(&self) -> &Option<String>
pub fn get_batch_item_id(&self) -> &Option<String>
An external identifier that represents a single item in the request that is being upserted as part of the BatchUpsertTableRows request. This can be any string that you can use to identify the item in the request. The BatchUpsertTableRows API puts the batch item id in the results to allow you to link data in the request to data in the results.
sourcepub fn filter(self, input: Filter) -> Self
pub fn filter(self, input: Filter) -> Self
The filter formula to use to find existing matching rows to update. The formula needs to return zero or more rows. If the formula returns 0 rows, then a new row will be appended in the target table. If the formula returns one or more rows, then the returned rows will be updated.
Note that the filter formula needs to return rows from the target table for the upsert operation to succeed. If the filter formula has a syntax error or it doesn't evaluate to zero or more rows in the target table for any one item in the input list, then the entire BatchUpsertTableRows request fails and no updates are made to the table.
This field is required.sourcepub fn set_filter(self, input: Option<Filter>) -> Self
pub fn set_filter(self, input: Option<Filter>) -> Self
The filter formula to use to find existing matching rows to update. The formula needs to return zero or more rows. If the formula returns 0 rows, then a new row will be appended in the target table. If the formula returns one or more rows, then the returned rows will be updated.
Note that the filter formula needs to return rows from the target table for the upsert operation to succeed. If the filter formula has a syntax error or it doesn't evaluate to zero or more rows in the target table for any one item in the input list, then the entire BatchUpsertTableRows request fails and no updates are made to the table.
sourcepub fn get_filter(&self) -> &Option<Filter>
pub fn get_filter(&self) -> &Option<Filter>
The filter formula to use to find existing matching rows to update. The formula needs to return zero or more rows. If the formula returns 0 rows, then a new row will be appended in the target table. If the formula returns one or more rows, then the returned rows will be updated.
Note that the filter formula needs to return rows from the target table for the upsert operation to succeed. If the filter formula has a syntax error or it doesn't evaluate to zero or more rows in the target table for any one item in the input list, then the entire BatchUpsertTableRows request fails and no updates are made to the table.
sourcepub fn cells_to_update(self, k: impl Into<String>, v: CellInput) -> Self
pub fn cells_to_update(self, k: impl Into<String>, v: CellInput) -> Self
Adds a key-value pair to cells_to_update
.
To override the contents of this collection use set_cells_to_update
.
A map representing the cells to update for the matching rows or an appended row. The key is the column id of the cell and the value is the CellInput object that represents the data to set in that cell.
sourcepub fn set_cells_to_update(
self,
input: Option<HashMap<String, CellInput>>
) -> Self
pub fn set_cells_to_update( self, input: Option<HashMap<String, CellInput>> ) -> Self
A map representing the cells to update for the matching rows or an appended row. The key is the column id of the cell and the value is the CellInput object that represents the data to set in that cell.
sourcepub fn get_cells_to_update(&self) -> &Option<HashMap<String, CellInput>>
pub fn get_cells_to_update(&self) -> &Option<HashMap<String, CellInput>>
A map representing the cells to update for the matching rows or an appended row. The key is the column id of the cell and the value is the CellInput object that represents the data to set in that cell.
sourcepub fn build(self) -> Result<UpsertRowData, BuildError>
pub fn build(self) -> Result<UpsertRowData, BuildError>
Consumes the builder and constructs a UpsertRowData
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for UpsertRowDataBuilder
impl Clone for UpsertRowDataBuilder
source§fn clone(&self) -> UpsertRowDataBuilder
fn clone(&self) -> UpsertRowDataBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for UpsertRowDataBuilder
impl Debug for UpsertRowDataBuilder
source§impl Default for UpsertRowDataBuilder
impl Default for UpsertRowDataBuilder
source§fn default() -> UpsertRowDataBuilder
fn default() -> UpsertRowDataBuilder
source§impl PartialEq for UpsertRowDataBuilder
impl PartialEq for UpsertRowDataBuilder
source§fn eq(&self, other: &UpsertRowDataBuilder) -> bool
fn eq(&self, other: &UpsertRowDataBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for UpsertRowDataBuilder
Auto Trait Implementations§
impl Freeze for UpsertRowDataBuilder
impl RefUnwindSafe for UpsertRowDataBuilder
impl Send for UpsertRowDataBuilder
impl Sync for UpsertRowDataBuilder
impl Unpin for UpsertRowDataBuilder
impl UnwindSafe for UpsertRowDataBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more