/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include namespace Aws { namespace Connect { namespace Model { /** */ class SubmitContactEvaluationRequest : public ConnectRequest { public: AWS_CONNECT_API SubmitContactEvaluationRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "SubmitContactEvaluation"; } AWS_CONNECT_API Aws::String SerializePayload() const override; /** *

The identifier of the Amazon Connect instance. You can find * the instance ID in the Amazon Resource Name (ARN) of the instance.

*/ inline const Aws::String& GetInstanceId() const{ return m_instanceId; } /** *

The identifier of the Amazon Connect instance. You can find * the instance ID in the Amazon Resource Name (ARN) of the instance.

*/ inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; } /** *

The identifier of the Amazon Connect instance. You can find * the instance ID in the Amazon Resource Name (ARN) of the instance.

*/ inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; } /** *

The identifier of the Amazon Connect instance. You can find * the instance ID in the Amazon Resource Name (ARN) of the instance.

*/ inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); } /** *

The identifier of the Amazon Connect instance. You can find * the instance ID in the Amazon Resource Name (ARN) of the instance.

*/ inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); } /** *

The identifier of the Amazon Connect instance. You can find * the instance ID in the Amazon Resource Name (ARN) of the instance.

*/ inline SubmitContactEvaluationRequest& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;} /** *

The identifier of the Amazon Connect instance. You can find * the instance ID in the Amazon Resource Name (ARN) of the instance.

*/ inline SubmitContactEvaluationRequest& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;} /** *

The identifier of the Amazon Connect instance. You can find * the instance ID in the Amazon Resource Name (ARN) of the instance.

*/ inline SubmitContactEvaluationRequest& WithInstanceId(const char* value) { SetInstanceId(value); return *this;} /** *

A unique identifier for the contact evaluation.

*/ inline const Aws::String& GetEvaluationId() const{ return m_evaluationId; } /** *

A unique identifier for the contact evaluation.

*/ inline bool EvaluationIdHasBeenSet() const { return m_evaluationIdHasBeenSet; } /** *

A unique identifier for the contact evaluation.

*/ inline void SetEvaluationId(const Aws::String& value) { m_evaluationIdHasBeenSet = true; m_evaluationId = value; } /** *

A unique identifier for the contact evaluation.

*/ inline void SetEvaluationId(Aws::String&& value) { m_evaluationIdHasBeenSet = true; m_evaluationId = std::move(value); } /** *

A unique identifier for the contact evaluation.

*/ inline void SetEvaluationId(const char* value) { m_evaluationIdHasBeenSet = true; m_evaluationId.assign(value); } /** *

A unique identifier for the contact evaluation.

*/ inline SubmitContactEvaluationRequest& WithEvaluationId(const Aws::String& value) { SetEvaluationId(value); return *this;} /** *

A unique identifier for the contact evaluation.

*/ inline SubmitContactEvaluationRequest& WithEvaluationId(Aws::String&& value) { SetEvaluationId(std::move(value)); return *this;} /** *

A unique identifier for the contact evaluation.

*/ inline SubmitContactEvaluationRequest& WithEvaluationId(const char* value) { SetEvaluationId(value); return *this;} /** *

A map of question identifiers to answer value.

*/ inline const Aws::Map& GetAnswers() const{ return m_answers; } /** *

A map of question identifiers to answer value.

*/ inline bool AnswersHasBeenSet() const { return m_answersHasBeenSet; } /** *

A map of question identifiers to answer value.

*/ inline void SetAnswers(const Aws::Map& value) { m_answersHasBeenSet = true; m_answers = value; } /** *

A map of question identifiers to answer value.

*/ inline void SetAnswers(Aws::Map&& value) { m_answersHasBeenSet = true; m_answers = std::move(value); } /** *

A map of question identifiers to answer value.

*/ inline SubmitContactEvaluationRequest& WithAnswers(const Aws::Map& value) { SetAnswers(value); return *this;} /** *

A map of question identifiers to answer value.

*/ inline SubmitContactEvaluationRequest& WithAnswers(Aws::Map&& value) { SetAnswers(std::move(value)); return *this;} /** *

A map of question identifiers to answer value.

*/ inline SubmitContactEvaluationRequest& AddAnswers(const Aws::String& key, const EvaluationAnswerInput& value) { m_answersHasBeenSet = true; m_answers.emplace(key, value); return *this; } /** *

A map of question identifiers to answer value.

*/ inline SubmitContactEvaluationRequest& AddAnswers(Aws::String&& key, const EvaluationAnswerInput& value) { m_answersHasBeenSet = true; m_answers.emplace(std::move(key), value); return *this; } /** *

A map of question identifiers to answer value.

*/ inline SubmitContactEvaluationRequest& AddAnswers(const Aws::String& key, EvaluationAnswerInput&& value) { m_answersHasBeenSet = true; m_answers.emplace(key, std::move(value)); return *this; } /** *

A map of question identifiers to answer value.

*/ inline SubmitContactEvaluationRequest& AddAnswers(Aws::String&& key, EvaluationAnswerInput&& value) { m_answersHasBeenSet = true; m_answers.emplace(std::move(key), std::move(value)); return *this; } /** *

A map of question identifiers to answer value.

*/ inline SubmitContactEvaluationRequest& AddAnswers(const char* key, EvaluationAnswerInput&& value) { m_answersHasBeenSet = true; m_answers.emplace(key, std::move(value)); return *this; } /** *

A map of question identifiers to answer value.

*/ inline SubmitContactEvaluationRequest& AddAnswers(const char* key, const EvaluationAnswerInput& value) { m_answersHasBeenSet = true; m_answers.emplace(key, value); return *this; } /** *

A map of question identifiers to note value.

*/ inline const Aws::Map& GetNotes() const{ return m_notes; } /** *

A map of question identifiers to note value.

*/ inline bool NotesHasBeenSet() const { return m_notesHasBeenSet; } /** *

A map of question identifiers to note value.

*/ inline void SetNotes(const Aws::Map& value) { m_notesHasBeenSet = true; m_notes = value; } /** *

A map of question identifiers to note value.

*/ inline void SetNotes(Aws::Map&& value) { m_notesHasBeenSet = true; m_notes = std::move(value); } /** *

A map of question identifiers to note value.

*/ inline SubmitContactEvaluationRequest& WithNotes(const Aws::Map& value) { SetNotes(value); return *this;} /** *

A map of question identifiers to note value.

*/ inline SubmitContactEvaluationRequest& WithNotes(Aws::Map&& value) { SetNotes(std::move(value)); return *this;} /** *

A map of question identifiers to note value.

*/ inline SubmitContactEvaluationRequest& AddNotes(const Aws::String& key, const EvaluationNote& value) { m_notesHasBeenSet = true; m_notes.emplace(key, value); return *this; } /** *

A map of question identifiers to note value.

*/ inline SubmitContactEvaluationRequest& AddNotes(Aws::String&& key, const EvaluationNote& value) { m_notesHasBeenSet = true; m_notes.emplace(std::move(key), value); return *this; } /** *

A map of question identifiers to note value.

*/ inline SubmitContactEvaluationRequest& AddNotes(const Aws::String& key, EvaluationNote&& value) { m_notesHasBeenSet = true; m_notes.emplace(key, std::move(value)); return *this; } /** *

A map of question identifiers to note value.

*/ inline SubmitContactEvaluationRequest& AddNotes(Aws::String&& key, EvaluationNote&& value) { m_notesHasBeenSet = true; m_notes.emplace(std::move(key), std::move(value)); return *this; } /** *

A map of question identifiers to note value.

*/ inline SubmitContactEvaluationRequest& AddNotes(const char* key, EvaluationNote&& value) { m_notesHasBeenSet = true; m_notes.emplace(key, std::move(value)); return *this; } /** *

A map of question identifiers to note value.

*/ inline SubmitContactEvaluationRequest& AddNotes(const char* key, const EvaluationNote& value) { m_notesHasBeenSet = true; m_notes.emplace(key, value); return *this; } private: Aws::String m_instanceId; bool m_instanceIdHasBeenSet = false; Aws::String m_evaluationId; bool m_evaluationIdHasBeenSet = false; Aws::Map m_answers; bool m_answersHasBeenSet = false; Aws::Map m_notes; bool m_notesHasBeenSet = false; }; } // namespace Model } // namespace Connect } // namespace Aws