aws-sdk-deadline 1.94.0

AWS SDK for AWSDeadlineCloud
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 DeleteMonitorInput {
    /// <p>The unique identifier of the monitor to delete. This ID is returned by the <code>CreateMonitor</code> operation, and is included in the response to the <code>GetMonitor</code> operation.</p>
    pub monitor_id: ::std::option::Option<::std::string::String>,
}
impl DeleteMonitorInput {
    /// <p>The unique identifier of the monitor to delete. This ID is returned by the <code>CreateMonitor</code> operation, and is included in the response to the <code>GetMonitor</code> operation.</p>
    pub fn monitor_id(&self) -> ::std::option::Option<&str> {
        self.monitor_id.as_deref()
    }
}
impl DeleteMonitorInput {
    /// Creates a new builder-style object to manufacture [`DeleteMonitorInput`](crate::operation::delete_monitor::DeleteMonitorInput).
    pub fn builder() -> crate::operation::delete_monitor::builders::DeleteMonitorInputBuilder {
        crate::operation::delete_monitor::builders::DeleteMonitorInputBuilder::default()
    }
}

/// A builder for [`DeleteMonitorInput`](crate::operation::delete_monitor::DeleteMonitorInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DeleteMonitorInputBuilder {
    pub(crate) monitor_id: ::std::option::Option<::std::string::String>,
}
impl DeleteMonitorInputBuilder {
    /// <p>The unique identifier of the monitor to delete. This ID is returned by the <code>CreateMonitor</code> operation, and is included in the response to the <code>GetMonitor</code> operation.</p>
    /// This field is required.
    pub fn monitor_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.monitor_id = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The unique identifier of the monitor to delete. This ID is returned by the <code>CreateMonitor</code> operation, and is included in the response to the <code>GetMonitor</code> operation.</p>
    pub fn set_monitor_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.monitor_id = input;
        self
    }
    /// <p>The unique identifier of the monitor to delete. This ID is returned by the <code>CreateMonitor</code> operation, and is included in the response to the <code>GetMonitor</code> operation.</p>
    pub fn get_monitor_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.monitor_id
    }
    /// Consumes the builder and constructs a [`DeleteMonitorInput`](crate::operation::delete_monitor::DeleteMonitorInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<crate::operation::delete_monitor::DeleteMonitorInput, ::aws_smithy_types::error::operation::BuildError> {
        ::std::result::Result::Ok(crate::operation::delete_monitor::DeleteMonitorInput { monitor_id: self.monitor_id })
    }
}