Struct aws_sdk_connect::input::PutUserStatusInput
source · #[non_exhaustive]pub struct PutUserStatusInput { /* private fields */ }
Implementations§
source§impl PutUserStatusInput
impl PutUserStatusInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<PutUserStatus, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<PutUserStatus, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<PutUserStatus
>
Examples found in repository?
src/client.rs (line 13370)
13356 13357 13358 13359 13360 13361 13362 13363 13364 13365 13366 13367 13368 13369 13370 13371 13372 13373 13374 13375 13376 13377 13378 13379 13380 13381 13382 13383 13384 13385 13386 13387 13388 13389 13390 13391 13392 13393 13394 13395 13396 13397 13398
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::PutUserStatus,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::PutUserStatusError>,
> {
let handle = self.handle.clone();
let operation = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
Ok(crate::operation::customize::CustomizableOperation { handle, operation })
}
/// 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](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::PutUserStatusOutput,
aws_smithy_http::result::SdkError<crate::error::PutUserStatusError>,
> {
let op = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&self.handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
self.handle.client.call(op).await
}
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture PutUserStatusInput
.
source§impl PutUserStatusInput
impl PutUserStatusInput
sourcepub fn instance_id(&self) -> Option<&str>
pub fn instance_id(&self) -> Option<&str>
The identifier of the Amazon Connect instance. You can find the instanceId in the ARN of the instance.
sourcepub fn agent_status_id(&self) -> Option<&str>
pub fn agent_status_id(&self) -> Option<&str>
The identifier of the agent status.
Trait Implementations§
source§impl Clone for PutUserStatusInput
impl Clone for PutUserStatusInput
source§fn clone(&self) -> PutUserStatusInput
fn clone(&self) -> PutUserStatusInput
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 more