aws_sdk_quicksight/types/
_registered_user_console_feature_configurations.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2
3/// <p>The feature configurations of an embedded Amazon Quick Sight console.</p>
4#[non_exhaustive]
5#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
6pub struct RegisteredUserConsoleFeatureConfigurations {
7    /// <p>The state persistence configurations of an embedded Amazon Quick Sight console.</p>
8    pub state_persistence: ::std::option::Option<crate::types::StatePersistenceConfigurations>,
9    /// <p>The shared view settings of an embedded dashboard.</p>
10    pub shared_view: ::std::option::Option<crate::types::SharedViewConfigurations>,
11    /// <p>The Amazon Q configurations of an embedded Amazon Quick Sight console.</p>
12    pub amazon_q_in_quick_sight: ::std::option::Option<crate::types::AmazonQInQuickSightConsoleConfigurations>,
13    /// <p>The schedules configuration for an embedded Quick Sight dashboard.</p>
14    pub schedules: ::std::option::Option<crate::types::SchedulesConfigurations>,
15    /// <p>The recent snapshots configuration for an embedded Quick Sight dashboard.</p>
16    pub recent_snapshots: ::std::option::Option<crate::types::RecentSnapshotsConfigurations>,
17    /// <p>The threshold alerts configuration for an embedded Quick Sight dashboard.</p>
18    pub threshold_alerts: ::std::option::Option<crate::types::ThresholdAlertsConfigurations>,
19}
20impl RegisteredUserConsoleFeatureConfigurations {
21    /// <p>The state persistence configurations of an embedded Amazon Quick Sight console.</p>
22    pub fn state_persistence(&self) -> ::std::option::Option<&crate::types::StatePersistenceConfigurations> {
23        self.state_persistence.as_ref()
24    }
25    /// <p>The shared view settings of an embedded dashboard.</p>
26    pub fn shared_view(&self) -> ::std::option::Option<&crate::types::SharedViewConfigurations> {
27        self.shared_view.as_ref()
28    }
29    /// <p>The Amazon Q configurations of an embedded Amazon Quick Sight console.</p>
30    pub fn amazon_q_in_quick_sight(&self) -> ::std::option::Option<&crate::types::AmazonQInQuickSightConsoleConfigurations> {
31        self.amazon_q_in_quick_sight.as_ref()
32    }
33    /// <p>The schedules configuration for an embedded Quick Sight dashboard.</p>
34    pub fn schedules(&self) -> ::std::option::Option<&crate::types::SchedulesConfigurations> {
35        self.schedules.as_ref()
36    }
37    /// <p>The recent snapshots configuration for an embedded Quick Sight dashboard.</p>
38    pub fn recent_snapshots(&self) -> ::std::option::Option<&crate::types::RecentSnapshotsConfigurations> {
39        self.recent_snapshots.as_ref()
40    }
41    /// <p>The threshold alerts configuration for an embedded Quick Sight dashboard.</p>
42    pub fn threshold_alerts(&self) -> ::std::option::Option<&crate::types::ThresholdAlertsConfigurations> {
43        self.threshold_alerts.as_ref()
44    }
45}
46impl RegisteredUserConsoleFeatureConfigurations {
47    /// Creates a new builder-style object to manufacture [`RegisteredUserConsoleFeatureConfigurations`](crate::types::RegisteredUserConsoleFeatureConfigurations).
48    pub fn builder() -> crate::types::builders::RegisteredUserConsoleFeatureConfigurationsBuilder {
49        crate::types::builders::RegisteredUserConsoleFeatureConfigurationsBuilder::default()
50    }
51}
52
53/// A builder for [`RegisteredUserConsoleFeatureConfigurations`](crate::types::RegisteredUserConsoleFeatureConfigurations).
54#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
55#[non_exhaustive]
56pub struct RegisteredUserConsoleFeatureConfigurationsBuilder {
57    pub(crate) state_persistence: ::std::option::Option<crate::types::StatePersistenceConfigurations>,
58    pub(crate) shared_view: ::std::option::Option<crate::types::SharedViewConfigurations>,
59    pub(crate) amazon_q_in_quick_sight: ::std::option::Option<crate::types::AmazonQInQuickSightConsoleConfigurations>,
60    pub(crate) schedules: ::std::option::Option<crate::types::SchedulesConfigurations>,
61    pub(crate) recent_snapshots: ::std::option::Option<crate::types::RecentSnapshotsConfigurations>,
62    pub(crate) threshold_alerts: ::std::option::Option<crate::types::ThresholdAlertsConfigurations>,
63}
64impl RegisteredUserConsoleFeatureConfigurationsBuilder {
65    /// <p>The state persistence configurations of an embedded Amazon Quick Sight console.</p>
66    pub fn state_persistence(mut self, input: crate::types::StatePersistenceConfigurations) -> Self {
67        self.state_persistence = ::std::option::Option::Some(input);
68        self
69    }
70    /// <p>The state persistence configurations of an embedded Amazon Quick Sight console.</p>
71    pub fn set_state_persistence(mut self, input: ::std::option::Option<crate::types::StatePersistenceConfigurations>) -> Self {
72        self.state_persistence = input;
73        self
74    }
75    /// <p>The state persistence configurations of an embedded Amazon Quick Sight console.</p>
76    pub fn get_state_persistence(&self) -> &::std::option::Option<crate::types::StatePersistenceConfigurations> {
77        &self.state_persistence
78    }
79    /// <p>The shared view settings of an embedded dashboard.</p>
80    pub fn shared_view(mut self, input: crate::types::SharedViewConfigurations) -> Self {
81        self.shared_view = ::std::option::Option::Some(input);
82        self
83    }
84    /// <p>The shared view settings of an embedded dashboard.</p>
85    pub fn set_shared_view(mut self, input: ::std::option::Option<crate::types::SharedViewConfigurations>) -> Self {
86        self.shared_view = input;
87        self
88    }
89    /// <p>The shared view settings of an embedded dashboard.</p>
90    pub fn get_shared_view(&self) -> &::std::option::Option<crate::types::SharedViewConfigurations> {
91        &self.shared_view
92    }
93    /// <p>The Amazon Q configurations of an embedded Amazon Quick Sight console.</p>
94    pub fn amazon_q_in_quick_sight(mut self, input: crate::types::AmazonQInQuickSightConsoleConfigurations) -> Self {
95        self.amazon_q_in_quick_sight = ::std::option::Option::Some(input);
96        self
97    }
98    /// <p>The Amazon Q configurations of an embedded Amazon Quick Sight console.</p>
99    pub fn set_amazon_q_in_quick_sight(mut self, input: ::std::option::Option<crate::types::AmazonQInQuickSightConsoleConfigurations>) -> Self {
100        self.amazon_q_in_quick_sight = input;
101        self
102    }
103    /// <p>The Amazon Q configurations of an embedded Amazon Quick Sight console.</p>
104    pub fn get_amazon_q_in_quick_sight(&self) -> &::std::option::Option<crate::types::AmazonQInQuickSightConsoleConfigurations> {
105        &self.amazon_q_in_quick_sight
106    }
107    /// <p>The schedules configuration for an embedded Quick Sight dashboard.</p>
108    pub fn schedules(mut self, input: crate::types::SchedulesConfigurations) -> Self {
109        self.schedules = ::std::option::Option::Some(input);
110        self
111    }
112    /// <p>The schedules configuration for an embedded Quick Sight dashboard.</p>
113    pub fn set_schedules(mut self, input: ::std::option::Option<crate::types::SchedulesConfigurations>) -> Self {
114        self.schedules = input;
115        self
116    }
117    /// <p>The schedules configuration for an embedded Quick Sight dashboard.</p>
118    pub fn get_schedules(&self) -> &::std::option::Option<crate::types::SchedulesConfigurations> {
119        &self.schedules
120    }
121    /// <p>The recent snapshots configuration for an embedded Quick Sight dashboard.</p>
122    pub fn recent_snapshots(mut self, input: crate::types::RecentSnapshotsConfigurations) -> Self {
123        self.recent_snapshots = ::std::option::Option::Some(input);
124        self
125    }
126    /// <p>The recent snapshots configuration for an embedded Quick Sight dashboard.</p>
127    pub fn set_recent_snapshots(mut self, input: ::std::option::Option<crate::types::RecentSnapshotsConfigurations>) -> Self {
128        self.recent_snapshots = input;
129        self
130    }
131    /// <p>The recent snapshots configuration for an embedded Quick Sight dashboard.</p>
132    pub fn get_recent_snapshots(&self) -> &::std::option::Option<crate::types::RecentSnapshotsConfigurations> {
133        &self.recent_snapshots
134    }
135    /// <p>The threshold alerts configuration for an embedded Quick Sight dashboard.</p>
136    pub fn threshold_alerts(mut self, input: crate::types::ThresholdAlertsConfigurations) -> Self {
137        self.threshold_alerts = ::std::option::Option::Some(input);
138        self
139    }
140    /// <p>The threshold alerts configuration for an embedded Quick Sight dashboard.</p>
141    pub fn set_threshold_alerts(mut self, input: ::std::option::Option<crate::types::ThresholdAlertsConfigurations>) -> Self {
142        self.threshold_alerts = input;
143        self
144    }
145    /// <p>The threshold alerts configuration for an embedded Quick Sight dashboard.</p>
146    pub fn get_threshold_alerts(&self) -> &::std::option::Option<crate::types::ThresholdAlertsConfigurations> {
147        &self.threshold_alerts
148    }
149    /// Consumes the builder and constructs a [`RegisteredUserConsoleFeatureConfigurations`](crate::types::RegisteredUserConsoleFeatureConfigurations).
150    pub fn build(self) -> crate::types::RegisteredUserConsoleFeatureConfigurations {
151        crate::types::RegisteredUserConsoleFeatureConfigurations {
152            state_persistence: self.state_persistence,
153            shared_view: self.shared_view,
154            amazon_q_in_quick_sight: self.amazon_q_in_quick_sight,
155            schedules: self.schedules,
156            recent_snapshots: self.recent_snapshots,
157            threshold_alerts: self.threshold_alerts,
158        }
159    }
160}