aws-sdk-mediaconvert 1.115.0

AWS SDK for AWS Elemental MediaConvert
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 ListVersionsInput {
    /// Optional. Number of valid Job engine versions, up to twenty, that will be returned at one time.
    pub max_results: ::std::option::Option<i32>,
    /// Optional. Use this string, provided with the response to a previous request, to request the next batch of Job engine versions.
    pub next_token: ::std::option::Option<::std::string::String>,
}
impl ListVersionsInput {
    /// Optional. Number of valid Job engine versions, up to twenty, that will be returned at one time.
    pub fn max_results(&self) -> ::std::option::Option<i32> {
        self.max_results
    }
    /// Optional. Use this string, provided with the response to a previous request, to request the next batch of Job engine versions.
    pub fn next_token(&self) -> ::std::option::Option<&str> {
        self.next_token.as_deref()
    }
}
impl ListVersionsInput {
    /// Creates a new builder-style object to manufacture [`ListVersionsInput`](crate::operation::list_versions::ListVersionsInput).
    pub fn builder() -> crate::operation::list_versions::builders::ListVersionsInputBuilder {
        crate::operation::list_versions::builders::ListVersionsInputBuilder::default()
    }
}

/// A builder for [`ListVersionsInput`](crate::operation::list_versions::ListVersionsInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct ListVersionsInputBuilder {
    pub(crate) max_results: ::std::option::Option<i32>,
    pub(crate) next_token: ::std::option::Option<::std::string::String>,
}
impl ListVersionsInputBuilder {
    /// Optional. Number of valid Job engine versions, up to twenty, that will be returned at one time.
    pub fn max_results(mut self, input: i32) -> Self {
        self.max_results = ::std::option::Option::Some(input);
        self
    }
    /// Optional. Number of valid Job engine versions, up to twenty, that will be returned at one time.
    pub fn set_max_results(mut self, input: ::std::option::Option<i32>) -> Self {
        self.max_results = input;
        self
    }
    /// Optional. Number of valid Job engine versions, up to twenty, that will be returned at one time.
    pub fn get_max_results(&self) -> &::std::option::Option<i32> {
        &self.max_results
    }
    /// Optional. Use this string, provided with the response to a previous request, to request the next batch of Job engine versions.
    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
    }
    /// Optional. Use this string, provided with the response to a previous request, to request the next batch of Job engine versions.
    pub fn set_next_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.next_token = input;
        self
    }
    /// Optional. Use this string, provided with the response to a previous request, to request the next batch of Job engine versions.
    pub fn get_next_token(&self) -> &::std::option::Option<::std::string::String> {
        &self.next_token
    }
    /// Consumes the builder and constructs a [`ListVersionsInput`](crate::operation::list_versions::ListVersionsInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<crate::operation::list_versions::ListVersionsInput, ::aws_smithy_types::error::operation::BuildError> {
        ::std::result::Result::Ok(crate::operation::list_versions::ListVersionsInput {
            max_results: self.max_results,
            next_token: self.next_token,
        })
    }
}