#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct DeleteEntityInput {
pub workspace_id: ::std::option::Option<::std::string::String>,
pub entity_id: ::std::option::Option<::std::string::String>,
pub is_recursive: ::std::option::Option<bool>,
}
impl DeleteEntityInput {
pub fn workspace_id(&self) -> ::std::option::Option<&str> {
self.workspace_id.as_deref()
}
pub fn entity_id(&self) -> ::std::option::Option<&str> {
self.entity_id.as_deref()
}
pub fn is_recursive(&self) -> ::std::option::Option<bool> {
self.is_recursive
}
}
impl DeleteEntityInput {
pub fn builder() -> crate::operation::delete_entity::builders::DeleteEntityInputBuilder {
crate::operation::delete_entity::builders::DeleteEntityInputBuilder::default()
}
}
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct DeleteEntityInputBuilder {
pub(crate) workspace_id: ::std::option::Option<::std::string::String>,
pub(crate) entity_id: ::std::option::Option<::std::string::String>,
pub(crate) is_recursive: ::std::option::Option<bool>,
}
impl DeleteEntityInputBuilder {
pub fn workspace_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.workspace_id = ::std::option::Option::Some(input.into());
self
}
pub fn set_workspace_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.workspace_id = input;
self
}
pub fn get_workspace_id(&self) -> &::std::option::Option<::std::string::String> {
&self.workspace_id
}
pub fn entity_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.entity_id = ::std::option::Option::Some(input.into());
self
}
pub fn set_entity_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.entity_id = input;
self
}
pub fn get_entity_id(&self) -> &::std::option::Option<::std::string::String> {
&self.entity_id
}
pub fn is_recursive(mut self, input: bool) -> Self {
self.is_recursive = ::std::option::Option::Some(input);
self
}
pub fn set_is_recursive(mut self, input: ::std::option::Option<bool>) -> Self {
self.is_recursive = input;
self
}
pub fn get_is_recursive(&self) -> &::std::option::Option<bool> {
&self.is_recursive
}
pub fn build(
self,
) -> ::std::result::Result<crate::operation::delete_entity::DeleteEntityInput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::delete_entity::DeleteEntityInput {
workspace_id: self.workspace_id,
entity_id: self.entity_id,
is_recursive: self.is_recursive,
})
}
}