aws-sdk-codecatalyst 1.98.0

AWS SDK for Amazon CodeCatalyst
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 ListSpacesInput {
    /// <p>A token returned from a call to this API to indicate the next batch of results to return, if any.</p>
    pub next_token: ::std::option::Option<::std::string::String>,
}
impl ListSpacesInput {
    /// <p>A token returned from a call to this API to indicate the next batch of results to return, if any.</p>
    pub fn next_token(&self) -> ::std::option::Option<&str> {
        self.next_token.as_deref()
    }
}
impl ListSpacesInput {
    /// Creates a new builder-style object to manufacture [`ListSpacesInput`](crate::operation::list_spaces::ListSpacesInput).
    pub fn builder() -> crate::operation::list_spaces::builders::ListSpacesInputBuilder {
        crate::operation::list_spaces::builders::ListSpacesInputBuilder::default()
    }
}

/// A builder for [`ListSpacesInput`](crate::operation::list_spaces::ListSpacesInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct ListSpacesInputBuilder {
    pub(crate) next_token: ::std::option::Option<::std::string::String>,
}
impl ListSpacesInputBuilder {
    /// <p>A token returned from a call to this API to indicate the next batch of results to return, if any.</p>
    pub fn next_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.next_token = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>A token returned from a call to this API to indicate the next batch of results to return, if any.</p>
    pub fn set_next_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.next_token = input;
        self
    }
    /// <p>A token returned from a call to this API to indicate the next batch of results to return, if any.</p>
    pub fn get_next_token(&self) -> &::std::option::Option<::std::string::String> {
        &self.next_token
    }
    /// Consumes the builder and constructs a [`ListSpacesInput`](crate::operation::list_spaces::ListSpacesInput).
    pub fn build(self) -> ::std::result::Result<crate::operation::list_spaces::ListSpacesInput, ::aws_smithy_types::error::operation::BuildError> {
        ::std::result::Result::Ok(crate::operation::list_spaces::ListSpacesInput { next_token: self.next_token })
    }
}