1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.

/// <p>Represents the input of an <code>UpdatePipeline</code> action.</p>
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct UpdatePipelineInput {
    /// <p>The name of the pipeline to be updated.</p>
    #[doc(hidden)]
    pub pipeline: std::option::Option<crate::types::PipelineDeclaration>,
}
impl UpdatePipelineInput {
    /// <p>The name of the pipeline to be updated.</p>
    pub fn pipeline(&self) -> std::option::Option<&crate::types::PipelineDeclaration> {
        self.pipeline.as_ref()
    }
}
impl UpdatePipelineInput {
    /// Creates a new builder-style object to manufacture [`UpdatePipelineInput`](crate::operation::update_pipeline::UpdatePipelineInput).
    pub fn builder() -> crate::operation::update_pipeline::builders::UpdatePipelineInputBuilder {
        crate::operation::update_pipeline::builders::UpdatePipelineInputBuilder::default()
    }
}

/// A builder for [`UpdatePipelineInput`](crate::operation::update_pipeline::UpdatePipelineInput).
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct UpdatePipelineInputBuilder {
    pub(crate) pipeline: std::option::Option<crate::types::PipelineDeclaration>,
}
impl UpdatePipelineInputBuilder {
    /// <p>The name of the pipeline to be updated.</p>
    pub fn pipeline(mut self, input: crate::types::PipelineDeclaration) -> Self {
        self.pipeline = Some(input);
        self
    }
    /// <p>The name of the pipeline to be updated.</p>
    pub fn set_pipeline(
        mut self,
        input: std::option::Option<crate::types::PipelineDeclaration>,
    ) -> Self {
        self.pipeline = input;
        self
    }
    /// Consumes the builder and constructs a [`UpdatePipelineInput`](crate::operation::update_pipeline::UpdatePipelineInput).
    pub fn build(
        self,
    ) -> Result<
        crate::operation::update_pipeline::UpdatePipelineInput,
        aws_smithy_http::operation::error::BuildError,
    > {
        Ok(crate::operation::update_pipeline::UpdatePipelineInput {
            pipeline: self.pipeline,
        })
    }
}