#[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.
This field is required.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 name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
The name of the new resource.
This field is required.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 description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
Resource description.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
Resource description.
sourcepub fn get_description(&self) -> &Option<String>
pub fn get_description(&self) -> &Option<String>
Resource description.
If this parameter is enabled, the resource will be hidden from the address book.
If this parameter is enabled, the resource will be hidden from the address book.
If this parameter is enabled, the resource will be hidden from the address book.
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
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
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
source§impl PartialEq for CreateResourceInputBuilder
impl PartialEq for CreateResourceInputBuilder
source§fn eq(&self, other: &CreateResourceInputBuilder) -> bool
fn eq(&self, other: &CreateResourceInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CreateResourceInputBuilder
Auto Trait Implementations§
impl Freeze for CreateResourceInputBuilder
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more