aws-sdk-lightsail 1.106.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 GetContainerServicesInput {
    /// <p>The name of the container service for which to return information.</p>
    /// <p>When omitted, the response includes all of your container services in the Amazon Web Services Region where the request is made.</p>
    pub service_name: ::std::option::Option<::std::string::String>,
}
impl GetContainerServicesInput {
    /// <p>The name of the container service for which to return information.</p>
    /// <p>When omitted, the response includes all of your container services in the Amazon Web Services Region where the request is made.</p>
    pub fn service_name(&self) -> ::std::option::Option<&str> {
        self.service_name.as_deref()
    }
}
impl GetContainerServicesInput {
    /// Creates a new builder-style object to manufacture [`GetContainerServicesInput`](crate::operation::get_container_services::GetContainerServicesInput).
    pub fn builder() -> crate::operation::get_container_services::builders::GetContainerServicesInputBuilder {
        crate::operation::get_container_services::builders::GetContainerServicesInputBuilder::default()
    }
}

/// A builder for [`GetContainerServicesInput`](crate::operation::get_container_services::GetContainerServicesInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct GetContainerServicesInputBuilder {
    pub(crate) service_name: ::std::option::Option<::std::string::String>,
}
impl GetContainerServicesInputBuilder {
    /// <p>The name of the container service for which to return information.</p>
    /// <p>When omitted, the response includes all of your container services in the Amazon Web Services Region where the request is made.</p>
    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 for which to return information.</p>
    /// <p>When omitted, the response includes all of your container services in the Amazon Web Services Region where the request is made.</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 for which to return information.</p>
    /// <p>When omitted, the response includes all of your container services in the Amazon Web Services Region where the request is made.</p>
    pub fn get_service_name(&self) -> &::std::option::Option<::std::string::String> {
        &self.service_name
    }
    /// Consumes the builder and constructs a [`GetContainerServicesInput`](crate::operation::get_container_services::GetContainerServicesInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<crate::operation::get_container_services::GetContainerServicesInput, ::aws_smithy_types::error::operation::BuildError>
    {
        ::std::result::Result::Ok(crate::operation::get_container_services::GetContainerServicesInput {
            service_name: self.service_name,
        })
    }
}