Struct aws_sdk_connect::operation::submit_contact_evaluation::builders::SubmitContactEvaluationFluentBuilder
source · pub struct SubmitContactEvaluationFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to SubmitContactEvaluation
.
Submits a contact evaluation in the specified Amazon Connect instance. Answers included in the request are merged with existing answers for the given evaluation. If no answers or notes are passed, the evaluation is submitted with the existing answers and notes. You can delete an answer or note by passing an empty object ({}
) to the question identifier.
If a contact evaluation is already in submitted state, this operation will trigger a resubmission.
Implementations§
source§impl SubmitContactEvaluationFluentBuilder
impl SubmitContactEvaluationFluentBuilder
sourcepub fn as_input(&self) -> &SubmitContactEvaluationInputBuilder
pub fn as_input(&self) -> &SubmitContactEvaluationInputBuilder
Access the SubmitContactEvaluation as a reference.
sourcepub async fn send(
self
) -> Result<SubmitContactEvaluationOutput, SdkError<SubmitContactEvaluationError, HttpResponse>>
pub async fn send( self ) -> Result<SubmitContactEvaluationOutput, SdkError<SubmitContactEvaluationError, 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 async fn customize(
self
) -> Result<CustomizableOperation<SubmitContactEvaluationOutput, SubmitContactEvaluationError, Self>, SdkError<SubmitContactEvaluationError>>
pub async fn customize( self ) -> Result<CustomizableOperation<SubmitContactEvaluationOutput, SubmitContactEvaluationError, Self>, SdkError<SubmitContactEvaluationError>>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn instance_id(self, input: impl Into<String>) -> Self
pub fn instance_id(self, input: impl Into<String>) -> Self
The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.
sourcepub fn set_instance_id(self, input: Option<String>) -> Self
pub fn set_instance_id(self, input: Option<String>) -> Self
The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.
sourcepub fn get_instance_id(&self) -> &Option<String>
pub fn get_instance_id(&self) -> &Option<String>
The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.
sourcepub fn evaluation_id(self, input: impl Into<String>) -> Self
pub fn evaluation_id(self, input: impl Into<String>) -> Self
A unique identifier for the contact evaluation.
sourcepub fn set_evaluation_id(self, input: Option<String>) -> Self
pub fn set_evaluation_id(self, input: Option<String>) -> Self
A unique identifier for the contact evaluation.
sourcepub fn get_evaluation_id(&self) -> &Option<String>
pub fn get_evaluation_id(&self) -> &Option<String>
A unique identifier for the contact evaluation.
sourcepub fn answers(self, k: impl Into<String>, v: EvaluationAnswerInput) -> Self
pub fn answers(self, k: impl Into<String>, v: EvaluationAnswerInput) -> Self
Adds a key-value pair to Answers
.
To override the contents of this collection use set_answers
.
A map of question identifiers to answer value.
sourcepub fn set_answers(
self,
input: Option<HashMap<String, EvaluationAnswerInput>>
) -> Self
pub fn set_answers( self, input: Option<HashMap<String, EvaluationAnswerInput>> ) -> Self
A map of question identifiers to answer value.
sourcepub fn get_answers(&self) -> &Option<HashMap<String, EvaluationAnswerInput>>
pub fn get_answers(&self) -> &Option<HashMap<String, EvaluationAnswerInput>>
A map of question identifiers to answer value.
sourcepub fn notes(self, k: impl Into<String>, v: EvaluationNote) -> Self
pub fn notes(self, k: impl Into<String>, v: EvaluationNote) -> Self
Adds a key-value pair to Notes
.
To override the contents of this collection use set_notes
.
A map of question identifiers to note value.
Trait Implementations§
source§impl Clone for SubmitContactEvaluationFluentBuilder
impl Clone for SubmitContactEvaluationFluentBuilder
source§fn clone(&self) -> SubmitContactEvaluationFluentBuilder
fn clone(&self) -> SubmitContactEvaluationFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more