aws-sdk-nimble 1.46.0

AWS SDK for AmazonNimbleStudio
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 GetEulaInput {
    /// <p>The EULA ID.</p>
    pub eula_id: ::std::option::Option<::std::string::String>,
}
impl GetEulaInput {
    /// <p>The EULA ID.</p>
    pub fn eula_id(&self) -> ::std::option::Option<&str> {
        self.eula_id.as_deref()
    }
}
impl GetEulaInput {
    /// Creates a new builder-style object to manufacture [`GetEulaInput`](crate::operation::get_eula::GetEulaInput).
    pub fn builder() -> crate::operation::get_eula::builders::GetEulaInputBuilder {
        crate::operation::get_eula::builders::GetEulaInputBuilder::default()
    }
}

/// A builder for [`GetEulaInput`](crate::operation::get_eula::GetEulaInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct GetEulaInputBuilder {
    pub(crate) eula_id: ::std::option::Option<::std::string::String>,
}
impl GetEulaInputBuilder {
    /// <p>The EULA ID.</p>
    /// This field is required.
    pub fn eula_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.eula_id = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The EULA ID.</p>
    pub fn set_eula_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.eula_id = input;
        self
    }
    /// <p>The EULA ID.</p>
    pub fn get_eula_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.eula_id
    }
    /// Consumes the builder and constructs a [`GetEulaInput`](crate::operation::get_eula::GetEulaInput).
    pub fn build(self) -> ::std::result::Result<crate::operation::get_eula::GetEulaInput, ::aws_smithy_types::error::operation::BuildError> {
        ::std::result::Result::Ok(crate::operation::get_eula::GetEulaInput { eula_id: self.eula_id })
    }
}