Struct aws_sdk_workdocs::operation::create_custom_metadata::builders::CreateCustomMetadataFluentBuilder
source · pub struct CreateCustomMetadataFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to CreateCustomMetadata
.
Adds one or more custom properties to the specified resource (a folder, document, or version).
Implementations§
source§impl CreateCustomMetadataFluentBuilder
impl CreateCustomMetadataFluentBuilder
sourcepub fn as_input(&self) -> &CreateCustomMetadataInputBuilder
pub fn as_input(&self) -> &CreateCustomMetadataInputBuilder
Access the CreateCustomMetadata as a reference.
sourcepub async fn send(
self,
) -> Result<CreateCustomMetadataOutput, SdkError<CreateCustomMetadataError, HttpResponse>>
pub async fn send( self, ) -> Result<CreateCustomMetadataOutput, SdkError<CreateCustomMetadataError, HttpResponse>>
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn customize(
self,
) -> CustomizableOperation<CreateCustomMetadataOutput, CreateCustomMetadataError, Self>
pub fn customize( self, ) -> CustomizableOperation<CreateCustomMetadataOutput, CreateCustomMetadataError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn authentication_token(self, input: impl Into<String>) -> Self
pub fn authentication_token(self, input: impl Into<String>) -> Self
Amazon WorkDocs authentication token. Not required when using Amazon Web Services administrator credentials to access the API.
sourcepub fn set_authentication_token(self, input: Option<String>) -> Self
pub fn set_authentication_token(self, input: Option<String>) -> Self
Amazon WorkDocs authentication token. Not required when using Amazon Web Services administrator credentials to access the API.
sourcepub fn get_authentication_token(&self) -> &Option<String>
pub fn get_authentication_token(&self) -> &Option<String>
Amazon WorkDocs authentication token. Not required when using Amazon Web Services administrator credentials to access the API.
sourcepub fn resource_id(self, input: impl Into<String>) -> Self
pub fn resource_id(self, input: impl Into<String>) -> Self
The ID of the resource.
sourcepub fn set_resource_id(self, input: Option<String>) -> Self
pub fn set_resource_id(self, input: Option<String>) -> Self
The ID of the resource.
sourcepub fn get_resource_id(&self) -> &Option<String>
pub fn get_resource_id(&self) -> &Option<String>
The ID of the resource.
sourcepub fn version_id(self, input: impl Into<String>) -> Self
pub fn version_id(self, input: impl Into<String>) -> Self
The ID of the version, if the custom metadata is being added to a document version.
sourcepub fn set_version_id(self, input: Option<String>) -> Self
pub fn set_version_id(self, input: Option<String>) -> Self
The ID of the version, if the custom metadata is being added to a document version.
sourcepub fn get_version_id(&self) -> &Option<String>
pub fn get_version_id(&self) -> &Option<String>
The ID of the version, if the custom metadata is being added to a document version.
sourcepub fn custom_metadata(self, k: impl Into<String>, v: impl Into<String>) -> Self
pub fn custom_metadata(self, k: impl Into<String>, v: impl Into<String>) -> Self
Adds a key-value pair to CustomMetadata
.
To override the contents of this collection use set_custom_metadata
.
Custom metadata in the form of name-value pairs.
Trait Implementations§
source§impl Clone for CreateCustomMetadataFluentBuilder
impl Clone for CreateCustomMetadataFluentBuilder
source§fn clone(&self) -> CreateCustomMetadataFluentBuilder
fn clone(&self) -> CreateCustomMetadataFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreAuto Trait Implementations§
impl Freeze for CreateCustomMetadataFluentBuilder
impl !RefUnwindSafe for CreateCustomMetadataFluentBuilder
impl Send for CreateCustomMetadataFluentBuilder
impl Sync for CreateCustomMetadataFluentBuilder
impl Unpin for CreateCustomMetadataFluentBuilder
impl !UnwindSafe for CreateCustomMetadataFluentBuilder
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)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