// 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 ListSpeechSynthesisTasksInput {
    /// <p>Maximum number of speech synthesis tasks returned in a List operation.</p>
    pub max_results: ::std::option::Option<i32>,
    /// <p>The pagination token to use in the next request to continue the listing of speech synthesis tasks.</p>
    pub next_token: ::std::option::Option<::std::string::String>,
    /// <p>Status of the speech synthesis tasks returned in a List operation</p>
    pub status: ::std::option::Option<crate::types::TaskStatus>,
}
impl ListSpeechSynthesisTasksInput {
    /// <p>Maximum number of speech synthesis tasks returned in a List operation.</p>
    pub fn max_results(&self) -> ::std::option::Option<i32> {
        self.max_results
    }
    /// <p>The pagination token to use in the next request to continue the listing of speech synthesis tasks.</p>
    pub fn next_token(&self) -> ::std::option::Option<&str> {
        self.next_token.as_deref()
    }
    /// <p>Status of the speech synthesis tasks returned in a List operation</p>
    pub fn status(&self) -> ::std::option::Option<&crate::types::TaskStatus> {
        self.status.as_ref()
    }
}
impl ListSpeechSynthesisTasksInput {
    /// Creates a new builder-style object to manufacture [`ListSpeechSynthesisTasksInput`](crate::operation::list_speech_synthesis_tasks::ListSpeechSynthesisTasksInput).
    pub fn builder() -> crate::operation::list_speech_synthesis_tasks::builders::ListSpeechSynthesisTasksInputBuilder {
        crate::operation::list_speech_synthesis_tasks::builders::ListSpeechSynthesisTasksInputBuilder::default()
    }
}

/// A builder for [`ListSpeechSynthesisTasksInput`](crate::operation::list_speech_synthesis_tasks::ListSpeechSynthesisTasksInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct ListSpeechSynthesisTasksInputBuilder {
    pub(crate) max_results: ::std::option::Option<i32>,
    pub(crate) next_token: ::std::option::Option<::std::string::String>,
    pub(crate) status: ::std::option::Option<crate::types::TaskStatus>,
}
impl ListSpeechSynthesisTasksInputBuilder {
    /// <p>Maximum number of speech synthesis tasks returned in a List operation.</p>
    pub fn max_results(mut self, input: i32) -> Self {
        self.max_results = ::std::option::Option::Some(input);
        self
    }
    /// <p>Maximum number of speech synthesis tasks returned in a List operation.</p>
    pub fn set_max_results(mut self, input: ::std::option::Option<i32>) -> Self {
        self.max_results = input;
        self
    }
    /// <p>Maximum number of speech synthesis tasks returned in a List operation.</p>
    pub fn get_max_results(&self) -> &::std::option::Option<i32> {
        &self.max_results
    }
    /// <p>The pagination token to use in the next request to continue the listing of speech synthesis tasks.</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 pagination token to use in the next request to continue the listing of speech synthesis tasks.</p>
    pub fn set_next_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.next_token = input;
        self
    }
    /// <p>The pagination token to use in the next request to continue the listing of speech synthesis tasks.</p>
    pub fn get_next_token(&self) -> &::std::option::Option<::std::string::String> {
        &self.next_token
    }
    /// <p>Status of the speech synthesis tasks returned in a List operation</p>
    pub fn status(mut self, input: crate::types::TaskStatus) -> Self {
        self.status = ::std::option::Option::Some(input);
        self
    }
    /// <p>Status of the speech synthesis tasks returned in a List operation</p>
    pub fn set_status(mut self, input: ::std::option::Option<crate::types::TaskStatus>) -> Self {
        self.status = input;
        self
    }
    /// <p>Status of the speech synthesis tasks returned in a List operation</p>
    pub fn get_status(&self) -> &::std::option::Option<crate::types::TaskStatus> {
        &self.status
    }
    /// Consumes the builder and constructs a [`ListSpeechSynthesisTasksInput`](crate::operation::list_speech_synthesis_tasks::ListSpeechSynthesisTasksInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<
        crate::operation::list_speech_synthesis_tasks::ListSpeechSynthesisTasksInput,
        ::aws_smithy_types::error::operation::BuildError,
    > {
        ::std::result::Result::Ok(crate::operation::list_speech_synthesis_tasks::ListSpeechSynthesisTasksInput {
            max_results: self.max_results,
            next_token: self.next_token,
            status: self.status,
        })
    }
}
