1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.

/// <p>A specification identifying an individual configuration option along with its current value. For a list of possible namespaces and option values, see <a href="https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/command-options.html">Option Values</a> in the <i>AWS Elastic Beanstalk Developer Guide</i>.</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct ConfigurationOptionSetting {
    /// <p>A unique resource name for the option setting. Use it for a time–based scaling configuration option.</p>
    pub resource_name: ::std::option::Option<::std::string::String>,
    /// <p>A unique namespace that identifies the option's associated AWS resource.</p>
    pub namespace: ::std::option::Option<::std::string::String>,
    /// <p>The name of the configuration option.</p>
    pub option_name: ::std::option::Option<::std::string::String>,
    /// <p>The current value for the configuration option.</p>
    pub value: ::std::option::Option<::std::string::String>,
}
impl ConfigurationOptionSetting {
    /// <p>A unique resource name for the option setting. Use it for a time–based scaling configuration option.</p>
    pub fn resource_name(&self) -> ::std::option::Option<&str> {
        self.resource_name.as_deref()
    }
    /// <p>A unique namespace that identifies the option's associated AWS resource.</p>
    pub fn namespace(&self) -> ::std::option::Option<&str> {
        self.namespace.as_deref()
    }
    /// <p>The name of the configuration option.</p>
    pub fn option_name(&self) -> ::std::option::Option<&str> {
        self.option_name.as_deref()
    }
    /// <p>The current value for the configuration option.</p>
    pub fn value(&self) -> ::std::option::Option<&str> {
        self.value.as_deref()
    }
}
impl ConfigurationOptionSetting {
    /// Creates a new builder-style object to manufacture [`ConfigurationOptionSetting`](crate::types::ConfigurationOptionSetting).
    pub fn builder() -> crate::types::builders::ConfigurationOptionSettingBuilder {
        crate::types::builders::ConfigurationOptionSettingBuilder::default()
    }
}

/// A builder for [`ConfigurationOptionSetting`](crate::types::ConfigurationOptionSetting).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct ConfigurationOptionSettingBuilder {
    pub(crate) resource_name: ::std::option::Option<::std::string::String>,
    pub(crate) namespace: ::std::option::Option<::std::string::String>,
    pub(crate) option_name: ::std::option::Option<::std::string::String>,
    pub(crate) value: ::std::option::Option<::std::string::String>,
}
impl ConfigurationOptionSettingBuilder {
    /// <p>A unique resource name for the option setting. Use it for a time–based scaling configuration option.</p>
    pub fn resource_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.resource_name = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>A unique resource name for the option setting. Use it for a time–based scaling configuration option.</p>
    pub fn set_resource_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.resource_name = input;
        self
    }
    /// <p>A unique resource name for the option setting. Use it for a time–based scaling configuration option.</p>
    pub fn get_resource_name(&self) -> &::std::option::Option<::std::string::String> {
        &self.resource_name
    }
    /// <p>A unique namespace that identifies the option's associated AWS resource.</p>
    pub fn namespace(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.namespace = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>A unique namespace that identifies the option's associated AWS resource.</p>
    pub fn set_namespace(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.namespace = input;
        self
    }
    /// <p>A unique namespace that identifies the option's associated AWS resource.</p>
    pub fn get_namespace(&self) -> &::std::option::Option<::std::string::String> {
        &self.namespace
    }
    /// <p>The name of the configuration option.</p>
    pub fn option_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.option_name = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The name of the configuration option.</p>
    pub fn set_option_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.option_name = input;
        self
    }
    /// <p>The name of the configuration option.</p>
    pub fn get_option_name(&self) -> &::std::option::Option<::std::string::String> {
        &self.option_name
    }
    /// <p>The current value for the configuration option.</p>
    pub fn value(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.value = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The current value for the configuration option.</p>
    pub fn set_value(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.value = input;
        self
    }
    /// <p>The current value for the configuration option.</p>
    pub fn get_value(&self) -> &::std::option::Option<::std::string::String> {
        &self.value
    }
    /// Consumes the builder and constructs a [`ConfigurationOptionSetting`](crate::types::ConfigurationOptionSetting).
    pub fn build(self) -> crate::types::ConfigurationOptionSetting {
        crate::types::ConfigurationOptionSetting {
            resource_name: self.resource_name,
            namespace: self.namespace,
            option_name: self.option_name,
            value: self.value,
        }
    }
}