aws_sdk_glue/operation/batch_get_dev_endpoints/
_batch_get_dev_endpoints_input.rs1#[allow(missing_docs)] #[non_exhaustive]
4#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
5pub struct BatchGetDevEndpointsInput {
6 pub dev_endpoint_names: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
8}
9impl BatchGetDevEndpointsInput {
10 pub fn dev_endpoint_names(&self) -> &[::std::string::String] {
14 self.dev_endpoint_names.as_deref().unwrap_or_default()
15 }
16}
17impl BatchGetDevEndpointsInput {
18 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#[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 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 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 pub fn get_dev_endpoint_names(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
49 &self.dev_endpoint_names
50 }
51 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}