aws-sdk-emr 1.121.0

AWS SDK for Amazon EMR
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 DescribeReleaseLabelInput {
    /// <p>The target release label to be described.</p>
    pub release_label: ::std::option::Option<::std::string::String>,
    /// <p>The pagination token. Reserved for future use. Currently set to null.</p>
    pub next_token: ::std::option::Option<::std::string::String>,
    /// <p>Reserved for future use. Currently set to null.</p>
    pub max_results: ::std::option::Option<i32>,
}
impl DescribeReleaseLabelInput {
    /// <p>The target release label to be described.</p>
    pub fn release_label(&self) -> ::std::option::Option<&str> {
        self.release_label.as_deref()
    }
    /// <p>The pagination token. Reserved for future use. Currently set to null.</p>
    pub fn next_token(&self) -> ::std::option::Option<&str> {
        self.next_token.as_deref()
    }
    /// <p>Reserved for future use. Currently set to null.</p>
    pub fn max_results(&self) -> ::std::option::Option<i32> {
        self.max_results
    }
}
impl DescribeReleaseLabelInput {
    /// Creates a new builder-style object to manufacture [`DescribeReleaseLabelInput`](crate::operation::describe_release_label::DescribeReleaseLabelInput).
    pub fn builder() -> crate::operation::describe_release_label::builders::DescribeReleaseLabelInputBuilder {
        crate::operation::describe_release_label::builders::DescribeReleaseLabelInputBuilder::default()
    }
}

/// A builder for [`DescribeReleaseLabelInput`](crate::operation::describe_release_label::DescribeReleaseLabelInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DescribeReleaseLabelInputBuilder {
    pub(crate) release_label: ::std::option::Option<::std::string::String>,
    pub(crate) next_token: ::std::option::Option<::std::string::String>,
    pub(crate) max_results: ::std::option::Option<i32>,
}
impl DescribeReleaseLabelInputBuilder {
    /// <p>The target release label to be described.</p>
    pub fn release_label(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.release_label = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The target release label to be described.</p>
    pub fn set_release_label(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.release_label = input;
        self
    }
    /// <p>The target release label to be described.</p>
    pub fn get_release_label(&self) -> &::std::option::Option<::std::string::String> {
        &self.release_label
    }
    /// <p>The pagination token. Reserved for future use. Currently set to null.</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. Reserved for future use. Currently set to null.</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. Reserved for future use. Currently set to null.</p>
    pub fn get_next_token(&self) -> &::std::option::Option<::std::string::String> {
        &self.next_token
    }
    /// <p>Reserved for future use. Currently set to null.</p>
    pub fn max_results(mut self, input: i32) -> Self {
        self.max_results = ::std::option::Option::Some(input);
        self
    }
    /// <p>Reserved for future use. Currently set to null.</p>
    pub fn set_max_results(mut self, input: ::std::option::Option<i32>) -> Self {
        self.max_results = input;
        self
    }
    /// <p>Reserved for future use. Currently set to null.</p>
    pub fn get_max_results(&self) -> &::std::option::Option<i32> {
        &self.max_results
    }
    /// Consumes the builder and constructs a [`DescribeReleaseLabelInput`](crate::operation::describe_release_label::DescribeReleaseLabelInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<crate::operation::describe_release_label::DescribeReleaseLabelInput, ::aws_smithy_types::error::operation::BuildError>
    {
        ::std::result::Result::Ok(crate::operation::describe_release_label::DescribeReleaseLabelInput {
            release_label: self.release_label,
            next_token: self.next_token,
            max_results: self.max_results,
        })
    }
}