Struct aws_sdk_connect::types::builders::EvaluationBuilder
source · #[non_exhaustive]pub struct EvaluationBuilder { /* private fields */ }
Expand description
A builder for Evaluation
.
Implementations§
source§impl EvaluationBuilder
impl EvaluationBuilder
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.
This field is required.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 evaluation_arn(self, input: impl Into<String>) -> Self
pub fn evaluation_arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) for the contact evaluation resource.
This field is required.sourcepub fn set_evaluation_arn(self, input: Option<String>) -> Self
pub fn set_evaluation_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) for the contact evaluation resource.
sourcepub fn get_evaluation_arn(&self) -> &Option<String>
pub fn get_evaluation_arn(&self) -> &Option<String>
The Amazon Resource Name (ARN) for the contact evaluation resource.
sourcepub fn metadata(self, input: EvaluationMetadata) -> Self
pub fn metadata(self, input: EvaluationMetadata) -> Self
Metadata about the contact evaluation.
This field is required.sourcepub fn set_metadata(self, input: Option<EvaluationMetadata>) -> Self
pub fn set_metadata(self, input: Option<EvaluationMetadata>) -> Self
Metadata about the contact evaluation.
sourcepub fn get_metadata(&self) -> &Option<EvaluationMetadata>
pub fn get_metadata(&self) -> &Option<EvaluationMetadata>
Metadata about the contact evaluation.
sourcepub fn answers(self, k: impl Into<String>, v: EvaluationAnswerOutput) -> Self
pub fn answers(self, k: impl Into<String>, v: EvaluationAnswerOutput) -> 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, EvaluationAnswerOutput>>
) -> Self
pub fn set_answers( self, input: Option<HashMap<String, EvaluationAnswerOutput>> ) -> Self
A map of question identifiers to answer value.
sourcepub fn get_answers(&self) -> &Option<HashMap<String, EvaluationAnswerOutput>>
pub fn get_answers(&self) -> &Option<HashMap<String, EvaluationAnswerOutput>>
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.
sourcepub fn set_notes(self, input: Option<HashMap<String, EvaluationNote>>) -> Self
pub fn set_notes(self, input: Option<HashMap<String, EvaluationNote>>) -> Self
A map of question identifiers to note value.
sourcepub fn get_notes(&self) -> &Option<HashMap<String, EvaluationNote>>
pub fn get_notes(&self) -> &Option<HashMap<String, EvaluationNote>>
A map of question identifiers to note value.
sourcepub fn status(self, input: EvaluationStatus) -> Self
pub fn status(self, input: EvaluationStatus) -> Self
The status of the contact evaluation.
This field is required.sourcepub fn set_status(self, input: Option<EvaluationStatus>) -> Self
pub fn set_status(self, input: Option<EvaluationStatus>) -> Self
The status of the contact evaluation.
sourcepub fn get_status(&self) -> &Option<EvaluationStatus>
pub fn get_status(&self) -> &Option<EvaluationStatus>
The status of the contact evaluation.
sourcepub fn scores(self, k: impl Into<String>, v: EvaluationScore) -> Self
pub fn scores(self, k: impl Into<String>, v: EvaluationScore) -> Self
Adds a key-value pair to scores
.
To override the contents of this collection use set_scores
.
A map of item (section or question) identifiers to score value.
sourcepub fn set_scores(self, input: Option<HashMap<String, EvaluationScore>>) -> Self
pub fn set_scores(self, input: Option<HashMap<String, EvaluationScore>>) -> Self
A map of item (section or question) identifiers to score value.
sourcepub fn get_scores(&self) -> &Option<HashMap<String, EvaluationScore>>
pub fn get_scores(&self) -> &Option<HashMap<String, EvaluationScore>>
A map of item (section or question) identifiers to score value.
sourcepub fn created_time(self, input: DateTime) -> Self
pub fn created_time(self, input: DateTime) -> Self
The timestamp for when the evaluation was created.
This field is required.sourcepub fn set_created_time(self, input: Option<DateTime>) -> Self
pub fn set_created_time(self, input: Option<DateTime>) -> Self
The timestamp for when the evaluation was created.
sourcepub fn get_created_time(&self) -> &Option<DateTime>
pub fn get_created_time(&self) -> &Option<DateTime>
The timestamp for when the evaluation was created.
sourcepub fn last_modified_time(self, input: DateTime) -> Self
pub fn last_modified_time(self, input: DateTime) -> Self
The timestamp for when the evaluation was last updated.
This field is required.sourcepub fn set_last_modified_time(self, input: Option<DateTime>) -> Self
pub fn set_last_modified_time(self, input: Option<DateTime>) -> Self
The timestamp for when the evaluation was last updated.
sourcepub fn get_last_modified_time(&self) -> &Option<DateTime>
pub fn get_last_modified_time(&self) -> &Option<DateTime>
The timestamp for when the evaluation was last updated.
Adds a key-value pair to tags
.
To override the contents of this collection use set_tags
.
The tags used to organize, track, or control access for this resource. For example, { "Tags": {"key1":"value1", "key2":"value2"} }.
The tags used to organize, track, or control access for this resource. For example, { "Tags": {"key1":"value1", "key2":"value2"} }.
The tags used to organize, track, or control access for this resource. For example, { "Tags": {"key1":"value1", "key2":"value2"} }.
sourcepub fn build(self) -> Result<Evaluation, BuildError>
pub fn build(self) -> Result<Evaluation, BuildError>
Consumes the builder and constructs a Evaluation
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for EvaluationBuilder
impl Clone for EvaluationBuilder
source§fn clone(&self) -> EvaluationBuilder
fn clone(&self) -> EvaluationBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for EvaluationBuilder
impl Debug for EvaluationBuilder
source§impl Default for EvaluationBuilder
impl Default for EvaluationBuilder
source§fn default() -> EvaluationBuilder
fn default() -> EvaluationBuilder
source§impl PartialEq for EvaluationBuilder
impl PartialEq for EvaluationBuilder
source§fn eq(&self, other: &EvaluationBuilder) -> bool
fn eq(&self, other: &EvaluationBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.