aws_sdk_quicksight/types/
_analysis_summary.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2
3/// <p>The summary metadata that describes an analysis.</p>
4#[non_exhaustive]
5#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
6pub struct AnalysisSummary {
7    /// <p>The Amazon Resource Name (ARN) for the analysis.</p>
8    pub arn: ::std::option::Option<::std::string::String>,
9    /// <p>The ID of the analysis. This ID displays in the URL.</p>
10    pub analysis_id: ::std::option::Option<::std::string::String>,
11    /// <p>The name of the analysis. This name is displayed in the Quick Sight console.</p>
12    pub name: ::std::option::Option<::std::string::String>,
13    /// <p>The last known status for the analysis.</p>
14    pub status: ::std::option::Option<crate::types::ResourceStatus>,
15    /// <p>The time that the analysis was created.</p>
16    pub created_time: ::std::option::Option<::aws_smithy_types::DateTime>,
17    /// <p>The time that the analysis was last updated.</p>
18    pub last_updated_time: ::std::option::Option<::aws_smithy_types::DateTime>,
19}
20impl AnalysisSummary {
21    /// <p>The Amazon Resource Name (ARN) for the analysis.</p>
22    pub fn arn(&self) -> ::std::option::Option<&str> {
23        self.arn.as_deref()
24    }
25    /// <p>The ID of the analysis. This ID displays in the URL.</p>
26    pub fn analysis_id(&self) -> ::std::option::Option<&str> {
27        self.analysis_id.as_deref()
28    }
29    /// <p>The name of the analysis. This name is displayed in the Quick Sight console.</p>
30    pub fn name(&self) -> ::std::option::Option<&str> {
31        self.name.as_deref()
32    }
33    /// <p>The last known status for the analysis.</p>
34    pub fn status(&self) -> ::std::option::Option<&crate::types::ResourceStatus> {
35        self.status.as_ref()
36    }
37    /// <p>The time that the analysis was created.</p>
38    pub fn created_time(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
39        self.created_time.as_ref()
40    }
41    /// <p>The time that the analysis was last updated.</p>
42    pub fn last_updated_time(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
43        self.last_updated_time.as_ref()
44    }
45}
46impl AnalysisSummary {
47    /// Creates a new builder-style object to manufacture [`AnalysisSummary`](crate::types::AnalysisSummary).
48    pub fn builder() -> crate::types::builders::AnalysisSummaryBuilder {
49        crate::types::builders::AnalysisSummaryBuilder::default()
50    }
51}
52
53/// A builder for [`AnalysisSummary`](crate::types::AnalysisSummary).
54#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
55#[non_exhaustive]
56pub struct AnalysisSummaryBuilder {
57    pub(crate) arn: ::std::option::Option<::std::string::String>,
58    pub(crate) analysis_id: ::std::option::Option<::std::string::String>,
59    pub(crate) name: ::std::option::Option<::std::string::String>,
60    pub(crate) status: ::std::option::Option<crate::types::ResourceStatus>,
61    pub(crate) created_time: ::std::option::Option<::aws_smithy_types::DateTime>,
62    pub(crate) last_updated_time: ::std::option::Option<::aws_smithy_types::DateTime>,
63}
64impl AnalysisSummaryBuilder {
65    /// <p>The Amazon Resource Name (ARN) for the analysis.</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) for the analysis.</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) for the analysis.</p>
76    pub fn get_arn(&self) -> &::std::option::Option<::std::string::String> {
77        &self.arn
78    }
79    /// <p>The ID of the analysis. This ID displays in the URL.</p>
80    pub fn analysis_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
81        self.analysis_id = ::std::option::Option::Some(input.into());
82        self
83    }
84    /// <p>The ID of the analysis. This ID displays in the URL.</p>
85    pub fn set_analysis_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
86        self.analysis_id = input;
87        self
88    }
89    /// <p>The ID of the analysis. This ID displays in the URL.</p>
90    pub fn get_analysis_id(&self) -> &::std::option::Option<::std::string::String> {
91        &self.analysis_id
92    }
93    /// <p>The name of the analysis. This name is displayed in the Quick Sight console.</p>
94    pub fn name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
95        self.name = ::std::option::Option::Some(input.into());
96        self
97    }
98    /// <p>The name of the analysis. This name is displayed in the Quick Sight console.</p>
99    pub fn set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
100        self.name = input;
101        self
102    }
103    /// <p>The name of the analysis. This name is displayed in the Quick Sight console.</p>
104    pub fn get_name(&self) -> &::std::option::Option<::std::string::String> {
105        &self.name
106    }
107    /// <p>The last known status for the analysis.</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 last known status for the analysis.</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 last known status for the analysis.</p>
118    pub fn get_status(&self) -> &::std::option::Option<crate::types::ResourceStatus> {
119        &self.status
120    }
121    /// <p>The time that the analysis was created.</p>
122    pub fn created_time(mut self, input: ::aws_smithy_types::DateTime) -> Self {
123        self.created_time = ::std::option::Option::Some(input);
124        self
125    }
126    /// <p>The time that the analysis was created.</p>
127    pub fn set_created_time(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
128        self.created_time = input;
129        self
130    }
131    /// <p>The time that the analysis was created.</p>
132    pub fn get_created_time(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
133        &self.created_time
134    }
135    /// <p>The time that the analysis was last updated.</p>
136    pub fn last_updated_time(mut self, input: ::aws_smithy_types::DateTime) -> Self {
137        self.last_updated_time = ::std::option::Option::Some(input);
138        self
139    }
140    /// <p>The time that the analysis was last updated.</p>
141    pub fn set_last_updated_time(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
142        self.last_updated_time = input;
143        self
144    }
145    /// <p>The time that the analysis was last updated.</p>
146    pub fn get_last_updated_time(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
147        &self.last_updated_time
148    }
149    /// Consumes the builder and constructs a [`AnalysisSummary`](crate::types::AnalysisSummary).
150    pub fn build(self) -> crate::types::AnalysisSummary {
151        crate::types::AnalysisSummary {
152            arn: self.arn,
153            analysis_id: self.analysis_id,
154            name: self.name,
155            status: self.status,
156            created_time: self.created_time,
157            last_updated_time: self.last_updated_time,
158        }
159    }
160}