#[non_exhaustive]pub struct CreateResourceInputBuilder { /* private fields */ }Expand description
A builder for CreateResourceInput.
Implementations§
source§impl CreateResourceInputBuilder
impl CreateResourceInputBuilder
sourcepub fn organization_id(self, input: impl Into<String>) -> Self
pub fn organization_id(self, input: impl Into<String>) -> Self
The identifier associated with the organization for which the resource is created.
sourcepub fn set_organization_id(self, input: Option<String>) -> Self
pub fn set_organization_id(self, input: Option<String>) -> Self
The identifier associated with the organization for which the resource is created.
sourcepub fn type(self, input: ResourceType) -> Self
pub fn type(self, input: ResourceType) -> Self
The type of the new resource. The available types are equipment and room.
sourcepub fn set_type(self, input: Option<ResourceType>) -> Self
pub fn set_type(self, input: Option<ResourceType>) -> Self
The type of the new resource. The available types are equipment and room.
sourcepub fn build(self) -> Result<CreateResourceInput, BuildError>
pub fn build(self) -> Result<CreateResourceInput, BuildError>
Consumes the builder and constructs a CreateResourceInput.
Trait Implementations§
source§impl Clone for CreateResourceInputBuilder
impl Clone for CreateResourceInputBuilder
source§fn clone(&self) -> CreateResourceInputBuilder
fn clone(&self) -> CreateResourceInputBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for CreateResourceInputBuilder
impl Debug for CreateResourceInputBuilder
source§impl Default for CreateResourceInputBuilder
impl Default for CreateResourceInputBuilder
source§fn default() -> CreateResourceInputBuilder
fn default() -> CreateResourceInputBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq<CreateResourceInputBuilder> for CreateResourceInputBuilder
impl PartialEq<CreateResourceInputBuilder> for CreateResourceInputBuilder
source§fn eq(&self, other: &CreateResourceInputBuilder) -> bool
fn eq(&self, other: &CreateResourceInputBuilder) -> bool
This method tests for
self and other values to be equal, and is used
by ==.