aws-sdk-xray 1.99.0

AWS SDK for AWS X-Ray
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 GetIndexingRulesInput {
    /// <p>Specify the pagination token returned by a previous request to retrieve the next page of indexes.</p>
    pub next_token: ::std::option::Option<::std::string::String>,
}
impl GetIndexingRulesInput {
    /// <p>Specify the pagination token returned by a previous request to retrieve the next page of indexes.</p>
    pub fn next_token(&self) -> ::std::option::Option<&str> {
        self.next_token.as_deref()
    }
}
impl GetIndexingRulesInput {
    /// Creates a new builder-style object to manufacture [`GetIndexingRulesInput`](crate::operation::get_indexing_rules::GetIndexingRulesInput).
    pub fn builder() -> crate::operation::get_indexing_rules::builders::GetIndexingRulesInputBuilder {
        crate::operation::get_indexing_rules::builders::GetIndexingRulesInputBuilder::default()
    }
}

/// A builder for [`GetIndexingRulesInput`](crate::operation::get_indexing_rules::GetIndexingRulesInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct GetIndexingRulesInputBuilder {
    pub(crate) next_token: ::std::option::Option<::std::string::String>,
}
impl GetIndexingRulesInputBuilder {
    /// <p>Specify the pagination token returned by a previous request to retrieve the next page of indexes.</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>Specify the pagination token returned by a previous request to retrieve the next page of indexes.</p>
    pub fn set_next_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.next_token = input;
        self
    }
    /// <p>Specify the pagination token returned by a previous request to retrieve the next page of indexes.</p>
    pub fn get_next_token(&self) -> &::std::option::Option<::std::string::String> {
        &self.next_token
    }
    /// Consumes the builder and constructs a [`GetIndexingRulesInput`](crate::operation::get_indexing_rules::GetIndexingRulesInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<crate::operation::get_indexing_rules::GetIndexingRulesInput, ::aws_smithy_types::error::operation::BuildError> {
        ::std::result::Result::Ok(crate::operation::get_indexing_rules::GetIndexingRulesInput { next_token: self.next_token })
    }
}