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
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.

/// <p>A complex type that contains zero or more <code>Tag</code> elements.</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct TagKeys {
    /// <p>A complex type that contains <code>Tag</code> key elements.</p>
    pub items: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
}
impl TagKeys {
    /// <p>A complex type that contains <code>Tag</code> key elements.</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 `.items.is_none()`.
    pub fn items(&self) -> &[::std::string::String] {
        self.items.as_deref().unwrap_or_default()
    }
}
impl TagKeys {
    /// Creates a new builder-style object to manufacture [`TagKeys`](crate::types::TagKeys).
    pub fn builder() -> crate::types::builders::TagKeysBuilder {
        crate::types::builders::TagKeysBuilder::default()
    }
}

/// A builder for [`TagKeys`](crate::types::TagKeys).
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct TagKeysBuilder {
    pub(crate) items: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
}
impl TagKeysBuilder {
    /// Appends an item to `items`.
    ///
    /// To override the contents of this collection use [`set_items`](Self::set_items).
    ///
    /// <p>A complex type that contains <code>Tag</code> key elements.</p>
    pub fn items(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        let mut v = self.items.unwrap_or_default();
        v.push(input.into());
        self.items = ::std::option::Option::Some(v);
        self
    }
    /// <p>A complex type that contains <code>Tag</code> key elements.</p>
    pub fn set_items(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
        self.items = input;
        self
    }
    /// <p>A complex type that contains <code>Tag</code> key elements.</p>
    pub fn get_items(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
        &self.items
    }
    /// Consumes the builder and constructs a [`TagKeys`](crate::types::TagKeys).
    pub fn build(self) -> crate::types::TagKeys {
        crate::types::TagKeys { items: self.items }
    }
}