Struct aws_sdk_lambda::operation::invoke_with_response_stream::builders::InvokeWithResponseStreamOutputBuilder
source · #[non_exhaustive]pub struct InvokeWithResponseStreamOutputBuilder { /* private fields */ }
Expand description
A builder for InvokeWithResponseStreamOutput
.
Implementations§
source§impl InvokeWithResponseStreamOutputBuilder
impl InvokeWithResponseStreamOutputBuilder
sourcepub fn status_code(self, input: i32) -> Self
pub fn status_code(self, input: i32) -> Self
For a successful request, the HTTP status code is in the 200 range. For the RequestResponse
invocation type, this status code is 200. For the DryRun
invocation type, this status code is 204.
sourcepub fn set_status_code(self, input: Option<i32>) -> Self
pub fn set_status_code(self, input: Option<i32>) -> Self
For a successful request, the HTTP status code is in the 200 range. For the RequestResponse
invocation type, this status code is 200. For the DryRun
invocation type, this status code is 204.
sourcepub fn get_status_code(&self) -> &Option<i32>
pub fn get_status_code(&self) -> &Option<i32>
For a successful request, the HTTP status code is in the 200 range. For the RequestResponse
invocation type, this status code is 200. For the DryRun
invocation type, this status code is 204.
sourcepub fn executed_version(self, input: impl Into<String>) -> Self
pub fn executed_version(self, input: impl Into<String>) -> Self
The version of the function that executed. When you invoke a function with an alias, this indicates which version the alias resolved to.
sourcepub fn set_executed_version(self, input: Option<String>) -> Self
pub fn set_executed_version(self, input: Option<String>) -> Self
The version of the function that executed. When you invoke a function with an alias, this indicates which version the alias resolved to.
sourcepub fn get_executed_version(&self) -> &Option<String>
pub fn get_executed_version(&self) -> &Option<String>
The version of the function that executed. When you invoke a function with an alias, this indicates which version the alias resolved to.
sourcepub fn event_stream(
self,
input: EventReceiver<InvokeWithResponseStreamResponseEvent, InvokeWithResponseStreamResponseEventError>
) -> Self
pub fn event_stream( self, input: EventReceiver<InvokeWithResponseStreamResponseEvent, InvokeWithResponseStreamResponseEventError> ) -> Self
The stream of response payloads.
sourcepub fn set_event_stream(
self,
input: Option<EventReceiver<InvokeWithResponseStreamResponseEvent, InvokeWithResponseStreamResponseEventError>>
) -> Self
pub fn set_event_stream( self, input: Option<EventReceiver<InvokeWithResponseStreamResponseEvent, InvokeWithResponseStreamResponseEventError>> ) -> Self
The stream of response payloads.
sourcepub fn get_event_stream(
&self
) -> &Option<EventReceiver<InvokeWithResponseStreamResponseEvent, InvokeWithResponseStreamResponseEventError>>
pub fn get_event_stream( &self ) -> &Option<EventReceiver<InvokeWithResponseStreamResponseEvent, InvokeWithResponseStreamResponseEventError>>
The stream of response payloads.
sourcepub fn response_stream_content_type(self, input: impl Into<String>) -> Self
pub fn response_stream_content_type(self, input: impl Into<String>) -> Self
The type of data the stream is returning.
sourcepub fn set_response_stream_content_type(self, input: Option<String>) -> Self
pub fn set_response_stream_content_type(self, input: Option<String>) -> Self
The type of data the stream is returning.
sourcepub fn get_response_stream_content_type(&self) -> &Option<String>
pub fn get_response_stream_content_type(&self) -> &Option<String>
The type of data the stream is returning.
sourcepub fn build(self) -> Result<InvokeWithResponseStreamOutput, BuildError>
pub fn build(self) -> Result<InvokeWithResponseStreamOutput, BuildError>
Consumes the builder and constructs a InvokeWithResponseStreamOutput
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Default for InvokeWithResponseStreamOutputBuilder
impl Default for InvokeWithResponseStreamOutputBuilder
source§fn default() -> InvokeWithResponseStreamOutputBuilder
fn default() -> InvokeWithResponseStreamOutputBuilder
Auto Trait Implementations§
impl !Freeze for InvokeWithResponseStreamOutputBuilder
impl !RefUnwindSafe for InvokeWithResponseStreamOutputBuilder
impl Send for InvokeWithResponseStreamOutputBuilder
impl Sync for InvokeWithResponseStreamOutputBuilder
impl Unpin for InvokeWithResponseStreamOutputBuilder
impl !UnwindSafe for InvokeWithResponseStreamOutputBuilder
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