aws-sdk-sagemaker 1.189.0

AWS SDK for Amazon SageMaker 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 DescribePipelineInput {
    /// <p>The name or Amazon Resource Name (ARN) of the pipeline to describe.</p>
    pub pipeline_name: ::std::option::Option<::std::string::String>,
    /// <p>The ID of the pipeline version to describe.</p>
    pub pipeline_version_id: ::std::option::Option<i64>,
}
impl DescribePipelineInput {
    /// <p>The name or Amazon Resource Name (ARN) of the pipeline to describe.</p>
    pub fn pipeline_name(&self) -> ::std::option::Option<&str> {
        self.pipeline_name.as_deref()
    }
    /// <p>The ID of the pipeline version to describe.</p>
    pub fn pipeline_version_id(&self) -> ::std::option::Option<i64> {
        self.pipeline_version_id
    }
}
impl DescribePipelineInput {
    /// Creates a new builder-style object to manufacture [`DescribePipelineInput`](crate::operation::describe_pipeline::DescribePipelineInput).
    pub fn builder() -> crate::operation::describe_pipeline::builders::DescribePipelineInputBuilder {
        crate::operation::describe_pipeline::builders::DescribePipelineInputBuilder::default()
    }
}

/// A builder for [`DescribePipelineInput`](crate::operation::describe_pipeline::DescribePipelineInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DescribePipelineInputBuilder {
    pub(crate) pipeline_name: ::std::option::Option<::std::string::String>,
    pub(crate) pipeline_version_id: ::std::option::Option<i64>,
}
impl DescribePipelineInputBuilder {
    /// <p>The name or Amazon Resource Name (ARN) of the pipeline to describe.</p>
    /// This field is required.
    pub fn pipeline_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.pipeline_name = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The name or Amazon Resource Name (ARN) of the pipeline to describe.</p>
    pub fn set_pipeline_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.pipeline_name = input;
        self
    }
    /// <p>The name or Amazon Resource Name (ARN) of the pipeline to describe.</p>
    pub fn get_pipeline_name(&self) -> &::std::option::Option<::std::string::String> {
        &self.pipeline_name
    }
    /// <p>The ID of the pipeline version to describe.</p>
    pub fn pipeline_version_id(mut self, input: i64) -> Self {
        self.pipeline_version_id = ::std::option::Option::Some(input);
        self
    }
    /// <p>The ID of the pipeline version to describe.</p>
    pub fn set_pipeline_version_id(mut self, input: ::std::option::Option<i64>) -> Self {
        self.pipeline_version_id = input;
        self
    }
    /// <p>The ID of the pipeline version to describe.</p>
    pub fn get_pipeline_version_id(&self) -> &::std::option::Option<i64> {
        &self.pipeline_version_id
    }
    /// Consumes the builder and constructs a [`DescribePipelineInput`](crate::operation::describe_pipeline::DescribePipelineInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<crate::operation::describe_pipeline::DescribePipelineInput, ::aws_smithy_types::error::operation::BuildError> {
        ::std::result::Result::Ok(crate::operation::describe_pipeline::DescribePipelineInput {
            pipeline_name: self.pipeline_name,
            pipeline_version_id: self.pipeline_version_id,
        })
    }
}