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