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