#[allow(missing_docs)] #[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct GetEntityInput {
#[doc(hidden)]
pub workspace_id: std::option::Option<std::string::String>,
#[doc(hidden)]
pub entity_id: std::option::Option<std::string::String>,
}
impl GetEntityInput {
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()
}
}
impl GetEntityInput {
pub fn builder() -> crate::operation::get_entity::builders::GetEntityInputBuilder {
crate::operation::get_entity::builders::GetEntityInputBuilder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct GetEntityInputBuilder {
pub(crate) workspace_id: std::option::Option<std::string::String>,
pub(crate) entity_id: std::option::Option<std::string::String>,
}
impl GetEntityInputBuilder {
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 entity_id(mut self, input: impl Into<std::string::String>) -> Self {
self.entity_id = 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 build(
self,
) -> Result<
crate::operation::get_entity::GetEntityInput,
aws_smithy_http::operation::error::BuildError,
> {
Ok(crate::operation::get_entity::GetEntityInput {
workspace_id: self.workspace_id,
entity_id: self.entity_id,
})
}
}