aws-sdk-batch 1.124.0

AWS SDK for AWS Batch
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 DeleteServiceEnvironmentInput {
    /// <p>The name or ARN of the service environment to delete.</p>
    pub service_environment: ::std::option::Option<::std::string::String>,
}
impl DeleteServiceEnvironmentInput {
    /// <p>The name or ARN of the service environment to delete.</p>
    pub fn service_environment(&self) -> ::std::option::Option<&str> {
        self.service_environment.as_deref()
    }
}
impl DeleteServiceEnvironmentInput {
    /// Creates a new builder-style object to manufacture [`DeleteServiceEnvironmentInput`](crate::operation::delete_service_environment::DeleteServiceEnvironmentInput).
    pub fn builder() -> crate::operation::delete_service_environment::builders::DeleteServiceEnvironmentInputBuilder {
        crate::operation::delete_service_environment::builders::DeleteServiceEnvironmentInputBuilder::default()
    }
}

/// A builder for [`DeleteServiceEnvironmentInput`](crate::operation::delete_service_environment::DeleteServiceEnvironmentInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DeleteServiceEnvironmentInputBuilder {
    pub(crate) service_environment: ::std::option::Option<::std::string::String>,
}
impl DeleteServiceEnvironmentInputBuilder {
    /// <p>The name or ARN of the service environment to delete.</p>
    /// This field is required.
    pub fn service_environment(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.service_environment = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The name or ARN of the service environment to delete.</p>
    pub fn set_service_environment(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.service_environment = input;
        self
    }
    /// <p>The name or ARN of the service environment to delete.</p>
    pub fn get_service_environment(&self) -> &::std::option::Option<::std::string::String> {
        &self.service_environment
    }
    /// Consumes the builder and constructs a [`DeleteServiceEnvironmentInput`](crate::operation::delete_service_environment::DeleteServiceEnvironmentInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<
        crate::operation::delete_service_environment::DeleteServiceEnvironmentInput,
        ::aws_smithy_types::error::operation::BuildError,
    > {
        ::std::result::Result::Ok(crate::operation::delete_service_environment::DeleteServiceEnvironmentInput {
            service_environment: self.service_environment,
        })
    }
}