#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct DeleteFacesInput {
pub collection_id: ::std::option::Option<::std::string::String>,
pub face_ids: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
}
impl DeleteFacesInput {
pub fn collection_id(&self) -> ::std::option::Option<&str> {
self.collection_id.as_deref()
}
pub fn face_ids(&self) -> &[::std::string::String] {
self.face_ids.as_deref().unwrap_or_default()
}
}
impl DeleteFacesInput {
pub fn builder() -> crate::operation::delete_faces::builders::DeleteFacesInputBuilder {
crate::operation::delete_faces::builders::DeleteFacesInputBuilder::default()
}
}
#[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 {
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
}
pub fn set_collection_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.collection_id = input;
self
}
pub fn get_collection_id(&self) -> &::std::option::Option<::std::string::String> {
&self.collection_id
}
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
}
pub fn set_face_ids(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
self.face_ids = input;
self
}
pub fn get_face_ids(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
&self.face_ids
}
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,
})
}
}