aws-sdk-cloudwatchlogs 1.127.0

AWS SDK for Amazon CloudWatch Logs
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 DeleteIntegrationInput {
    /// <p>The name of the integration to delete. To find the name of your integration, use <a href="https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_ListIntegrations.html">ListIntegrations</a>.</p>
    pub integration_name: ::std::option::Option<::std::string::String>,
    /// <p>Specify <code>true</code> to force the deletion of the integration even if vended logs dashboards currently exist.</p>
    /// <p>The default is <code>false</code>.</p>
    pub force: ::std::option::Option<bool>,
}
impl DeleteIntegrationInput {
    /// <p>The name of the integration to delete. To find the name of your integration, use <a href="https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_ListIntegrations.html">ListIntegrations</a>.</p>
    pub fn integration_name(&self) -> ::std::option::Option<&str> {
        self.integration_name.as_deref()
    }
    /// <p>Specify <code>true</code> to force the deletion of the integration even if vended logs dashboards currently exist.</p>
    /// <p>The default is <code>false</code>.</p>
    pub fn force(&self) -> ::std::option::Option<bool> {
        self.force
    }
}
impl DeleteIntegrationInput {
    /// Creates a new builder-style object to manufacture [`DeleteIntegrationInput`](crate::operation::delete_integration::DeleteIntegrationInput).
    pub fn builder() -> crate::operation::delete_integration::builders::DeleteIntegrationInputBuilder {
        crate::operation::delete_integration::builders::DeleteIntegrationInputBuilder::default()
    }
}

/// A builder for [`DeleteIntegrationInput`](crate::operation::delete_integration::DeleteIntegrationInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DeleteIntegrationInputBuilder {
    pub(crate) integration_name: ::std::option::Option<::std::string::String>,
    pub(crate) force: ::std::option::Option<bool>,
}
impl DeleteIntegrationInputBuilder {
    /// <p>The name of the integration to delete. To find the name of your integration, use <a href="https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_ListIntegrations.html">ListIntegrations</a>.</p>
    /// This field is required.
    pub fn integration_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.integration_name = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The name of the integration to delete. To find the name of your integration, use <a href="https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_ListIntegrations.html">ListIntegrations</a>.</p>
    pub fn set_integration_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.integration_name = input;
        self
    }
    /// <p>The name of the integration to delete. To find the name of your integration, use <a href="https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_ListIntegrations.html">ListIntegrations</a>.</p>
    pub fn get_integration_name(&self) -> &::std::option::Option<::std::string::String> {
        &self.integration_name
    }
    /// <p>Specify <code>true</code> to force the deletion of the integration even if vended logs dashboards currently exist.</p>
    /// <p>The default is <code>false</code>.</p>
    pub fn force(mut self, input: bool) -> Self {
        self.force = ::std::option::Option::Some(input);
        self
    }
    /// <p>Specify <code>true</code> to force the deletion of the integration even if vended logs dashboards currently exist.</p>
    /// <p>The default is <code>false</code>.</p>
    pub fn set_force(mut self, input: ::std::option::Option<bool>) -> Self {
        self.force = input;
        self
    }
    /// <p>Specify <code>true</code> to force the deletion of the integration even if vended logs dashboards currently exist.</p>
    /// <p>The default is <code>false</code>.</p>
    pub fn get_force(&self) -> &::std::option::Option<bool> {
        &self.force
    }
    /// Consumes the builder and constructs a [`DeleteIntegrationInput`](crate::operation::delete_integration::DeleteIntegrationInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<crate::operation::delete_integration::DeleteIntegrationInput, ::aws_smithy_types::error::operation::BuildError> {
        ::std::result::Result::Ok(crate::operation::delete_integration::DeleteIntegrationInput {
            integration_name: self.integration_name,
            force: self.force,
        })
    }
}