aws_sdk_quicksight/operation/delete_dashboard/
_delete_dashboard_input.rs1#[allow(missing_docs)] #[non_exhaustive]
4#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
5pub struct DeleteDashboardInput {
6 pub aws_account_id: ::std::option::Option<::std::string::String>,
8 pub dashboard_id: ::std::option::Option<::std::string::String>,
10 pub version_number: ::std::option::Option<i64>,
12}
13impl DeleteDashboardInput {
14 pub fn aws_account_id(&self) -> ::std::option::Option<&str> {
16 self.aws_account_id.as_deref()
17 }
18 pub fn dashboard_id(&self) -> ::std::option::Option<&str> {
20 self.dashboard_id.as_deref()
21 }
22 pub fn version_number(&self) -> ::std::option::Option<i64> {
24 self.version_number
25 }
26}
27impl DeleteDashboardInput {
28 pub fn builder() -> crate::operation::delete_dashboard::builders::DeleteDashboardInputBuilder {
30 crate::operation::delete_dashboard::builders::DeleteDashboardInputBuilder::default()
31 }
32}
33
34#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
36#[non_exhaustive]
37pub struct DeleteDashboardInputBuilder {
38 pub(crate) aws_account_id: ::std::option::Option<::std::string::String>,
39 pub(crate) dashboard_id: ::std::option::Option<::std::string::String>,
40 pub(crate) version_number: ::std::option::Option<i64>,
41}
42impl DeleteDashboardInputBuilder {
43 pub fn aws_account_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
46 self.aws_account_id = ::std::option::Option::Some(input.into());
47 self
48 }
49 pub fn set_aws_account_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
51 self.aws_account_id = input;
52 self
53 }
54 pub fn get_aws_account_id(&self) -> &::std::option::Option<::std::string::String> {
56 &self.aws_account_id
57 }
58 pub fn dashboard_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
61 self.dashboard_id = ::std::option::Option::Some(input.into());
62 self
63 }
64 pub fn set_dashboard_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
66 self.dashboard_id = input;
67 self
68 }
69 pub fn get_dashboard_id(&self) -> &::std::option::Option<::std::string::String> {
71 &self.dashboard_id
72 }
73 pub fn version_number(mut self, input: i64) -> Self {
75 self.version_number = ::std::option::Option::Some(input);
76 self
77 }
78 pub fn set_version_number(mut self, input: ::std::option::Option<i64>) -> Self {
80 self.version_number = input;
81 self
82 }
83 pub fn get_version_number(&self) -> &::std::option::Option<i64> {
85 &self.version_number
86 }
87 pub fn build(
89 self,
90 ) -> ::std::result::Result<crate::operation::delete_dashboard::DeleteDashboardInput, ::aws_smithy_types::error::operation::BuildError> {
91 ::std::result::Result::Ok(crate::operation::delete_dashboard::DeleteDashboardInput {
92 aws_account_id: self.aws_account_id,
93 dashboard_id: self.dashboard_id,
94 version_number: self.version_number,
95 })
96 }
97}