aws-sdk-assurance 1.0.0

AWS SDK for AWS Assurance
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 GetEnvironmentInput {
    /// <p>The lookup criteria used to resolve the item.</p>
    pub lookup: ::std::option::Option<crate::types::EnvironmentLookup>,
}
impl GetEnvironmentInput {
    /// <p>The lookup criteria used to resolve the item.</p>
    pub fn lookup(&self) -> ::std::option::Option<&crate::types::EnvironmentLookup> {
        self.lookup.as_ref()
    }
}
impl GetEnvironmentInput {
    /// Creates a new builder-style object to manufacture [`GetEnvironmentInput`](crate::operation::get_environment::GetEnvironmentInput).
    pub fn builder() -> crate::operation::get_environment::builders::GetEnvironmentInputBuilder {
        crate::operation::get_environment::builders::GetEnvironmentInputBuilder::default()
    }
}

/// A builder for [`GetEnvironmentInput`](crate::operation::get_environment::GetEnvironmentInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct GetEnvironmentInputBuilder {
    pub(crate) lookup: ::std::option::Option<crate::types::EnvironmentLookup>,
}
impl GetEnvironmentInputBuilder {
    /// <p>The lookup criteria used to resolve the item.</p>
    /// This field is required.
    pub fn lookup(mut self, input: crate::types::EnvironmentLookup) -> Self {
        self.lookup = ::std::option::Option::Some(input);
        self
    }
    /// <p>The lookup criteria used to resolve the item.</p>
    pub fn set_lookup(mut self, input: ::std::option::Option<crate::types::EnvironmentLookup>) -> Self {
        self.lookup = input;
        self
    }
    /// <p>The lookup criteria used to resolve the item.</p>
    pub fn get_lookup(&self) -> &::std::option::Option<crate::types::EnvironmentLookup> {
        &self.lookup
    }
    /// Consumes the builder and constructs a [`GetEnvironmentInput`](crate::operation::get_environment::GetEnvironmentInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<crate::operation::get_environment::GetEnvironmentInput, ::aws_smithy_types::error::operation::BuildError> {
        ::std::result::Result::Ok(crate::operation::get_environment::GetEnvironmentInput { lookup: self.lookup })
    }
}