aws-sdk-translate 0.27.0

AWS SDK for Amazon Translate
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 ListTerminologiesInput {
    /// <p>If the result of the request to ListTerminologies was truncated, include the NextToken to fetch the next group of custom terminologies. </p>
    #[doc(hidden)]
    pub next_token: std::option::Option<std::string::String>,
    /// <p>The maximum number of custom terminologies returned per list request.</p>
    #[doc(hidden)]
    pub max_results: std::option::Option<i32>,
}
impl ListTerminologiesInput {
    /// <p>If the result of the request to ListTerminologies was truncated, include the NextToken to fetch the next group of custom terminologies. </p>
    pub fn next_token(&self) -> std::option::Option<&str> {
        self.next_token.as_deref()
    }
    /// <p>The maximum number of custom terminologies returned per list request.</p>
    pub fn max_results(&self) -> std::option::Option<i32> {
        self.max_results
    }
}
impl ListTerminologiesInput {
    /// Creates a new builder-style object to manufacture [`ListTerminologiesInput`](crate::operation::list_terminologies::ListTerminologiesInput).
    pub fn builder() -> crate::operation::list_terminologies::builders::ListTerminologiesInputBuilder
    {
        crate::operation::list_terminologies::builders::ListTerminologiesInputBuilder::default()
    }
}

/// A builder for [`ListTerminologiesInput`](crate::operation::list_terminologies::ListTerminologiesInput).
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct ListTerminologiesInputBuilder {
    pub(crate) next_token: std::option::Option<std::string::String>,
    pub(crate) max_results: std::option::Option<i32>,
}
impl ListTerminologiesInputBuilder {
    /// <p>If the result of the request to ListTerminologies was truncated, include the NextToken to fetch the next group of custom terminologies. </p>
    pub fn next_token(mut self, input: impl Into<std::string::String>) -> Self {
        self.next_token = Some(input.into());
        self
    }
    /// <p>If the result of the request to ListTerminologies was truncated, include the NextToken to fetch the next group of custom terminologies. </p>
    pub fn set_next_token(mut self, input: std::option::Option<std::string::String>) -> Self {
        self.next_token = input;
        self
    }
    /// <p>The maximum number of custom terminologies returned per list request.</p>
    pub fn max_results(mut self, input: i32) -> Self {
        self.max_results = Some(input);
        self
    }
    /// <p>The maximum number of custom terminologies returned per list request.</p>
    pub fn set_max_results(mut self, input: std::option::Option<i32>) -> Self {
        self.max_results = input;
        self
    }
    /// Consumes the builder and constructs a [`ListTerminologiesInput`](crate::operation::list_terminologies::ListTerminologiesInput).
    pub fn build(
        self,
    ) -> Result<
        crate::operation::list_terminologies::ListTerminologiesInput,
        aws_smithy_http::operation::error::BuildError,
    > {
        Ok(
            crate::operation::list_terminologies::ListTerminologiesInput {
                next_token: self.next_token,
                max_results: self.max_results,
            },
        )
    }
}