aws-sdk-codebuild 1.122.0

AWS SDK for AWS CodeBuild
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 ListSandboxesInput {
    /// <p>The maximum number of sandbox records to be retrieved.</p>
    pub max_results: ::std::option::Option<i32>,
    /// <p>The order in which sandbox records should be retrieved.</p>
    pub sort_order: ::std::option::Option<crate::types::SortOrderType>,
    /// <p>The next token, if any, to get paginated results. You will get this value from previous execution of list sandboxes.</p>
    pub next_token: ::std::option::Option<::std::string::String>,
}
impl ListSandboxesInput {
    /// <p>The maximum number of sandbox records to be retrieved.</p>
    pub fn max_results(&self) -> ::std::option::Option<i32> {
        self.max_results
    }
    /// <p>The order in which sandbox records should be retrieved.</p>
    pub fn sort_order(&self) -> ::std::option::Option<&crate::types::SortOrderType> {
        self.sort_order.as_ref()
    }
    /// <p>The next token, if any, to get paginated results. You will get this value from previous execution of list sandboxes.</p>
    pub fn next_token(&self) -> ::std::option::Option<&str> {
        self.next_token.as_deref()
    }
}
impl ListSandboxesInput {
    /// Creates a new builder-style object to manufacture [`ListSandboxesInput`](crate::operation::list_sandboxes::ListSandboxesInput).
    pub fn builder() -> crate::operation::list_sandboxes::builders::ListSandboxesInputBuilder {
        crate::operation::list_sandboxes::builders::ListSandboxesInputBuilder::default()
    }
}

/// A builder for [`ListSandboxesInput`](crate::operation::list_sandboxes::ListSandboxesInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct ListSandboxesInputBuilder {
    pub(crate) max_results: ::std::option::Option<i32>,
    pub(crate) sort_order: ::std::option::Option<crate::types::SortOrderType>,
    pub(crate) next_token: ::std::option::Option<::std::string::String>,
}
impl ListSandboxesInputBuilder {
    /// <p>The maximum number of sandbox records to be retrieved.</p>
    pub fn max_results(mut self, input: i32) -> Self {
        self.max_results = ::std::option::Option::Some(input);
        self
    }
    /// <p>The maximum number of sandbox records to be retrieved.</p>
    pub fn set_max_results(mut self, input: ::std::option::Option<i32>) -> Self {
        self.max_results = input;
        self
    }
    /// <p>The maximum number of sandbox records to be retrieved.</p>
    pub fn get_max_results(&self) -> &::std::option::Option<i32> {
        &self.max_results
    }
    /// <p>The order in which sandbox records should be retrieved.</p>
    pub fn sort_order(mut self, input: crate::types::SortOrderType) -> Self {
        self.sort_order = ::std::option::Option::Some(input);
        self
    }
    /// <p>The order in which sandbox records should be retrieved.</p>
    pub fn set_sort_order(mut self, input: ::std::option::Option<crate::types::SortOrderType>) -> Self {
        self.sort_order = input;
        self
    }
    /// <p>The order in which sandbox records should be retrieved.</p>
    pub fn get_sort_order(&self) -> &::std::option::Option<crate::types::SortOrderType> {
        &self.sort_order
    }
    /// <p>The next token, if any, to get paginated results. You will get this value from previous execution of list sandboxes.</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>The next token, if any, to get paginated results. You will get this value from previous execution of list sandboxes.</p>
    pub fn set_next_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.next_token = input;
        self
    }
    /// <p>The next token, if any, to get paginated results. You will get this value from previous execution of list sandboxes.</p>
    pub fn get_next_token(&self) -> &::std::option::Option<::std::string::String> {
        &self.next_token
    }
    /// Consumes the builder and constructs a [`ListSandboxesInput`](crate::operation::list_sandboxes::ListSandboxesInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<crate::operation::list_sandboxes::ListSandboxesInput, ::aws_smithy_types::error::operation::BuildError> {
        ::std::result::Result::Ok(crate::operation::list_sandboxes::ListSandboxesInput {
            max_results: self.max_results,
            sort_order: self.sort_order,
            next_token: self.next_token,
        })
    }
}