public class SubmitContactEvaluationRequest
extends com.amazonaws.AmazonWebServiceRequest
implements java.io.Serializable
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.
| Constructor and Description |
|---|
SubmitContactEvaluationRequest() |
| Modifier and Type | Method and Description |
|---|---|
SubmitContactEvaluationRequest |
addAnswersEntry(java.lang.String key,
EvaluationAnswerInput value)
A map of question identifiers to answer value.
|
SubmitContactEvaluationRequest |
addNotesEntry(java.lang.String key,
EvaluationNote value)
A map of question identifiers to note value.
|
SubmitContactEvaluationRequest |
clearAnswersEntries()
Removes all the entries added into Answers.
|
SubmitContactEvaluationRequest |
clearNotesEntries()
Removes all the entries added into Notes.
|
boolean |
equals(java.lang.Object obj) |
java.util.Map<java.lang.String,EvaluationAnswerInput> |
getAnswers()
A map of question identifiers to answer value.
|
java.lang.String |
getEvaluationId()
A unique identifier for the contact evaluation.
|
java.lang.String |
getInstanceId()
The identifier of the Amazon Connect instance.
|
java.util.Map<java.lang.String,EvaluationNote> |
getNotes()
A map of question identifiers to note value.
|
int |
hashCode() |
void |
setAnswers(java.util.Map<java.lang.String,EvaluationAnswerInput> answers)
A map of question identifiers to answer value.
|
void |
setEvaluationId(java.lang.String evaluationId)
A unique identifier for the contact evaluation.
|
void |
setInstanceId(java.lang.String instanceId)
The identifier of the Amazon Connect instance.
|
void |
setNotes(java.util.Map<java.lang.String,EvaluationNote> notes)
A map of question identifiers to note value.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
SubmitContactEvaluationRequest |
withAnswers(java.util.Map<java.lang.String,EvaluationAnswerInput> answers)
A map of question identifiers to answer value.
|
SubmitContactEvaluationRequest |
withEvaluationId(java.lang.String evaluationId)
A unique identifier for the contact evaluation.
|
SubmitContactEvaluationRequest |
withInstanceId(java.lang.String instanceId)
The identifier of the Amazon Connect instance.
|
SubmitContactEvaluationRequest |
withNotes(java.util.Map<java.lang.String,EvaluationNote> notes)
A map of question identifiers to note value.
|
clone, copyBaseTo, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollectorpublic java.lang.String getInstanceId()
The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.
Constraints:
Length: 1 - 100
The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.
public void setInstanceId(java.lang.String instanceId)
The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.
Constraints:
Length: 1 - 100
instanceId - The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.
public SubmitContactEvaluationRequest withInstanceId(java.lang.String instanceId)
The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 100
instanceId - The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.
public java.lang.String getEvaluationId()
A unique identifier for the contact evaluation.
Constraints:
Length: 1 - 500
A unique identifier for the contact evaluation.
public void setEvaluationId(java.lang.String evaluationId)
A unique identifier for the contact evaluation.
Constraints:
Length: 1 - 500
evaluationId - A unique identifier for the contact evaluation.
public SubmitContactEvaluationRequest withEvaluationId(java.lang.String evaluationId)
A unique identifier for the contact evaluation.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 500
evaluationId - A unique identifier for the contact evaluation.
public java.util.Map<java.lang.String,EvaluationAnswerInput> getAnswers()
A map of question identifiers to answer value.
A map of question identifiers to answer value.
public void setAnswers(java.util.Map<java.lang.String,EvaluationAnswerInput> answers)
A map of question identifiers to answer value.
answers - A map of question identifiers to answer value.
public SubmitContactEvaluationRequest withAnswers(java.util.Map<java.lang.String,EvaluationAnswerInput> answers)
A map of question identifiers to answer value.
Returns a reference to this object so that method calls can be chained together.
answers - A map of question identifiers to answer value.
public SubmitContactEvaluationRequest addAnswersEntry(java.lang.String key, EvaluationAnswerInput value)
A map of question identifiers to answer value.
The method adds a new key-value pair into Answers parameter, and returns a reference to this object so that method calls can be chained together.
key - The key of the entry to be added into Answers.value - The corresponding value of the entry to be added into
Answers.public SubmitContactEvaluationRequest clearAnswersEntries()
Returns a reference to this object so that method calls can be chained together.
public java.util.Map<java.lang.String,EvaluationNote> getNotes()
A map of question identifiers to note value.
A map of question identifiers to note value.
public void setNotes(java.util.Map<java.lang.String,EvaluationNote> notes)
A map of question identifiers to note value.
notes - A map of question identifiers to note value.
public SubmitContactEvaluationRequest withNotes(java.util.Map<java.lang.String,EvaluationNote> notes)
A map of question identifiers to note value.
Returns a reference to this object so that method calls can be chained together.
notes - A map of question identifiers to note value.
public SubmitContactEvaluationRequest addNotesEntry(java.lang.String key, EvaluationNote value)
A map of question identifiers to note value.
The method adds a new key-value pair into Notes parameter, and returns a reference to this object so that method calls can be chained together.
key - The key of the entry to be added into Notes.value - The corresponding value of the entry to be added into Notes.public SubmitContactEvaluationRequest clearNotesEntries()
Returns a reference to this object so that method calls can be chained together.
public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object