aws-sdk-cloudwatchomni 1.2.0

AWS SDK for CloudWatch Omni
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.

/// The request for deleting an integration.
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct DeleteIntegrationInput {
    /// Identifies the integration to delete — exactly one of integrationId, integrationArn, or integrationName.
    pub identifier: ::std::option::Option<crate::types::IntegrationIdentifier>,
}
impl DeleteIntegrationInput {
    /// Identifies the integration to delete — exactly one of integrationId, integrationArn, or integrationName.
    pub fn identifier(&self) -> ::std::option::Option<&crate::types::IntegrationIdentifier> {
        self.identifier.as_ref()
    }
}
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) identifier: ::std::option::Option<crate::types::IntegrationIdentifier>,
}
impl DeleteIntegrationInputBuilder {
    /// Identifies the integration to delete — exactly one of integrationId, integrationArn, or integrationName.
    /// This field is required.
    pub fn identifier(mut self, input: crate::types::IntegrationIdentifier) -> Self {
        self.identifier = ::std::option::Option::Some(input);
        self
    }
    /// Identifies the integration to delete — exactly one of integrationId, integrationArn, or integrationName.
    pub fn set_identifier(mut self, input: ::std::option::Option<crate::types::IntegrationIdentifier>) -> Self {
        self.identifier = input;
        self
    }
    /// Identifies the integration to delete — exactly one of integrationId, integrationArn, or integrationName.
    pub fn get_identifier(&self) -> &::std::option::Option<crate::types::IntegrationIdentifier> {
        &self.identifier
    }
    /// 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 { identifier: self.identifier })
    }
}