aws-sdk-lightsail 1.105.0

AWS SDK for Amazon Lightsail
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 DeleteContainerServiceInput {
    /// <p>The name of the container service to delete.</p>
    pub service_name: ::std::option::Option<::std::string::String>,
}
impl DeleteContainerServiceInput {
    /// <p>The name of the container service to delete.</p>
    pub fn service_name(&self) -> ::std::option::Option<&str> {
        self.service_name.as_deref()
    }
}
impl DeleteContainerServiceInput {
    /// Creates a new builder-style object to manufacture [`DeleteContainerServiceInput`](crate::operation::delete_container_service::DeleteContainerServiceInput).
    pub fn builder() -> crate::operation::delete_container_service::builders::DeleteContainerServiceInputBuilder {
        crate::operation::delete_container_service::builders::DeleteContainerServiceInputBuilder::default()
    }
}

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