aws-sdk-observabilityadmin 1.54.0

AWS SDK for CloudWatch Observability Admin Service
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 DeleteTelemetryPipelineInput {
    /// <p>The ARN of the telemetry pipeline to delete.</p>
    pub pipeline_identifier: ::std::option::Option<::std::string::String>,
}
impl DeleteTelemetryPipelineInput {
    /// <p>The ARN of the telemetry pipeline to delete.</p>
    pub fn pipeline_identifier(&self) -> ::std::option::Option<&str> {
        self.pipeline_identifier.as_deref()
    }
}
impl DeleteTelemetryPipelineInput {
    /// Creates a new builder-style object to manufacture [`DeleteTelemetryPipelineInput`](crate::operation::delete_telemetry_pipeline::DeleteTelemetryPipelineInput).
    pub fn builder() -> crate::operation::delete_telemetry_pipeline::builders::DeleteTelemetryPipelineInputBuilder {
        crate::operation::delete_telemetry_pipeline::builders::DeleteTelemetryPipelineInputBuilder::default()
    }
}

/// A builder for [`DeleteTelemetryPipelineInput`](crate::operation::delete_telemetry_pipeline::DeleteTelemetryPipelineInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DeleteTelemetryPipelineInputBuilder {
    pub(crate) pipeline_identifier: ::std::option::Option<::std::string::String>,
}
impl DeleteTelemetryPipelineInputBuilder {
    /// <p>The ARN of the telemetry pipeline to delete.</p>
    /// This field is required.
    pub fn pipeline_identifier(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.pipeline_identifier = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The ARN of the telemetry pipeline to delete.</p>
    pub fn set_pipeline_identifier(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.pipeline_identifier = input;
        self
    }
    /// <p>The ARN of the telemetry pipeline to delete.</p>
    pub fn get_pipeline_identifier(&self) -> &::std::option::Option<::std::string::String> {
        &self.pipeline_identifier
    }
    /// Consumes the builder and constructs a [`DeleteTelemetryPipelineInput`](crate::operation::delete_telemetry_pipeline::DeleteTelemetryPipelineInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<
        crate::operation::delete_telemetry_pipeline::DeleteTelemetryPipelineInput,
        ::aws_smithy_types::error::operation::BuildError,
    > {
        ::std::result::Result::Ok(crate::operation::delete_telemetry_pipeline::DeleteTelemetryPipelineInput {
            pipeline_identifier: self.pipeline_identifier,
        })
    }
}