#[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 get_organization_id(&self) -> &Option<String>
pub fn get_organization_id(&self) -> &Option<String>
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 get_type(&self) -> &Option<ResourceType>
pub fn get_type(&self) -> &Option<ResourceType>
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.
source§impl CreateResourceInputBuilder
impl CreateResourceInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<CreateResourceOutput, SdkError<CreateResourceError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<CreateResourceOutput, SdkError<CreateResourceError, HttpResponse>>
Sends a request with this input using the given client.
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 ==.impl StructuralPartialEq for CreateResourceInputBuilder
Auto Trait Implementations§
impl RefUnwindSafe for CreateResourceInputBuilder
impl Send for CreateResourceInputBuilder
impl Sync for CreateResourceInputBuilder
impl Unpin for CreateResourceInputBuilder
impl UnwindSafe for CreateResourceInputBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more