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.

/// <p>The query result body of the GetServiceSetting API operation.</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct GetServiceSettingOutput {
    /// <p>The query result of the current service setting.</p>
    pub service_setting: ::std::option::Option<crate::types::ServiceSetting>,
    _request_id: Option<String>,
}
impl GetServiceSettingOutput {
    /// <p>The query result of the current service setting.</p>
    pub fn service_setting(&self) -> ::std::option::Option<&crate::types::ServiceSetting> {
        self.service_setting.as_ref()
    }
}
impl ::aws_types::request_id::RequestId for GetServiceSettingOutput {
    fn request_id(&self) -> Option<&str> {
        self._request_id.as_deref()
    }
}
impl GetServiceSettingOutput {
    /// Creates a new builder-style object to manufacture [`GetServiceSettingOutput`](crate::operation::get_service_setting::GetServiceSettingOutput).
    pub fn builder() -> crate::operation::get_service_setting::builders::GetServiceSettingOutputBuilder {
        crate::operation::get_service_setting::builders::GetServiceSettingOutputBuilder::default()
    }
}

/// A builder for [`GetServiceSettingOutput`](crate::operation::get_service_setting::GetServiceSettingOutput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct GetServiceSettingOutputBuilder {
    pub(crate) service_setting: ::std::option::Option<crate::types::ServiceSetting>,
    _request_id: Option<String>,
}
impl GetServiceSettingOutputBuilder {
    /// <p>The query result of the current service setting.</p>
    pub fn service_setting(mut self, input: crate::types::ServiceSetting) -> Self {
        self.service_setting = ::std::option::Option::Some(input);
        self
    }
    /// <p>The query result of the current service setting.</p>
    pub fn set_service_setting(mut self, input: ::std::option::Option<crate::types::ServiceSetting>) -> Self {
        self.service_setting = input;
        self
    }
    /// <p>The query result of the current service setting.</p>
    pub fn get_service_setting(&self) -> &::std::option::Option<crate::types::ServiceSetting> {
        &self.service_setting
    }
    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 [`GetServiceSettingOutput`](crate::operation::get_service_setting::GetServiceSettingOutput).
    pub fn build(self) -> crate::operation::get_service_setting::GetServiceSettingOutput {
        crate::operation::get_service_setting::GetServiceSettingOutput {
            service_setting: self.service_setting,
            _request_id: self._request_id,
        }
    }
}