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

/// <p>The display options for the layout of tiles on a sheet.</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct TileLayoutStyle {
    /// <p>The gutter settings that apply between tiles.</p>
    pub gutter: ::std::option::Option<crate::types::GutterStyle>,
    /// <p>The margin settings that apply around the outside edge of sheets.</p>
    pub margin: ::std::option::Option<crate::types::MarginStyle>,
}
impl TileLayoutStyle {
    /// <p>The gutter settings that apply between tiles.</p>
    pub fn gutter(&self) -> ::std::option::Option<&crate::types::GutterStyle> {
        self.gutter.as_ref()
    }
    /// <p>The margin settings that apply around the outside edge of sheets.</p>
    pub fn margin(&self) -> ::std::option::Option<&crate::types::MarginStyle> {
        self.margin.as_ref()
    }
}
impl TileLayoutStyle {
    /// Creates a new builder-style object to manufacture [`TileLayoutStyle`](crate::types::TileLayoutStyle).
    pub fn builder() -> crate::types::builders::TileLayoutStyleBuilder {
        crate::types::builders::TileLayoutStyleBuilder::default()
    }
}

/// A builder for [`TileLayoutStyle`](crate::types::TileLayoutStyle).
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct TileLayoutStyleBuilder {
    pub(crate) gutter: ::std::option::Option<crate::types::GutterStyle>,
    pub(crate) margin: ::std::option::Option<crate::types::MarginStyle>,
}
impl TileLayoutStyleBuilder {
    /// <p>The gutter settings that apply between tiles.</p>
    pub fn gutter(mut self, input: crate::types::GutterStyle) -> Self {
        self.gutter = ::std::option::Option::Some(input);
        self
    }
    /// <p>The gutter settings that apply between tiles.</p>
    pub fn set_gutter(mut self, input: ::std::option::Option<crate::types::GutterStyle>) -> Self {
        self.gutter = input;
        self
    }
    /// <p>The gutter settings that apply between tiles.</p>
    pub fn get_gutter(&self) -> &::std::option::Option<crate::types::GutterStyle> {
        &self.gutter
    }
    /// <p>The margin settings that apply around the outside edge of sheets.</p>
    pub fn margin(mut self, input: crate::types::MarginStyle) -> Self {
        self.margin = ::std::option::Option::Some(input);
        self
    }
    /// <p>The margin settings that apply around the outside edge of sheets.</p>
    pub fn set_margin(mut self, input: ::std::option::Option<crate::types::MarginStyle>) -> Self {
        self.margin = input;
        self
    }
    /// <p>The margin settings that apply around the outside edge of sheets.</p>
    pub fn get_margin(&self) -> &::std::option::Option<crate::types::MarginStyle> {
        &self.margin
    }
    /// Consumes the builder and constructs a [`TileLayoutStyle`](crate::types::TileLayoutStyle).
    pub fn build(self) -> crate::types::TileLayoutStyle {
        crate::types::TileLayoutStyle {
            gutter: self.gutter,
            margin: self.margin,
        }
    }
}