#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct InvokeActStepOutput {
pub calls: ::std::vec::Vec<crate::types::Call>,
pub step_id: ::std::string::String,
_request_id: Option<String>,
}
impl InvokeActStepOutput {
pub fn calls(&self) -> &[crate::types::Call] {
use std::ops::Deref;
self.calls.deref()
}
pub fn step_id(&self) -> &str {
use std::ops::Deref;
self.step_id.deref()
}
}
impl ::aws_types::request_id::RequestId for InvokeActStepOutput {
fn request_id(&self) -> Option<&str> {
self._request_id.as_deref()
}
}
impl InvokeActStepOutput {
pub fn builder() -> crate::operation::invoke_act_step::builders::InvokeActStepOutputBuilder {
crate::operation::invoke_act_step::builders::InvokeActStepOutputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct InvokeActStepOutputBuilder {
pub(crate) calls: ::std::option::Option<::std::vec::Vec<crate::types::Call>>,
pub(crate) step_id: ::std::option::Option<::std::string::String>,
_request_id: Option<String>,
}
impl InvokeActStepOutputBuilder {
pub fn calls(mut self, input: crate::types::Call) -> Self {
let mut v = self.calls.unwrap_or_default();
v.push(input);
self.calls = ::std::option::Option::Some(v);
self
}
pub fn set_calls(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::Call>>) -> Self {
self.calls = input;
self
}
pub fn get_calls(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::Call>> {
&self.calls
}
pub fn step_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.step_id = ::std::option::Option::Some(input.into());
self
}
pub fn set_step_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.step_id = input;
self
}
pub fn get_step_id(&self) -> &::std::option::Option<::std::string::String> {
&self.step_id
}
pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
self._request_id = Some(request_id.into());
self
}
pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
self._request_id = request_id;
self
}
pub fn build(
self,
) -> ::std::result::Result<crate::operation::invoke_act_step::InvokeActStepOutput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::invoke_act_step::InvokeActStepOutput {
calls: self.calls.ok_or_else(|| {
::aws_smithy_types::error::operation::BuildError::missing_field(
"calls",
"calls was not specified but it is required when building InvokeActStepOutput",
)
})?,
step_id: self.step_id.ok_or_else(|| {
::aws_smithy_types::error::operation::BuildError::missing_field(
"step_id",
"step_id was not specified but it is required when building InvokeActStepOutput",
)
})?,
_request_id: self._request_id,
})
}
}