#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct GetAutomationExecutionOutput {
pub automation_execution: ::std::option::Option<crate::types::AutomationExecution>,
_request_id: Option<String>,
}
impl GetAutomationExecutionOutput {
pub fn automation_execution(&self) -> ::std::option::Option<&crate::types::AutomationExecution> {
self.automation_execution.as_ref()
}
}
impl ::aws_types::request_id::RequestId for GetAutomationExecutionOutput {
fn request_id(&self) -> Option<&str> {
self._request_id.as_deref()
}
}
impl GetAutomationExecutionOutput {
pub fn builder() -> crate::operation::get_automation_execution::builders::GetAutomationExecutionOutputBuilder {
crate::operation::get_automation_execution::builders::GetAutomationExecutionOutputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct GetAutomationExecutionOutputBuilder {
pub(crate) automation_execution: ::std::option::Option<crate::types::AutomationExecution>,
_request_id: Option<String>,
}
impl GetAutomationExecutionOutputBuilder {
pub fn automation_execution(mut self, input: crate::types::AutomationExecution) -> Self {
self.automation_execution = ::std::option::Option::Some(input);
self
}
pub fn set_automation_execution(mut self, input: ::std::option::Option<crate::types::AutomationExecution>) -> Self {
self.automation_execution = input;
self
}
pub fn get_automation_execution(&self) -> &::std::option::Option<crate::types::AutomationExecution> {
&self.automation_execution
}
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) -> crate::operation::get_automation_execution::GetAutomationExecutionOutput {
crate::operation::get_automation_execution::GetAutomationExecutionOutput {
automation_execution: self.automation_execution,
_request_id: self._request_id,
}
}
}