aws-sdk-cloudwatchlogs 0.25.1

AWS SDK for Amazon CloudWatch Logs
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 GetQueryResultsInput {
    /// <p>The ID number of the query.</p>
    #[doc(hidden)]
    pub query_id: std::option::Option<std::string::String>,
}
impl GetQueryResultsInput {
    /// <p>The ID number of the query.</p>
    pub fn query_id(&self) -> std::option::Option<&str> {
        self.query_id.as_deref()
    }
}
impl GetQueryResultsInput {
    /// Creates a new builder-style object to manufacture [`GetQueryResultsInput`](crate::operation::get_query_results::GetQueryResultsInput).
    pub fn builder() -> crate::operation::get_query_results::builders::GetQueryResultsInputBuilder {
        crate::operation::get_query_results::builders::GetQueryResultsInputBuilder::default()
    }
}

/// A builder for [`GetQueryResultsInput`](crate::operation::get_query_results::GetQueryResultsInput).
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct GetQueryResultsInputBuilder {
    pub(crate) query_id: std::option::Option<std::string::String>,
}
impl GetQueryResultsInputBuilder {
    /// <p>The ID number of the query.</p>
    pub fn query_id(mut self, input: impl Into<std::string::String>) -> Self {
        self.query_id = Some(input.into());
        self
    }
    /// <p>The ID number of the query.</p>
    pub fn set_query_id(mut self, input: std::option::Option<std::string::String>) -> Self {
        self.query_id = input;
        self
    }
    /// Consumes the builder and constructs a [`GetQueryResultsInput`](crate::operation::get_query_results::GetQueryResultsInput).
    pub fn build(
        self,
    ) -> Result<
        crate::operation::get_query_results::GetQueryResultsInput,
        aws_smithy_http::operation::error::BuildError,
    > {
        Ok(crate::operation::get_query_results::GetQueryResultsInput {
            query_id: self.query_id,
        })
    }
}