#[derive(
Debug,
Clone,
conjure_object::serde::Serialize,
conjure_object::serde::Deserialize,
PartialEq,
Eq,
PartialOrd,
Ord,
Hash
)]
#[serde(crate = "conjure_object::serde")]
#[conjure_object::private::staged_builder::staged_builder]
#[builder(crate = conjure_object::private::staged_builder, update, inline)]
pub struct RegisterInWorkspaceRequest {
#[builder(default, set(item(type = conjure_object::ResourceIdentifier)))]
#[serde(
rename = "resourceRids",
skip_serializing_if = "std::collections::BTreeSet::is_empty",
default
)]
resource_rids: std::collections::BTreeSet<conjure_object::ResourceIdentifier>,
#[serde(rename = "workspaceRid")]
workspace_rid: super::super::api::rids::WorkspaceRid,
}
impl RegisterInWorkspaceRequest {
#[inline]
pub fn new(workspace_rid: super::super::api::rids::WorkspaceRid) -> Self {
Self::builder().workspace_rid(workspace_rid).build()
}
#[inline]
pub fn resource_rids(
&self,
) -> &std::collections::BTreeSet<conjure_object::ResourceIdentifier> {
&self.resource_rids
}
#[inline]
pub fn workspace_rid(&self) -> &super::super::api::rids::WorkspaceRid {
&self.workspace_rid
}
}