aws_sdk_elasticbeanstalk/types/
_launch_configuration.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2
3/// <p>Describes an Auto Scaling launch configuration.</p>
4#[non_exhaustive]
5#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
6pub struct LaunchConfiguration {
7    /// <p>The name of the launch configuration.</p>
8    pub name: ::std::option::Option<::std::string::String>,
9}
10impl LaunchConfiguration {
11    /// <p>The name of the launch configuration.</p>
12    pub fn name(&self) -> ::std::option::Option<&str> {
13        self.name.as_deref()
14    }
15}
16impl LaunchConfiguration {
17    /// Creates a new builder-style object to manufacture [`LaunchConfiguration`](crate::types::LaunchConfiguration).
18    pub fn builder() -> crate::types::builders::LaunchConfigurationBuilder {
19        crate::types::builders::LaunchConfigurationBuilder::default()
20    }
21}
22
23/// A builder for [`LaunchConfiguration`](crate::types::LaunchConfiguration).
24#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
25#[non_exhaustive]
26pub struct LaunchConfigurationBuilder {
27    pub(crate) name: ::std::option::Option<::std::string::String>,
28}
29impl LaunchConfigurationBuilder {
30    /// <p>The name of the launch configuration.</p>
31    pub fn name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
32        self.name = ::std::option::Option::Some(input.into());
33        self
34    }
35    /// <p>The name of the launch configuration.</p>
36    pub fn set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
37        self.name = input;
38        self
39    }
40    /// <p>The name of the launch configuration.</p>
41    pub fn get_name(&self) -> &::std::option::Option<::std::string::String> {
42        &self.name
43    }
44    /// Consumes the builder and constructs a [`LaunchConfiguration`](crate::types::LaunchConfiguration).
45    pub fn build(self) -> crate::types::LaunchConfiguration {
46        crate::types::LaunchConfiguration { name: self.name }
47    }
48}