aws_sdk_lambda/operation/invoke_async/
_invoke_async_output.rs1#[deprecated]
5#[non_exhaustive]
6#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
7pub struct InvokeAsyncOutput {
8 pub status: i32,
10 _request_id: Option<String>,
11}
12impl InvokeAsyncOutput {
13 pub fn status(&self) -> i32 {
15 self.status
16 }
17}
18impl ::aws_types::request_id::RequestId for InvokeAsyncOutput {
19 fn request_id(&self) -> Option<&str> {
20 self._request_id.as_deref()
21 }
22}
23impl InvokeAsyncOutput {
24 pub fn builder() -> crate::operation::invoke_async::builders::InvokeAsyncOutputBuilder {
26 crate::operation::invoke_async::builders::InvokeAsyncOutputBuilder::default()
27 }
28}
29
30#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
32#[non_exhaustive]
33pub struct InvokeAsyncOutputBuilder {
34 pub(crate) status: ::std::option::Option<i32>,
35 _request_id: Option<String>,
36}
37impl InvokeAsyncOutputBuilder {
38 pub fn status(mut self, input: i32) -> Self {
40 self.status = ::std::option::Option::Some(input);
41 self
42 }
43 pub fn set_status(mut self, input: ::std::option::Option<i32>) -> Self {
45 self.status = input;
46 self
47 }
48 pub fn get_status(&self) -> &::std::option::Option<i32> {
50 &self.status
51 }
52 pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
53 self._request_id = Some(request_id.into());
54 self
55 }
56
57 pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
58 self._request_id = request_id;
59 self
60 }
61 pub fn build(self) -> crate::operation::invoke_async::InvokeAsyncOutput {
63 crate::operation::invoke_async::InvokeAsyncOutput {
64 status: self.status.unwrap_or_default(),
65 _request_id: self._request_id,
66 }
67 }
68}