aws-sdk-imagebuilder 1.111.0

AWS SDK for EC2 Image Builder
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 DeleteImagePipelineInput {
    /// <p>The Amazon Resource Name (ARN) of the image pipeline to delete.</p>
    pub image_pipeline_arn: ::std::option::Option<::std::string::String>,
}
impl DeleteImagePipelineInput {
    /// <p>The Amazon Resource Name (ARN) of the image pipeline to delete.</p>
    pub fn image_pipeline_arn(&self) -> ::std::option::Option<&str> {
        self.image_pipeline_arn.as_deref()
    }
}
impl DeleteImagePipelineInput {
    /// Creates a new builder-style object to manufacture [`DeleteImagePipelineInput`](crate::operation::delete_image_pipeline::DeleteImagePipelineInput).
    pub fn builder() -> crate::operation::delete_image_pipeline::builders::DeleteImagePipelineInputBuilder {
        crate::operation::delete_image_pipeline::builders::DeleteImagePipelineInputBuilder::default()
    }
}

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