#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct DeleteOmniDashboardInput {
pub space_id: ::std::option::Option<::std::string::String>,
pub dashboard_id: ::std::option::Option<::std::string::String>,
}
impl DeleteOmniDashboardInput {
pub fn space_id(&self) -> ::std::option::Option<&str> {
self.space_id.as_deref()
}
pub fn dashboard_id(&self) -> ::std::option::Option<&str> {
self.dashboard_id.as_deref()
}
}
impl DeleteOmniDashboardInput {
pub fn builder() -> crate::operation::delete_omni_dashboard::builders::DeleteOmniDashboardInputBuilder {
crate::operation::delete_omni_dashboard::builders::DeleteOmniDashboardInputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DeleteOmniDashboardInputBuilder {
pub(crate) space_id: ::std::option::Option<::std::string::String>,
pub(crate) dashboard_id: ::std::option::Option<::std::string::String>,
}
impl DeleteOmniDashboardInputBuilder {
pub fn space_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.space_id = ::std::option::Option::Some(input.into());
self
}
pub fn set_space_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.space_id = input;
self
}
pub fn get_space_id(&self) -> &::std::option::Option<::std::string::String> {
&self.space_id
}
pub fn dashboard_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.dashboard_id = ::std::option::Option::Some(input.into());
self
}
pub fn set_dashboard_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.dashboard_id = input;
self
}
pub fn get_dashboard_id(&self) -> &::std::option::Option<::std::string::String> {
&self.dashboard_id
}
pub fn build(
self,
) -> ::std::result::Result<crate::operation::delete_omni_dashboard::DeleteOmniDashboardInput, ::aws_smithy_types::error::operation::BuildError>
{
::std::result::Result::Ok(crate::operation::delete_omni_dashboard::DeleteOmniDashboardInput {
space_id: self.space_id,
dashboard_id: self.dashboard_id,
})
}
}