Struct aws_sdk_iotevents::types::builders::PayloadBuilder
source · #[non_exhaustive]pub struct PayloadBuilder { /* private fields */ }
Expand description
A builder for Payload
.
Implementations§
source§impl PayloadBuilder
impl PayloadBuilder
sourcepub fn content_expression(self, input: impl Into<String>) -> Self
pub fn content_expression(self, input: impl Into<String>) -> Self
The content of the payload. You can use a string expression that includes quoted strings ('
), variables ($variable.
), input values ($input.
), string concatenations, and quoted strings that contain ${}
as the content. The recommended maximum size of a content expression is 1 KB.
sourcepub fn set_content_expression(self, input: Option<String>) -> Self
pub fn set_content_expression(self, input: Option<String>) -> Self
The content of the payload. You can use a string expression that includes quoted strings ('
), variables ($variable.
), input values ($input.
), string concatenations, and quoted strings that contain ${}
as the content. The recommended maximum size of a content expression is 1 KB.
sourcepub fn get_content_expression(&self) -> &Option<String>
pub fn get_content_expression(&self) -> &Option<String>
The content of the payload. You can use a string expression that includes quoted strings ('
), variables ($variable.
), input values ($input.
), string concatenations, and quoted strings that contain ${}
as the content. The recommended maximum size of a content expression is 1 KB.
sourcepub fn type(self, input: PayloadType) -> Self
pub fn type(self, input: PayloadType) -> Self
The value of the payload type can be either STRING
or JSON
.
sourcepub fn set_type(self, input: Option<PayloadType>) -> Self
pub fn set_type(self, input: Option<PayloadType>) -> Self
The value of the payload type can be either STRING
or JSON
.
sourcepub fn get_type(&self) -> &Option<PayloadType>
pub fn get_type(&self) -> &Option<PayloadType>
The value of the payload type can be either STRING
or JSON
.
Trait Implementations§
source§impl Clone for PayloadBuilder
impl Clone for PayloadBuilder
source§fn clone(&self) -> PayloadBuilder
fn clone(&self) -> PayloadBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for PayloadBuilder
impl Debug for PayloadBuilder
source§impl Default for PayloadBuilder
impl Default for PayloadBuilder
source§fn default() -> PayloadBuilder
fn default() -> PayloadBuilder
source§impl PartialEq for PayloadBuilder
impl PartialEq for PayloadBuilder
source§fn eq(&self, other: &PayloadBuilder) -> bool
fn eq(&self, other: &PayloadBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for PayloadBuilder
Auto Trait Implementations§
impl Freeze for PayloadBuilder
impl RefUnwindSafe for PayloadBuilder
impl Send for PayloadBuilder
impl Sync for PayloadBuilder
impl Unpin for PayloadBuilder
impl UnwindSafe for PayloadBuilder
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