Skip to main content

aws_sdk_quicksight/types/
_dashboard_version_summary.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2
3/// <p>Dashboard version summary.</p>
4#[non_exhaustive]
5#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
6pub struct DashboardVersionSummary {
7    /// <p>The Amazon Resource Name (ARN) of the resource.</p>
8    pub arn: ::std::option::Option<::std::string::String>,
9    /// <p>The time that this dashboard version was created.</p>
10    pub created_time: ::std::option::Option<::aws_smithy_types::DateTime>,
11    /// <p>Version number.</p>
12    pub version_number: ::std::option::Option<i64>,
13    /// <p>The HTTP status of the request.</p>
14    pub status: ::std::option::Option<crate::types::ResourceStatus>,
15    /// <p>Source entity ARN.</p>
16    pub source_entity_arn: ::std::option::Option<::std::string::String>,
17    /// <p>Description.</p>
18    pub description: ::std::option::Option<::std::string::String>,
19}
20impl DashboardVersionSummary {
21    /// <p>The Amazon Resource Name (ARN) of the resource.</p>
22    pub fn arn(&self) -> ::std::option::Option<&str> {
23        self.arn.as_deref()
24    }
25    /// <p>The time that this dashboard version was created.</p>
26    pub fn created_time(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
27        self.created_time.as_ref()
28    }
29    /// <p>Version number.</p>
30    pub fn version_number(&self) -> ::std::option::Option<i64> {
31        self.version_number
32    }
33    /// <p>The HTTP status of the request.</p>
34    pub fn status(&self) -> ::std::option::Option<&crate::types::ResourceStatus> {
35        self.status.as_ref()
36    }
37    /// <p>Source entity ARN.</p>
38    pub fn source_entity_arn(&self) -> ::std::option::Option<&str> {
39        self.source_entity_arn.as_deref()
40    }
41    /// <p>Description.</p>
42    pub fn description(&self) -> ::std::option::Option<&str> {
43        self.description.as_deref()
44    }
45}
46impl DashboardVersionSummary {
47    /// Creates a new builder-style object to manufacture [`DashboardVersionSummary`](crate::types::DashboardVersionSummary).
48    pub fn builder() -> crate::types::builders::DashboardVersionSummaryBuilder {
49        crate::types::builders::DashboardVersionSummaryBuilder::default()
50    }
51}
52
53/// A builder for [`DashboardVersionSummary`](crate::types::DashboardVersionSummary).
54#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
55#[non_exhaustive]
56pub struct DashboardVersionSummaryBuilder {
57    pub(crate) arn: ::std::option::Option<::std::string::String>,
58    pub(crate) created_time: ::std::option::Option<::aws_smithy_types::DateTime>,
59    pub(crate) version_number: ::std::option::Option<i64>,
60    pub(crate) status: ::std::option::Option<crate::types::ResourceStatus>,
61    pub(crate) source_entity_arn: ::std::option::Option<::std::string::String>,
62    pub(crate) description: ::std::option::Option<::std::string::String>,
63}
64impl DashboardVersionSummaryBuilder {
65    /// <p>The Amazon Resource Name (ARN) of the resource.</p>
66    pub fn arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
67        self.arn = ::std::option::Option::Some(input.into());
68        self
69    }
70    /// <p>The Amazon Resource Name (ARN) of the resource.</p>
71    pub fn set_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
72        self.arn = input;
73        self
74    }
75    /// <p>The Amazon Resource Name (ARN) of the resource.</p>
76    pub fn get_arn(&self) -> &::std::option::Option<::std::string::String> {
77        &self.arn
78    }
79    /// <p>The time that this dashboard version was created.</p>
80    pub fn created_time(mut self, input: ::aws_smithy_types::DateTime) -> Self {
81        self.created_time = ::std::option::Option::Some(input);
82        self
83    }
84    /// <p>The time that this dashboard version was created.</p>
85    pub fn set_created_time(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
86        self.created_time = input;
87        self
88    }
89    /// <p>The time that this dashboard version was created.</p>
90    pub fn get_created_time(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
91        &self.created_time
92    }
93    /// <p>Version number.</p>
94    pub fn version_number(mut self, input: i64) -> Self {
95        self.version_number = ::std::option::Option::Some(input);
96        self
97    }
98    /// <p>Version number.</p>
99    pub fn set_version_number(mut self, input: ::std::option::Option<i64>) -> Self {
100        self.version_number = input;
101        self
102    }
103    /// <p>Version number.</p>
104    pub fn get_version_number(&self) -> &::std::option::Option<i64> {
105        &self.version_number
106    }
107    /// <p>The HTTP status of the request.</p>
108    pub fn status(mut self, input: crate::types::ResourceStatus) -> Self {
109        self.status = ::std::option::Option::Some(input);
110        self
111    }
112    /// <p>The HTTP status of the request.</p>
113    pub fn set_status(mut self, input: ::std::option::Option<crate::types::ResourceStatus>) -> Self {
114        self.status = input;
115        self
116    }
117    /// <p>The HTTP status of the request.</p>
118    pub fn get_status(&self) -> &::std::option::Option<crate::types::ResourceStatus> {
119        &self.status
120    }
121    /// <p>Source entity ARN.</p>
122    pub fn source_entity_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
123        self.source_entity_arn = ::std::option::Option::Some(input.into());
124        self
125    }
126    /// <p>Source entity ARN.</p>
127    pub fn set_source_entity_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
128        self.source_entity_arn = input;
129        self
130    }
131    /// <p>Source entity ARN.</p>
132    pub fn get_source_entity_arn(&self) -> &::std::option::Option<::std::string::String> {
133        &self.source_entity_arn
134    }
135    /// <p>Description.</p>
136    pub fn description(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
137        self.description = ::std::option::Option::Some(input.into());
138        self
139    }
140    /// <p>Description.</p>
141    pub fn set_description(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
142        self.description = input;
143        self
144    }
145    /// <p>Description.</p>
146    pub fn get_description(&self) -> &::std::option::Option<::std::string::String> {
147        &self.description
148    }
149    /// Consumes the builder and constructs a [`DashboardVersionSummary`](crate::types::DashboardVersionSummary).
150    pub fn build(self) -> crate::types::DashboardVersionSummary {
151        crate::types::DashboardVersionSummary {
152            arn: self.arn,
153            created_time: self.created_time,
154            version_number: self.version_number,
155            status: self.status,
156            source_entity_arn: self.source_entity_arn,
157            description: self.description,
158        }
159    }
160}