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>Contains the configuration parameters for a PUT Object Tagging operation. S3 Batch Operations passes every object to the underlying <code>PutObjectTagging</code> API operation. For more information about the parameters for this operation, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/RESTObjectPUTtagging.html">PutObjectTagging</a>.</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct S3SetObjectTaggingOperation {
    /// <p></p>
    pub tag_set: ::std::option::Option<::std::vec::Vec<crate::types::S3Tag>>,
}
impl S3SetObjectTaggingOperation {
    /// <p></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 `.tag_set.is_none()`.
    pub fn tag_set(&self) -> &[crate::types::S3Tag] {
        self.tag_set.as_deref().unwrap_or_default()
    }
}
impl S3SetObjectTaggingOperation {
    /// Creates a new builder-style object to manufacture [`S3SetObjectTaggingOperation`](crate::types::S3SetObjectTaggingOperation).
    pub fn builder() -> crate::types::builders::S3SetObjectTaggingOperationBuilder {
        crate::types::builders::S3SetObjectTaggingOperationBuilder::default()
    }
}

/// A builder for [`S3SetObjectTaggingOperation`](crate::types::S3SetObjectTaggingOperation).
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct S3SetObjectTaggingOperationBuilder {
    pub(crate) tag_set: ::std::option::Option<::std::vec::Vec<crate::types::S3Tag>>,
}
impl S3SetObjectTaggingOperationBuilder {
    /// Appends an item to `tag_set`.
    ///
    /// To override the contents of this collection use [`set_tag_set`](Self::set_tag_set).
    ///
    /// <p></p>
    pub fn tag_set(mut self, input: crate::types::S3Tag) -> Self {
        let mut v = self.tag_set.unwrap_or_default();
        v.push(input);
        self.tag_set = ::std::option::Option::Some(v);
        self
    }
    /// <p></p>
    pub fn set_tag_set(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::S3Tag>>) -> Self {
        self.tag_set = input;
        self
    }
    /// <p></p>
    pub fn get_tag_set(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::S3Tag>> {
        &self.tag_set
    }
    /// Consumes the builder and constructs a [`S3SetObjectTaggingOperation`](crate::types::S3SetObjectTaggingOperation).
    pub fn build(self) -> crate::types::S3SetObjectTaggingOperation {
        crate::types::S3SetObjectTaggingOperation { tag_set: self.tag_set }
    }
}