aws-sdk-textract 1.99.0

AWS SDK for Amazon Textract
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 ListAdaptersInput {
    /// <p>Specifies the lower bound for the ListAdapters operation. Ensures ListAdapters returns only adapters created after the specified creation time.</p>
    pub after_creation_time: ::std::option::Option<::aws_smithy_types::DateTime>,
    /// <p>Specifies the upper bound for the ListAdapters operation. Ensures ListAdapters returns only adapters created before the specified creation time.</p>
    pub before_creation_time: ::std::option::Option<::aws_smithy_types::DateTime>,
    /// <p>The maximum number of results to return when listing adapters.</p>
    pub max_results: ::std::option::Option<i32>,
    /// <p>Identifies the next page of results to return when listing adapters.</p>
    pub next_token: ::std::option::Option<::std::string::String>,
}
impl ListAdaptersInput {
    /// <p>Specifies the lower bound for the ListAdapters operation. Ensures ListAdapters returns only adapters created after the specified creation time.</p>
    pub fn after_creation_time(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
        self.after_creation_time.as_ref()
    }
    /// <p>Specifies the upper bound for the ListAdapters operation. Ensures ListAdapters returns only adapters created before the specified creation time.</p>
    pub fn before_creation_time(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
        self.before_creation_time.as_ref()
    }
    /// <p>The maximum number of results to return when listing adapters.</p>
    pub fn max_results(&self) -> ::std::option::Option<i32> {
        self.max_results
    }
    /// <p>Identifies the next page of results to return when listing adapters.</p>
    pub fn next_token(&self) -> ::std::option::Option<&str> {
        self.next_token.as_deref()
    }
}
impl ListAdaptersInput {
    /// Creates a new builder-style object to manufacture [`ListAdaptersInput`](crate::operation::list_adapters::ListAdaptersInput).
    pub fn builder() -> crate::operation::list_adapters::builders::ListAdaptersInputBuilder {
        crate::operation::list_adapters::builders::ListAdaptersInputBuilder::default()
    }
}

/// A builder for [`ListAdaptersInput`](crate::operation::list_adapters::ListAdaptersInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct ListAdaptersInputBuilder {
    pub(crate) after_creation_time: ::std::option::Option<::aws_smithy_types::DateTime>,
    pub(crate) before_creation_time: ::std::option::Option<::aws_smithy_types::DateTime>,
    pub(crate) max_results: ::std::option::Option<i32>,
    pub(crate) next_token: ::std::option::Option<::std::string::String>,
}
impl ListAdaptersInputBuilder {
    /// <p>Specifies the lower bound for the ListAdapters operation. Ensures ListAdapters returns only adapters created after the specified creation time.</p>
    pub fn after_creation_time(mut self, input: ::aws_smithy_types::DateTime) -> Self {
        self.after_creation_time = ::std::option::Option::Some(input);
        self
    }
    /// <p>Specifies the lower bound for the ListAdapters operation. Ensures ListAdapters returns only adapters created after the specified creation time.</p>
    pub fn set_after_creation_time(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
        self.after_creation_time = input;
        self
    }
    /// <p>Specifies the lower bound for the ListAdapters operation. Ensures ListAdapters returns only adapters created after the specified creation time.</p>
    pub fn get_after_creation_time(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
        &self.after_creation_time
    }
    /// <p>Specifies the upper bound for the ListAdapters operation. Ensures ListAdapters returns only adapters created before the specified creation time.</p>
    pub fn before_creation_time(mut self, input: ::aws_smithy_types::DateTime) -> Self {
        self.before_creation_time = ::std::option::Option::Some(input);
        self
    }
    /// <p>Specifies the upper bound for the ListAdapters operation. Ensures ListAdapters returns only adapters created before the specified creation time.</p>
    pub fn set_before_creation_time(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
        self.before_creation_time = input;
        self
    }
    /// <p>Specifies the upper bound for the ListAdapters operation. Ensures ListAdapters returns only adapters created before the specified creation time.</p>
    pub fn get_before_creation_time(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
        &self.before_creation_time
    }
    /// <p>The maximum number of results to return when listing adapters.</p>
    pub fn max_results(mut self, input: i32) -> Self {
        self.max_results = ::std::option::Option::Some(input);
        self
    }
    /// <p>The maximum number of results to return when listing adapters.</p>
    pub fn set_max_results(mut self, input: ::std::option::Option<i32>) -> Self {
        self.max_results = input;
        self
    }
    /// <p>The maximum number of results to return when listing adapters.</p>
    pub fn get_max_results(&self) -> &::std::option::Option<i32> {
        &self.max_results
    }
    /// <p>Identifies the next page of results to return when listing adapters.</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>Identifies the next page of results to return when listing adapters.</p>
    pub fn set_next_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.next_token = input;
        self
    }
    /// <p>Identifies the next page of results to return when listing adapters.</p>
    pub fn get_next_token(&self) -> &::std::option::Option<::std::string::String> {
        &self.next_token
    }
    /// Consumes the builder and constructs a [`ListAdaptersInput`](crate::operation::list_adapters::ListAdaptersInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<crate::operation::list_adapters::ListAdaptersInput, ::aws_smithy_types::error::operation::BuildError> {
        ::std::result::Result::Ok(crate::operation::list_adapters::ListAdaptersInput {
            after_creation_time: self.after_creation_time,
            before_creation_time: self.before_creation_time,
            max_results: self.max_results,
            next_token: self.next_token,
        })
    }
}