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
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.

/// <p>An object that represents the default properties for a backend.</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct BackendDefaults {
    /// <p>A reference to an object that represents a client policy.</p>
    pub client_policy: ::std::option::Option<crate::types::ClientPolicy>,
}
impl BackendDefaults {
    /// <p>A reference to an object that represents a client policy.</p>
    pub fn client_policy(&self) -> ::std::option::Option<&crate::types::ClientPolicy> {
        self.client_policy.as_ref()
    }
}
impl BackendDefaults {
    /// Creates a new builder-style object to manufacture [`BackendDefaults`](crate::types::BackendDefaults).
    pub fn builder() -> crate::types::builders::BackendDefaultsBuilder {
        crate::types::builders::BackendDefaultsBuilder::default()
    }
}

/// A builder for [`BackendDefaults`](crate::types::BackendDefaults).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct BackendDefaultsBuilder {
    pub(crate) client_policy: ::std::option::Option<crate::types::ClientPolicy>,
}
impl BackendDefaultsBuilder {
    /// <p>A reference to an object that represents a client policy.</p>
    pub fn client_policy(mut self, input: crate::types::ClientPolicy) -> Self {
        self.client_policy = ::std::option::Option::Some(input);
        self
    }
    /// <p>A reference to an object that represents a client policy.</p>
    pub fn set_client_policy(mut self, input: ::std::option::Option<crate::types::ClientPolicy>) -> Self {
        self.client_policy = input;
        self
    }
    /// <p>A reference to an object that represents a client policy.</p>
    pub fn get_client_policy(&self) -> &::std::option::Option<crate::types::ClientPolicy> {
        &self.client_policy
    }
    /// Consumes the builder and constructs a [`BackendDefaults`](crate::types::BackendDefaults).
    pub fn build(self) -> crate::types::BackendDefaults {
        crate::types::BackendDefaults {
            client_policy: self.client_policy,
        }
    }
}