aws-sdk-ssm 1.112.0

AWS SDK for Amazon Simple Systems Manager (SSM)
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct GetOpsItemOutput {
    /// <p>The OpsItem.</p>
    pub ops_item: ::std::option::Option<crate::types::OpsItem>,
    _request_id: Option<String>,
}
impl GetOpsItemOutput {
    /// <p>The OpsItem.</p>
    pub fn ops_item(&self) -> ::std::option::Option<&crate::types::OpsItem> {
        self.ops_item.as_ref()
    }
}
impl ::aws_types::request_id::RequestId for GetOpsItemOutput {
    fn request_id(&self) -> Option<&str> {
        self._request_id.as_deref()
    }
}
impl GetOpsItemOutput {
    /// Creates a new builder-style object to manufacture [`GetOpsItemOutput`](crate::operation::get_ops_item::GetOpsItemOutput).
    pub fn builder() -> crate::operation::get_ops_item::builders::GetOpsItemOutputBuilder {
        crate::operation::get_ops_item::builders::GetOpsItemOutputBuilder::default()
    }
}

/// A builder for [`GetOpsItemOutput`](crate::operation::get_ops_item::GetOpsItemOutput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct GetOpsItemOutputBuilder {
    pub(crate) ops_item: ::std::option::Option<crate::types::OpsItem>,
    _request_id: Option<String>,
}
impl GetOpsItemOutputBuilder {
    /// <p>The OpsItem.</p>
    pub fn ops_item(mut self, input: crate::types::OpsItem) -> Self {
        self.ops_item = ::std::option::Option::Some(input);
        self
    }
    /// <p>The OpsItem.</p>
    pub fn set_ops_item(mut self, input: ::std::option::Option<crate::types::OpsItem>) -> Self {
        self.ops_item = input;
        self
    }
    /// <p>The OpsItem.</p>
    pub fn get_ops_item(&self) -> &::std::option::Option<crate::types::OpsItem> {
        &self.ops_item
    }
    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
    }
    /// Consumes the builder and constructs a [`GetOpsItemOutput`](crate::operation::get_ops_item::GetOpsItemOutput).
    pub fn build(self) -> crate::operation::get_ops_item::GetOpsItemOutput {
        crate::operation::get_ops_item::GetOpsItemOutput {
            ops_item: self.ops_item,
            _request_id: self._request_id,
        }
    }
}