aws-sdk-cloudtrail 1.104.0

AWS SDK for AWS CloudTrail
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct DeleteDashboardInput {
    /// <p>The name or ARN for the dashboard.</p>
    pub dashboard_id: ::std::option::Option<::std::string::String>,
}
impl DeleteDashboardInput {
    /// <p>The name or ARN for the dashboard.</p>
    pub fn dashboard_id(&self) -> ::std::option::Option<&str> {
        self.dashboard_id.as_deref()
    }
}
impl DeleteDashboardInput {
    /// Creates a new builder-style object to manufacture [`DeleteDashboardInput`](crate::operation::delete_dashboard::DeleteDashboardInput).
    pub fn builder() -> crate::operation::delete_dashboard::builders::DeleteDashboardInputBuilder {
        crate::operation::delete_dashboard::builders::DeleteDashboardInputBuilder::default()
    }
}

/// A builder for [`DeleteDashboardInput`](crate::operation::delete_dashboard::DeleteDashboardInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DeleteDashboardInputBuilder {
    pub(crate) dashboard_id: ::std::option::Option<::std::string::String>,
}
impl DeleteDashboardInputBuilder {
    /// <p>The name or ARN for the dashboard.</p>
    /// This field is required.
    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
    }
    /// <p>The name or ARN for the dashboard.</p>
    pub fn set_dashboard_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.dashboard_id = input;
        self
    }
    /// <p>The name or ARN for the dashboard.</p>
    pub fn get_dashboard_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.dashboard_id
    }
    /// Consumes the builder and constructs a [`DeleteDashboardInput`](crate::operation::delete_dashboard::DeleteDashboardInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<crate::operation::delete_dashboard::DeleteDashboardInput, ::aws_smithy_types::error::operation::BuildError> {
        ::std::result::Result::Ok(crate::operation::delete_dashboard::DeleteDashboardInput {
            dashboard_id: self.dashboard_id,
        })
    }
}