#[non_exhaustive]pub struct UpdateResourceInputBuilder { /* private fields */ }
Expand description
A builder for UpdateResourceInput
.
Implementations§
source§impl UpdateResourceInputBuilder
impl UpdateResourceInputBuilder
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 updated.
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 updated.
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 updated.
sourcepub fn resource_id(self, input: impl Into<String>) -> Self
pub fn resource_id(self, input: impl Into<String>) -> Self
The identifier of the resource to be updated.
The identifier can accept ResourceId, Resourcename, or email. The following identity formats are available:
-
Resource ID: r-0123456789a0123456789b0123456789
-
Email address: resource@domain.tld
-
Resource name: resource
sourcepub fn set_resource_id(self, input: Option<String>) -> Self
pub fn set_resource_id(self, input: Option<String>) -> Self
The identifier of the resource to be updated.
The identifier can accept ResourceId, Resourcename, or email. The following identity formats are available:
-
Resource ID: r-0123456789a0123456789b0123456789
-
Email address: resource@domain.tld
-
Resource name: resource
sourcepub fn get_resource_id(&self) -> &Option<String>
pub fn get_resource_id(&self) -> &Option<String>
The identifier of the resource to be updated.
The identifier can accept ResourceId, Resourcename, or email. The following identity formats are available:
-
Resource ID: r-0123456789a0123456789b0123456789
-
Email address: resource@domain.tld
-
Resource name: resource
sourcepub fn booking_options(self, input: BookingOptions) -> Self
pub fn booking_options(self, input: BookingOptions) -> Self
The resource's booking options to be updated.
sourcepub fn set_booking_options(self, input: Option<BookingOptions>) -> Self
pub fn set_booking_options(self, input: Option<BookingOptions>) -> Self
The resource's booking options to be updated.
sourcepub fn get_booking_options(&self) -> &Option<BookingOptions>
pub fn get_booking_options(&self) -> &Option<BookingOptions>
The resource's booking options to be updated.
sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
Updates the resource description.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
Updates the resource description.
sourcepub fn get_description(&self) -> &Option<String>
pub fn get_description(&self) -> &Option<String>
Updates the resource description.
sourcepub fn type(self, input: ResourceType) -> Self
pub fn type(self, input: ResourceType) -> Self
Updates the resource type.
sourcepub fn set_type(self, input: Option<ResourceType>) -> Self
pub fn set_type(self, input: Option<ResourceType>) -> Self
Updates the resource type.
sourcepub fn get_type(&self) -> &Option<ResourceType>
pub fn get_type(&self) -> &Option<ResourceType>
Updates the resource type.
If enabled, the resource is hidden from the global address list.
If enabled, the resource is hidden from the global address list.
If enabled, the resource is hidden from the global address list.
sourcepub fn build(self) -> Result<UpdateResourceInput, BuildError>
pub fn build(self) -> Result<UpdateResourceInput, BuildError>
Consumes the builder and constructs a UpdateResourceInput
.
source§impl UpdateResourceInputBuilder
impl UpdateResourceInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<UpdateResourceOutput, SdkError<UpdateResourceError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<UpdateResourceOutput, SdkError<UpdateResourceError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for UpdateResourceInputBuilder
impl Clone for UpdateResourceInputBuilder
source§fn clone(&self) -> UpdateResourceInputBuilder
fn clone(&self) -> UpdateResourceInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for UpdateResourceInputBuilder
impl Debug for UpdateResourceInputBuilder
source§impl Default for UpdateResourceInputBuilder
impl Default for UpdateResourceInputBuilder
source§fn default() -> UpdateResourceInputBuilder
fn default() -> UpdateResourceInputBuilder
source§impl PartialEq for UpdateResourceInputBuilder
impl PartialEq for UpdateResourceInputBuilder
source§fn eq(&self, other: &UpdateResourceInputBuilder) -> bool
fn eq(&self, other: &UpdateResourceInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for UpdateResourceInputBuilder
Auto Trait Implementations§
impl Freeze for UpdateResourceInputBuilder
impl RefUnwindSafe for UpdateResourceInputBuilder
impl Send for UpdateResourceInputBuilder
impl Sync for UpdateResourceInputBuilder
impl Unpin for UpdateResourceInputBuilder
impl UnwindSafe for UpdateResourceInputBuilder
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