// 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 UntagResourceInput {
    /// <p>The Amazon Resource Name (ARN) that identifies the resource for which to list the tags. The following resources are supported:</p>
    /// <ul>
    /// <li>
    /// <p><code>ConfigurationRecorder</code></p></li>
    /// <li>
    /// <p><code>ConfigRule</code></p></li>
    /// <li>
    /// <p><code>OrganizationConfigRule</code></p></li>
    /// <li>
    /// <p><code>ConformancePack</code></p></li>
    /// <li>
    /// <p><code>OrganizationConformancePack</code></p></li>
    /// <li>
    /// <p><code>ConfigurationAggregator</code></p></li>
    /// <li>
    /// <p><code>AggregationAuthorization</code></p></li>
    /// <li>
    /// <p><code>StoredQuery</code></p></li>
    /// </ul>
    pub resource_arn: ::std::option::Option<::std::string::String>,
    /// <p>The keys of the tags to be removed.</p>
    pub tag_keys: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
}
impl UntagResourceInput {
    /// <p>The Amazon Resource Name (ARN) that identifies the resource for which to list the tags. The following resources are supported:</p>
    /// <ul>
    /// <li>
    /// <p><code>ConfigurationRecorder</code></p></li>
    /// <li>
    /// <p><code>ConfigRule</code></p></li>
    /// <li>
    /// <p><code>OrganizationConfigRule</code></p></li>
    /// <li>
    /// <p><code>ConformancePack</code></p></li>
    /// <li>
    /// <p><code>OrganizationConformancePack</code></p></li>
    /// <li>
    /// <p><code>ConfigurationAggregator</code></p></li>
    /// <li>
    /// <p><code>AggregationAuthorization</code></p></li>
    /// <li>
    /// <p><code>StoredQuery</code></p></li>
    /// </ul>
    pub fn resource_arn(&self) -> ::std::option::Option<&str> {
        self.resource_arn.as_deref()
    }
    /// <p>The keys of the tags to be removed.</p>
    ///
    /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.tag_keys.is_none()`.
    pub fn tag_keys(&self) -> &[::std::string::String] {
        self.tag_keys.as_deref().unwrap_or_default()
    }
}
impl UntagResourceInput {
    /// Creates a new builder-style object to manufacture [`UntagResourceInput`](crate::operation::untag_resource::UntagResourceInput).
    pub fn builder() -> crate::operation::untag_resource::builders::UntagResourceInputBuilder {
        crate::operation::untag_resource::builders::UntagResourceInputBuilder::default()
    }
}

/// A builder for [`UntagResourceInput`](crate::operation::untag_resource::UntagResourceInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct UntagResourceInputBuilder {
    pub(crate) resource_arn: ::std::option::Option<::std::string::String>,
    pub(crate) tag_keys: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
}
impl UntagResourceInputBuilder {
    /// <p>The Amazon Resource Name (ARN) that identifies the resource for which to list the tags. The following resources are supported:</p>
    /// <ul>
    /// <li>
    /// <p><code>ConfigurationRecorder</code></p></li>
    /// <li>
    /// <p><code>ConfigRule</code></p></li>
    /// <li>
    /// <p><code>OrganizationConfigRule</code></p></li>
    /// <li>
    /// <p><code>ConformancePack</code></p></li>
    /// <li>
    /// <p><code>OrganizationConformancePack</code></p></li>
    /// <li>
    /// <p><code>ConfigurationAggregator</code></p></li>
    /// <li>
    /// <p><code>AggregationAuthorization</code></p></li>
    /// <li>
    /// <p><code>StoredQuery</code></p></li>
    /// </ul>
    /// This field is required.
    pub fn resource_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.resource_arn = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The Amazon Resource Name (ARN) that identifies the resource for which to list the tags. The following resources are supported:</p>
    /// <ul>
    /// <li>
    /// <p><code>ConfigurationRecorder</code></p></li>
    /// <li>
    /// <p><code>ConfigRule</code></p></li>
    /// <li>
    /// <p><code>OrganizationConfigRule</code></p></li>
    /// <li>
    /// <p><code>ConformancePack</code></p></li>
    /// <li>
    /// <p><code>OrganizationConformancePack</code></p></li>
    /// <li>
    /// <p><code>ConfigurationAggregator</code></p></li>
    /// <li>
    /// <p><code>AggregationAuthorization</code></p></li>
    /// <li>
    /// <p><code>StoredQuery</code></p></li>
    /// </ul>
    pub fn set_resource_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.resource_arn = input;
        self
    }
    /// <p>The Amazon Resource Name (ARN) that identifies the resource for which to list the tags. The following resources are supported:</p>
    /// <ul>
    /// <li>
    /// <p><code>ConfigurationRecorder</code></p></li>
    /// <li>
    /// <p><code>ConfigRule</code></p></li>
    /// <li>
    /// <p><code>OrganizationConfigRule</code></p></li>
    /// <li>
    /// <p><code>ConformancePack</code></p></li>
    /// <li>
    /// <p><code>OrganizationConformancePack</code></p></li>
    /// <li>
    /// <p><code>ConfigurationAggregator</code></p></li>
    /// <li>
    /// <p><code>AggregationAuthorization</code></p></li>
    /// <li>
    /// <p><code>StoredQuery</code></p></li>
    /// </ul>
    pub fn get_resource_arn(&self) -> &::std::option::Option<::std::string::String> {
        &self.resource_arn
    }
    /// Appends an item to `tag_keys`.
    ///
    /// To override the contents of this collection use [`set_tag_keys`](Self::set_tag_keys).
    ///
    /// <p>The keys of the tags to be removed.</p>
    pub fn tag_keys(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        let mut v = self.tag_keys.unwrap_or_default();
        v.push(input.into());
        self.tag_keys = ::std::option::Option::Some(v);
        self
    }
    /// <p>The keys of the tags to be removed.</p>
    pub fn set_tag_keys(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
        self.tag_keys = input;
        self
    }
    /// <p>The keys of the tags to be removed.</p>
    pub fn get_tag_keys(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
        &self.tag_keys
    }
    /// Consumes the builder and constructs a [`UntagResourceInput`](crate::operation::untag_resource::UntagResourceInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<crate::operation::untag_resource::UntagResourceInput, ::aws_smithy_types::error::operation::BuildError> {
        ::std::result::Result::Ok(crate::operation::untag_resource::UntagResourceInput {
            resource_arn: self.resource_arn,
            tag_keys: self.tag_keys,
        })
    }
}
