aws_sdk_glue/operation/batch_get_dev_endpoints/
_batch_get_dev_endpoints_input.rs

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