pub struct PutLabelFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to PutLabel
.
Creates or updates label. A label classifies an event as fraudulent or legitimate. Labels are associated with event types and used to train supervised machine learning models in Amazon Fraud Detector.
Implementations§
source§impl PutLabelFluentBuilder
impl PutLabelFluentBuilder
sourcepub fn as_input(&self) -> &PutLabelInputBuilder
pub fn as_input(&self) -> &PutLabelInputBuilder
Access the PutLabel as a reference.
sourcepub async fn send(
self
) -> Result<PutLabelOutput, SdkError<PutLabelError, HttpResponse>>
pub async fn send( self ) -> Result<PutLabelOutput, SdkError<PutLabelError, 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<PutLabelOutput, PutLabelError, Self>
pub fn customize( self ) -> CustomizableOperation<PutLabelOutput, PutLabelError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
The label description.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
The label description.
sourcepub fn get_description(&self) -> &Option<String>
pub fn get_description(&self) -> &Option<String>
The label description.
Appends an item to tags
.
To override the contents of this collection use set_tags
.
A collection of key and value pairs.
A collection of key and value pairs.
A collection of key and value pairs.
Trait Implementations§
source§impl Clone for PutLabelFluentBuilder
impl Clone for PutLabelFluentBuilder
source§fn clone(&self) -> PutLabelFluentBuilder
fn clone(&self) -> PutLabelFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more