aws_sdk_elasticbeanstalk/types/
_builder.rs

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