aws_sdk_datapipeline/operation/describe_pipelines/
_describe_pipelines_input.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2
3/// <p>Contains the parameters for DescribePipelines.</p>
4#[non_exhaustive]
5#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
6pub struct DescribePipelinesInput {
7    /// <p>The IDs of the pipelines to describe. You can pass as many as 25 identifiers in a single call. To obtain pipeline IDs, call <code>ListPipelines</code>.</p>
8    pub pipeline_ids: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
9}
10impl DescribePipelinesInput {
11    /// <p>The IDs of the pipelines to describe. You can pass as many as 25 identifiers in a single call. To obtain pipeline IDs, call <code>ListPipelines</code>.</p>
12    ///
13    /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.pipeline_ids.is_none()`.
14    pub fn pipeline_ids(&self) -> &[::std::string::String] {
15        self.pipeline_ids.as_deref().unwrap_or_default()
16    }
17}
18impl DescribePipelinesInput {
19    /// Creates a new builder-style object to manufacture [`DescribePipelinesInput`](crate::operation::describe_pipelines::DescribePipelinesInput).
20    pub fn builder() -> crate::operation::describe_pipelines::builders::DescribePipelinesInputBuilder {
21        crate::operation::describe_pipelines::builders::DescribePipelinesInputBuilder::default()
22    }
23}
24
25/// A builder for [`DescribePipelinesInput`](crate::operation::describe_pipelines::DescribePipelinesInput).
26#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
27#[non_exhaustive]
28pub struct DescribePipelinesInputBuilder {
29    pub(crate) pipeline_ids: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
30}
31impl DescribePipelinesInputBuilder {
32    /// Appends an item to `pipeline_ids`.
33    ///
34    /// To override the contents of this collection use [`set_pipeline_ids`](Self::set_pipeline_ids).
35    ///
36    /// <p>The IDs of the pipelines to describe. You can pass as many as 25 identifiers in a single call. To obtain pipeline IDs, call <code>ListPipelines</code>.</p>
37    pub fn pipeline_ids(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
38        let mut v = self.pipeline_ids.unwrap_or_default();
39        v.push(input.into());
40        self.pipeline_ids = ::std::option::Option::Some(v);
41        self
42    }
43    /// <p>The IDs of the pipelines to describe. You can pass as many as 25 identifiers in a single call. To obtain pipeline IDs, call <code>ListPipelines</code>.</p>
44    pub fn set_pipeline_ids(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
45        self.pipeline_ids = input;
46        self
47    }
48    /// <p>The IDs of the pipelines to describe. You can pass as many as 25 identifiers in a single call. To obtain pipeline IDs, call <code>ListPipelines</code>.</p>
49    pub fn get_pipeline_ids(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
50        &self.pipeline_ids
51    }
52    /// Consumes the builder and constructs a [`DescribePipelinesInput`](crate::operation::describe_pipelines::DescribePipelinesInput).
53    pub fn build(
54        self,
55    ) -> ::std::result::Result<crate::operation::describe_pipelines::DescribePipelinesInput, ::aws_smithy_types::error::operation::BuildError> {
56        ::std::result::Result::Ok(crate::operation::describe_pipelines::DescribePipelinesInput {
57            pipeline_ids: self.pipeline_ids,
58        })
59    }
60}