// 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 GetOrganizationCustomRulePolicyOutput {
    /// <p>The policy definition containing the logic for your organization Config Custom Policy rule.</p>
    pub policy_text: ::std::option::Option<::std::string::String>,
    _request_id: Option<String>,
}
impl GetOrganizationCustomRulePolicyOutput {
    /// <p>The policy definition containing the logic for your organization Config Custom Policy rule.</p>
    pub fn policy_text(&self) -> ::std::option::Option<&str> {
        self.policy_text.as_deref()
    }
}
impl ::aws_types::request_id::RequestId for GetOrganizationCustomRulePolicyOutput {
    fn request_id(&self) -> Option<&str> {
        self._request_id.as_deref()
    }
}
impl GetOrganizationCustomRulePolicyOutput {
    /// Creates a new builder-style object to manufacture [`GetOrganizationCustomRulePolicyOutput`](crate::operation::get_organization_custom_rule_policy::GetOrganizationCustomRulePolicyOutput).
    pub fn builder() -> crate::operation::get_organization_custom_rule_policy::builders::GetOrganizationCustomRulePolicyOutputBuilder {
        crate::operation::get_organization_custom_rule_policy::builders::GetOrganizationCustomRulePolicyOutputBuilder::default()
    }
}

/// A builder for [`GetOrganizationCustomRulePolicyOutput`](crate::operation::get_organization_custom_rule_policy::GetOrganizationCustomRulePolicyOutput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct GetOrganizationCustomRulePolicyOutputBuilder {
    pub(crate) policy_text: ::std::option::Option<::std::string::String>,
    _request_id: Option<String>,
}
impl GetOrganizationCustomRulePolicyOutputBuilder {
    /// <p>The policy definition containing the logic for your organization Config Custom Policy rule.</p>
    pub fn policy_text(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.policy_text = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The policy definition containing the logic for your organization Config Custom Policy rule.</p>
    pub fn set_policy_text(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.policy_text = input;
        self
    }
    /// <p>The policy definition containing the logic for your organization Config Custom Policy rule.</p>
    pub fn get_policy_text(&self) -> &::std::option::Option<::std::string::String> {
        &self.policy_text
    }
    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 [`GetOrganizationCustomRulePolicyOutput`](crate::operation::get_organization_custom_rule_policy::GetOrganizationCustomRulePolicyOutput).
    pub fn build(self) -> crate::operation::get_organization_custom_rule_policy::GetOrganizationCustomRulePolicyOutput {
        crate::operation::get_organization_custom_rule_policy::GetOrganizationCustomRulePolicyOutput {
            policy_text: self.policy_text,
            _request_id: self._request_id,
        }
    }
}
