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
// 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 DeleteFacesInput {
    /// <p>Collection from which to remove the specific faces.</p>
    pub collection_id: ::std::option::Option<::std::string::String>,
    /// <p>An array of face IDs to delete.</p>
    pub face_ids: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
}
impl DeleteFacesInput {
    /// <p>Collection from which to remove the specific faces.</p>
    pub fn collection_id(&self) -> ::std::option::Option<&str> {
        self.collection_id.as_deref()
    }
    /// <p>An array of face IDs to delete.</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 `.face_ids.is_none()`.
    pub fn face_ids(&self) -> &[::std::string::String] {
        self.face_ids.as_deref().unwrap_or_default()
    }
}
impl DeleteFacesInput {
    /// Creates a new builder-style object to manufacture [`DeleteFacesInput`](crate::operation::delete_faces::DeleteFacesInput).
    pub fn builder() -> crate::operation::delete_faces::builders::DeleteFacesInputBuilder {
        crate::operation::delete_faces::builders::DeleteFacesInputBuilder::default()
    }
}

/// A builder for [`DeleteFacesInput`](crate::operation::delete_faces::DeleteFacesInput).
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct DeleteFacesInputBuilder {
    pub(crate) collection_id: ::std::option::Option<::std::string::String>,
    pub(crate) face_ids: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
}
impl DeleteFacesInputBuilder {
    /// <p>Collection from which to remove the specific faces.</p>
    /// This field is required.
    pub fn collection_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.collection_id = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>Collection from which to remove the specific faces.</p>
    pub fn set_collection_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.collection_id = input;
        self
    }
    /// <p>Collection from which to remove the specific faces.</p>
    pub fn get_collection_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.collection_id
    }
    /// Appends an item to `face_ids`.
    ///
    /// To override the contents of this collection use [`set_face_ids`](Self::set_face_ids).
    ///
    /// <p>An array of face IDs to delete.</p>
    pub fn face_ids(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        let mut v = self.face_ids.unwrap_or_default();
        v.push(input.into());
        self.face_ids = ::std::option::Option::Some(v);
        self
    }
    /// <p>An array of face IDs to delete.</p>
    pub fn set_face_ids(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
        self.face_ids = input;
        self
    }
    /// <p>An array of face IDs to delete.</p>
    pub fn get_face_ids(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
        &self.face_ids
    }
    /// Consumes the builder and constructs a [`DeleteFacesInput`](crate::operation::delete_faces::DeleteFacesInput).
    pub fn build(self) -> ::std::result::Result<crate::operation::delete_faces::DeleteFacesInput, ::aws_smithy_types::error::operation::BuildError> {
        ::std::result::Result::Ok(crate::operation::delete_faces::DeleteFacesInput {
            collection_id: self.collection_id,
            face_ids: self.face_ids,
        })
    }
}