aws-sdk-resourcegroups 1.23.0

AWS SDK for AWS Resource Groups
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 GetGroupConfigurationInput {
    /// <p>The name or the ARN of the resource group for which you want to retrive the service configuration.</p>
    pub group: ::std::option::Option<::std::string::String>,
}
impl GetGroupConfigurationInput {
    /// <p>The name or the ARN of the resource group for which you want to retrive the service configuration.</p>
    pub fn group(&self) -> ::std::option::Option<&str> {
        self.group.as_deref()
    }
}
impl GetGroupConfigurationInput {
    /// Creates a new builder-style object to manufacture [`GetGroupConfigurationInput`](crate::operation::get_group_configuration::GetGroupConfigurationInput).
    pub fn builder() -> crate::operation::get_group_configuration::builders::GetGroupConfigurationInputBuilder {
        crate::operation::get_group_configuration::builders::GetGroupConfigurationInputBuilder::default()
    }
}

/// A builder for [`GetGroupConfigurationInput`](crate::operation::get_group_configuration::GetGroupConfigurationInput).
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct GetGroupConfigurationInputBuilder {
    pub(crate) group: ::std::option::Option<::std::string::String>,
}
impl GetGroupConfigurationInputBuilder {
    /// <p>The name or the ARN of the resource group for which you want to retrive the service configuration.</p>
    pub fn group(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.group = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The name or the ARN of the resource group for which you want to retrive the service configuration.</p>
    pub fn set_group(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.group = input;
        self
    }
    /// <p>The name or the ARN of the resource group for which you want to retrive the service configuration.</p>
    pub fn get_group(&self) -> &::std::option::Option<::std::string::String> {
        &self.group
    }
    /// Consumes the builder and constructs a [`GetGroupConfigurationInput`](crate::operation::get_group_configuration::GetGroupConfigurationInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<crate::operation::get_group_configuration::GetGroupConfigurationInput, ::aws_smithy_types::error::operation::BuildError>
    {
        ::std::result::Result::Ok(crate::operation::get_group_configuration::GetGroupConfigurationInput { group: self.group })
    }
}