aws-sdk-groundstation 0.27.0

AWS SDK for AWS Ground Station
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.

/// <p></p>
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct ListConfigsInput {
    /// <p>Maximum number of <code>Configs</code> returned.</p>
    #[doc(hidden)]
    pub max_results: std::option::Option<i32>,
    /// <p>Next token returned in the request of a previous <code>ListConfigs</code> call. Used to get the next page of results.</p>
    #[doc(hidden)]
    pub next_token: std::option::Option<std::string::String>,
}
impl ListConfigsInput {
    /// <p>Maximum number of <code>Configs</code> returned.</p>
    pub fn max_results(&self) -> std::option::Option<i32> {
        self.max_results
    }
    /// <p>Next token returned in the request of a previous <code>ListConfigs</code> call. Used to get the next page of results.</p>
    pub fn next_token(&self) -> std::option::Option<&str> {
        self.next_token.as_deref()
    }
}
impl ListConfigsInput {
    /// Creates a new builder-style object to manufacture [`ListConfigsInput`](crate::operation::list_configs::ListConfigsInput).
    pub fn builder() -> crate::operation::list_configs::builders::ListConfigsInputBuilder {
        crate::operation::list_configs::builders::ListConfigsInputBuilder::default()
    }
}

/// A builder for [`ListConfigsInput`](crate::operation::list_configs::ListConfigsInput).
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct ListConfigsInputBuilder {
    pub(crate) max_results: std::option::Option<i32>,
    pub(crate) next_token: std::option::Option<std::string::String>,
}
impl ListConfigsInputBuilder {
    /// <p>Maximum number of <code>Configs</code> returned.</p>
    pub fn max_results(mut self, input: i32) -> Self {
        self.max_results = Some(input);
        self
    }
    /// <p>Maximum number of <code>Configs</code> returned.</p>
    pub fn set_max_results(mut self, input: std::option::Option<i32>) -> Self {
        self.max_results = input;
        self
    }
    /// <p>Next token returned in the request of a previous <code>ListConfigs</code> call. Used to get the next page of results.</p>
    pub fn next_token(mut self, input: impl Into<std::string::String>) -> Self {
        self.next_token = Some(input.into());
        self
    }
    /// <p>Next token returned in the request of a previous <code>ListConfigs</code> call. Used to get the next page of results.</p>
    pub fn set_next_token(mut self, input: std::option::Option<std::string::String>) -> Self {
        self.next_token = input;
        self
    }
    /// Consumes the builder and constructs a [`ListConfigsInput`](crate::operation::list_configs::ListConfigsInput).
    pub fn build(
        self,
    ) -> Result<
        crate::operation::list_configs::ListConfigsInput,
        aws_smithy_http::operation::error::BuildError,
    > {
        Ok(crate::operation::list_configs::ListConfigsInput {
            max_results: self.max_results,
            next_token: self.next_token,
        })
    }
}