#[allow(missing_docs)] #[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct DeleteComponentTypeInput {
#[doc(hidden)]
pub workspace_id: std::option::Option<std::string::String>,
#[doc(hidden)]
pub component_type_id: std::option::Option<std::string::String>,
}
impl DeleteComponentTypeInput {
pub fn workspace_id(&self) -> std::option::Option<&str> {
self.workspace_id.as_deref()
}
pub fn component_type_id(&self) -> std::option::Option<&str> {
self.component_type_id.as_deref()
}
}
impl DeleteComponentTypeInput {
pub fn builder(
) -> crate::operation::delete_component_type::builders::DeleteComponentTypeInputBuilder {
crate::operation::delete_component_type::builders::DeleteComponentTypeInputBuilder::default(
)
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct DeleteComponentTypeInputBuilder {
pub(crate) workspace_id: std::option::Option<std::string::String>,
pub(crate) component_type_id: std::option::Option<std::string::String>,
}
impl DeleteComponentTypeInputBuilder {
pub fn workspace_id(mut self, input: impl Into<std::string::String>) -> Self {
self.workspace_id = 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 component_type_id(mut self, input: impl Into<std::string::String>) -> Self {
self.component_type_id = Some(input.into());
self
}
pub fn set_component_type_id(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.component_type_id = input;
self
}
pub fn build(
self,
) -> Result<
crate::operation::delete_component_type::DeleteComponentTypeInput,
aws_smithy_http::operation::error::BuildError,
> {
Ok(
crate::operation::delete_component_type::DeleteComponentTypeInput {
workspace_id: self.workspace_id,
component_type_id: self.component_type_id,
},
)
}
}