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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
// 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 DescribeExclusionsInput {
/// <p>The list of ARNs that specify the exclusions that you want to describe.</p>
pub exclusion_arns: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
/// <p>The locale into which you want to translate the exclusion's title, description, and recommendation.</p>
pub locale: ::std::option::Option<crate::types::Locale>,
}
impl DescribeExclusionsInput {
/// <p>The list of ARNs that specify the exclusions that you want to describe.</p>
///
/// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.exclusion_arns.is_none()`.
pub fn exclusion_arns(&self) -> &[::std::string::String] {
self.exclusion_arns.as_deref().unwrap_or_default()
}
/// <p>The locale into which you want to translate the exclusion's title, description, and recommendation.</p>
pub fn locale(&self) -> ::std::option::Option<&crate::types::Locale> {
self.locale.as_ref()
}
}
impl DescribeExclusionsInput {
/// Creates a new builder-style object to manufacture [`DescribeExclusionsInput`](crate::operation::describe_exclusions::DescribeExclusionsInput).
pub fn builder() -> crate::operation::describe_exclusions::builders::DescribeExclusionsInputBuilder {
crate::operation::describe_exclusions::builders::DescribeExclusionsInputBuilder::default()
}
}
/// A builder for [`DescribeExclusionsInput`](crate::operation::describe_exclusions::DescribeExclusionsInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DescribeExclusionsInputBuilder {
pub(crate) exclusion_arns: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
pub(crate) locale: ::std::option::Option<crate::types::Locale>,
}
impl DescribeExclusionsInputBuilder {
/// Appends an item to `exclusion_arns`.
///
/// To override the contents of this collection use [`set_exclusion_arns`](Self::set_exclusion_arns).
///
/// <p>The list of ARNs that specify the exclusions that you want to describe.</p>
pub fn exclusion_arns(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
let mut v = self.exclusion_arns.unwrap_or_default();
v.push(input.into());
self.exclusion_arns = ::std::option::Option::Some(v);
self
}
/// <p>The list of ARNs that specify the exclusions that you want to describe.</p>
pub fn set_exclusion_arns(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
self.exclusion_arns = input;
self
}
/// <p>The list of ARNs that specify the exclusions that you want to describe.</p>
pub fn get_exclusion_arns(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
&self.exclusion_arns
}
/// <p>The locale into which you want to translate the exclusion's title, description, and recommendation.</p>
pub fn locale(mut self, input: crate::types::Locale) -> Self {
self.locale = ::std::option::Option::Some(input);
self
}
/// <p>The locale into which you want to translate the exclusion's title, description, and recommendation.</p>
pub fn set_locale(mut self, input: ::std::option::Option<crate::types::Locale>) -> Self {
self.locale = input;
self
}
/// <p>The locale into which you want to translate the exclusion's title, description, and recommendation.</p>
pub fn get_locale(&self) -> &::std::option::Option<crate::types::Locale> {
&self.locale
}
/// Consumes the builder and constructs a [`DescribeExclusionsInput`](crate::operation::describe_exclusions::DescribeExclusionsInput).
pub fn build(
self,
) -> ::std::result::Result<crate::operation::describe_exclusions::DescribeExclusionsInput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::describe_exclusions::DescribeExclusionsInput {
exclusion_arns: self.exclusion_arns,
locale: self.locale,
})
}
}