Struct aws_sdk_iotevents::types::builders::DynamoDBv2ActionBuilder
source · #[non_exhaustive]pub struct DynamoDBv2ActionBuilder { /* private fields */ }
Expand description
A builder for DynamoDBv2Action
.
Implementations§
source§impl DynamoDBv2ActionBuilder
impl DynamoDBv2ActionBuilder
sourcepub fn table_name(self, input: impl Into<String>) -> Self
pub fn table_name(self, input: impl Into<String>) -> Self
The name of the DynamoDB table.
This field is required.sourcepub fn set_table_name(self, input: Option<String>) -> Self
pub fn set_table_name(self, input: Option<String>) -> Self
The name of the DynamoDB table.
sourcepub fn get_table_name(&self) -> &Option<String>
pub fn get_table_name(&self) -> &Option<String>
The name of the DynamoDB table.
sourcepub fn payload(self, input: Payload) -> Self
pub fn payload(self, input: Payload) -> Self
Information needed to configure the payload.
By default, AWS IoT Events generates a standard payload in JSON for any action. This action payload contains all attribute-value pairs that have the information about the detector model instance and the event triggered the action. To configure the action payload, you can use contentExpression
.
sourcepub fn set_payload(self, input: Option<Payload>) -> Self
pub fn set_payload(self, input: Option<Payload>) -> Self
Information needed to configure the payload.
By default, AWS IoT Events generates a standard payload in JSON for any action. This action payload contains all attribute-value pairs that have the information about the detector model instance and the event triggered the action. To configure the action payload, you can use contentExpression
.
sourcepub fn get_payload(&self) -> &Option<Payload>
pub fn get_payload(&self) -> &Option<Payload>
Information needed to configure the payload.
By default, AWS IoT Events generates a standard payload in JSON for any action. This action payload contains all attribute-value pairs that have the information about the detector model instance and the event triggered the action. To configure the action payload, you can use contentExpression
.
sourcepub fn build(self) -> Result<DynamoDBv2Action, BuildError>
pub fn build(self) -> Result<DynamoDBv2Action, BuildError>
Consumes the builder and constructs a DynamoDBv2Action
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for DynamoDBv2ActionBuilder
impl Clone for DynamoDBv2ActionBuilder
source§fn clone(&self) -> DynamoDBv2ActionBuilder
fn clone(&self) -> DynamoDBv2ActionBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for DynamoDBv2ActionBuilder
impl Debug for DynamoDBv2ActionBuilder
source§impl Default for DynamoDBv2ActionBuilder
impl Default for DynamoDBv2ActionBuilder
source§fn default() -> DynamoDBv2ActionBuilder
fn default() -> DynamoDBv2ActionBuilder
source§impl PartialEq for DynamoDBv2ActionBuilder
impl PartialEq for DynamoDBv2ActionBuilder
source§fn eq(&self, other: &DynamoDBv2ActionBuilder) -> bool
fn eq(&self, other: &DynamoDBv2ActionBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for DynamoDBv2ActionBuilder
Auto Trait Implementations§
impl Freeze for DynamoDBv2ActionBuilder
impl RefUnwindSafe for DynamoDBv2ActionBuilder
impl Send for DynamoDBv2ActionBuilder
impl Sync for DynamoDBv2ActionBuilder
impl Unpin for DynamoDBv2ActionBuilder
impl UnwindSafe for DynamoDBv2ActionBuilder
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