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 GetGroupQueryOutput {
    /// <p>The resource query associated with the specified group. For more information about resource queries, see <a href="https://docs.aws.amazon.com/ARG/latest/userguide/gettingstarted-query.html#gettingstarted-query-cli-tag">Create a tag-based group in Resource Groups</a>.</p>
    pub group_query: ::std::option::Option<crate::types::GroupQuery>,
    _request_id: Option<String>,
}
impl GetGroupQueryOutput {
    /// <p>The resource query associated with the specified group. For more information about resource queries, see <a href="https://docs.aws.amazon.com/ARG/latest/userguide/gettingstarted-query.html#gettingstarted-query-cli-tag">Create a tag-based group in Resource Groups</a>.</p>
    pub fn group_query(&self) -> ::std::option::Option<&crate::types::GroupQuery> {
        self.group_query.as_ref()
    }
}
impl ::aws_types::request_id::RequestId for GetGroupQueryOutput {
    fn request_id(&self) -> Option<&str> {
        self._request_id.as_deref()
    }
}
impl GetGroupQueryOutput {
    /// Creates a new builder-style object to manufacture [`GetGroupQueryOutput`](crate::operation::get_group_query::GetGroupQueryOutput).
    pub fn builder() -> crate::operation::get_group_query::builders::GetGroupQueryOutputBuilder {
        crate::operation::get_group_query::builders::GetGroupQueryOutputBuilder::default()
    }
}

/// A builder for [`GetGroupQueryOutput`](crate::operation::get_group_query::GetGroupQueryOutput).
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct GetGroupQueryOutputBuilder {
    pub(crate) group_query: ::std::option::Option<crate::types::GroupQuery>,
    _request_id: Option<String>,
}
impl GetGroupQueryOutputBuilder {
    /// <p>The resource query associated with the specified group. For more information about resource queries, see <a href="https://docs.aws.amazon.com/ARG/latest/userguide/gettingstarted-query.html#gettingstarted-query-cli-tag">Create a tag-based group in Resource Groups</a>.</p>
    pub fn group_query(mut self, input: crate::types::GroupQuery) -> Self {
        self.group_query = ::std::option::Option::Some(input);
        self
    }
    /// <p>The resource query associated with the specified group. For more information about resource queries, see <a href="https://docs.aws.amazon.com/ARG/latest/userguide/gettingstarted-query.html#gettingstarted-query-cli-tag">Create a tag-based group in Resource Groups</a>.</p>
    pub fn set_group_query(mut self, input: ::std::option::Option<crate::types::GroupQuery>) -> Self {
        self.group_query = input;
        self
    }
    /// <p>The resource query associated with the specified group. For more information about resource queries, see <a href="https://docs.aws.amazon.com/ARG/latest/userguide/gettingstarted-query.html#gettingstarted-query-cli-tag">Create a tag-based group in Resource Groups</a>.</p>
    pub fn get_group_query(&self) -> &::std::option::Option<crate::types::GroupQuery> {
        &self.group_query
    }
    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 [`GetGroupQueryOutput`](crate::operation::get_group_query::GetGroupQueryOutput).
    pub fn build(self) -> crate::operation::get_group_query::GetGroupQueryOutput {
        crate::operation::get_group_query::GetGroupQueryOutput {
            group_query: self.group_query,
            _request_id: self._request_id,
        }
    }
}