aws_sdk_quicksight/types/
_tile_style.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2
3/// <p>Display options related to tiles on a sheet.</p>
4#[non_exhaustive]
5#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
6pub struct TileStyle {
7    /// <p>The border around a tile.</p>
8    pub border: ::std::option::Option<crate::types::BorderStyle>,
9}
10impl TileStyle {
11    /// <p>The border around a tile.</p>
12    pub fn border(&self) -> ::std::option::Option<&crate::types::BorderStyle> {
13        self.border.as_ref()
14    }
15}
16impl TileStyle {
17    /// Creates a new builder-style object to manufacture [`TileStyle`](crate::types::TileStyle).
18    pub fn builder() -> crate::types::builders::TileStyleBuilder {
19        crate::types::builders::TileStyleBuilder::default()
20    }
21}
22
23/// A builder for [`TileStyle`](crate::types::TileStyle).
24#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
25#[non_exhaustive]
26pub struct TileStyleBuilder {
27    pub(crate) border: ::std::option::Option<crate::types::BorderStyle>,
28}
29impl TileStyleBuilder {
30    /// <p>The border around a tile.</p>
31    pub fn border(mut self, input: crate::types::BorderStyle) -> Self {
32        self.border = ::std::option::Option::Some(input);
33        self
34    }
35    /// <p>The border around a tile.</p>
36    pub fn set_border(mut self, input: ::std::option::Option<crate::types::BorderStyle>) -> Self {
37        self.border = input;
38        self
39    }
40    /// <p>The border around a tile.</p>
41    pub fn get_border(&self) -> &::std::option::Option<crate::types::BorderStyle> {
42        &self.border
43    }
44    /// Consumes the builder and constructs a [`TileStyle`](crate::types::TileStyle).
45    pub fn build(self) -> crate::types::TileStyle {
46        crate::types::TileStyle { border: self.border }
47    }
48}