AWS SDK for C++

AWS SDK for C++ Version 1.11.554

All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Pages
Loading...
Searching...
No Matches
SubmitContactEvaluationRequest.h
1
6#pragma once
7#include <aws/connect/Connect_EXPORTS.h>
8#include <aws/connect/ConnectRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/connect/model/EvaluationAnswerInput.h>
12#include <aws/connect/model/EvaluationNote.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Connect
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_CONNECT_API SubmitContactEvaluationRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "SubmitContactEvaluation"; }
34
35 AWS_CONNECT_API Aws::String SerializePayload() const override;
36
37
39
44 inline const Aws::String& GetInstanceId() const { return m_instanceId; }
45 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
46 template<typename InstanceIdT = Aws::String>
47 void SetInstanceId(InstanceIdT&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::forward<InstanceIdT>(value); }
48 template<typename InstanceIdT = Aws::String>
49 SubmitContactEvaluationRequest& WithInstanceId(InstanceIdT&& value) { SetInstanceId(std::forward<InstanceIdT>(value)); return *this;}
51
53
56 inline const Aws::String& GetEvaluationId() const { return m_evaluationId; }
57 inline bool EvaluationIdHasBeenSet() const { return m_evaluationIdHasBeenSet; }
58 template<typename EvaluationIdT = Aws::String>
59 void SetEvaluationId(EvaluationIdT&& value) { m_evaluationIdHasBeenSet = true; m_evaluationId = std::forward<EvaluationIdT>(value); }
60 template<typename EvaluationIdT = Aws::String>
61 SubmitContactEvaluationRequest& WithEvaluationId(EvaluationIdT&& value) { SetEvaluationId(std::forward<EvaluationIdT>(value)); return *this;}
63
65
68 inline const Aws::Map<Aws::String, EvaluationAnswerInput>& GetAnswers() const { return m_answers; }
69 inline bool AnswersHasBeenSet() const { return m_answersHasBeenSet; }
70 template<typename AnswersT = Aws::Map<Aws::String, EvaluationAnswerInput>>
71 void SetAnswers(AnswersT&& value) { m_answersHasBeenSet = true; m_answers = std::forward<AnswersT>(value); }
72 template<typename AnswersT = Aws::Map<Aws::String, EvaluationAnswerInput>>
73 SubmitContactEvaluationRequest& WithAnswers(AnswersT&& value) { SetAnswers(std::forward<AnswersT>(value)); return *this;}
74 template<typename AnswersKeyT = Aws::String, typename AnswersValueT = EvaluationAnswerInput>
75 SubmitContactEvaluationRequest& AddAnswers(AnswersKeyT&& key, AnswersValueT&& value) {
76 m_answersHasBeenSet = true; m_answers.emplace(std::forward<AnswersKeyT>(key), std::forward<AnswersValueT>(value)); return *this;
77 }
79
81
84 inline const Aws::Map<Aws::String, EvaluationNote>& GetNotes() const { return m_notes; }
85 inline bool NotesHasBeenSet() const { return m_notesHasBeenSet; }
86 template<typename NotesT = Aws::Map<Aws::String, EvaluationNote>>
87 void SetNotes(NotesT&& value) { m_notesHasBeenSet = true; m_notes = std::forward<NotesT>(value); }
88 template<typename NotesT = Aws::Map<Aws::String, EvaluationNote>>
89 SubmitContactEvaluationRequest& WithNotes(NotesT&& value) { SetNotes(std::forward<NotesT>(value)); return *this;}
90 template<typename NotesKeyT = Aws::String, typename NotesValueT = EvaluationNote>
91 SubmitContactEvaluationRequest& AddNotes(NotesKeyT&& key, NotesValueT&& value) {
92 m_notesHasBeenSet = true; m_notes.emplace(std::forward<NotesKeyT>(key), std::forward<NotesValueT>(value)); return *this;
93 }
95 private:
96
97 Aws::String m_instanceId;
98 bool m_instanceIdHasBeenSet = false;
99
100 Aws::String m_evaluationId;
101 bool m_evaluationIdHasBeenSet = false;
102
104 bool m_answersHasBeenSet = false;
105
107 bool m_notesHasBeenSet = false;
108 };
109
110} // namespace Model
111} // namespace Connect
112} // namespace Aws
SubmitContactEvaluationRequest & WithInstanceId(InstanceIdT &&value)
SubmitContactEvaluationRequest & WithAnswers(AnswersT &&value)
SubmitContactEvaluationRequest & AddAnswers(AnswersKeyT &&key, AnswersValueT &&value)
SubmitContactEvaluationRequest & WithNotes(NotesT &&value)
SubmitContactEvaluationRequest & AddNotes(NotesKeyT &&key, NotesValueT &&value)
const Aws::Map< Aws::String, EvaluationAnswerInput > & GetAnswers() const
const Aws::Map< Aws::String, EvaluationNote > & GetNotes() const
AWS_CONNECT_API SubmitContactEvaluationRequest()=default
SubmitContactEvaluationRequest & WithEvaluationId(EvaluationIdT &&value)
AWS_CONNECT_API Aws::String SerializePayload() const override
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String