AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
SubmitContactEvaluationRequest.h
1
6#pragma once
7#include <aws/connect/ConnectRequest.h>
8#include <aws/connect/Connect_EXPORTS.h>
9#include <aws/connect/model/EvaluationAnswerInput.h>
10#include <aws/connect/model/EvaluationNote.h>
11#include <aws/connect/model/EvaluatorUserUnion.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <aws/core/utils/memory/stl/AWSString.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Connect {
19namespace Model {
20
24 public:
25 AWS_CONNECT_API SubmitContactEvaluationRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "SubmitContactEvaluation"; }
32
33 AWS_CONNECT_API Aws::String SerializePayload() const override;
34
36
41 inline const Aws::String& GetInstanceId() const { return m_instanceId; }
42 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
43 template <typename InstanceIdT = Aws::String>
44 void SetInstanceId(InstanceIdT&& value) {
45 m_instanceIdHasBeenSet = true;
46 m_instanceId = std::forward<InstanceIdT>(value);
47 }
48 template <typename InstanceIdT = Aws::String>
50 SetInstanceId(std::forward<InstanceIdT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetEvaluationId() const { return m_evaluationId; }
60 inline bool EvaluationIdHasBeenSet() const { return m_evaluationIdHasBeenSet; }
61 template <typename EvaluationIdT = Aws::String>
62 void SetEvaluationId(EvaluationIdT&& value) {
63 m_evaluationIdHasBeenSet = true;
64 m_evaluationId = std::forward<EvaluationIdT>(value);
65 }
66 template <typename EvaluationIdT = Aws::String>
68 SetEvaluationId(std::forward<EvaluationIdT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::Map<Aws::String, EvaluationAnswerInput>& GetAnswers() const { return m_answers; }
78 inline bool AnswersHasBeenSet() const { return m_answersHasBeenSet; }
79 template <typename AnswersT = Aws::Map<Aws::String, EvaluationAnswerInput>>
80 void SetAnswers(AnswersT&& value) {
81 m_answersHasBeenSet = true;
82 m_answers = std::forward<AnswersT>(value);
83 }
84 template <typename AnswersT = Aws::Map<Aws::String, EvaluationAnswerInput>>
86 SetAnswers(std::forward<AnswersT>(value));
87 return *this;
88 }
89 template <typename AnswersKeyT = Aws::String, typename AnswersValueT = EvaluationAnswerInput>
90 SubmitContactEvaluationRequest& AddAnswers(AnswersKeyT&& key, AnswersValueT&& value) {
91 m_answersHasBeenSet = true;
92 m_answers.emplace(std::forward<AnswersKeyT>(key), std::forward<AnswersValueT>(value));
93 return *this;
94 }
96
98
101 inline const Aws::Map<Aws::String, EvaluationNote>& GetNotes() const { return m_notes; }
102 inline bool NotesHasBeenSet() const { return m_notesHasBeenSet; }
103 template <typename NotesT = Aws::Map<Aws::String, EvaluationNote>>
104 void SetNotes(NotesT&& value) {
105 m_notesHasBeenSet = true;
106 m_notes = std::forward<NotesT>(value);
107 }
108 template <typename NotesT = Aws::Map<Aws::String, EvaluationNote>>
110 SetNotes(std::forward<NotesT>(value));
111 return *this;
112 }
113 template <typename NotesKeyT = Aws::String, typename NotesValueT = EvaluationNote>
114 SubmitContactEvaluationRequest& AddNotes(NotesKeyT&& key, NotesValueT&& value) {
115 m_notesHasBeenSet = true;
116 m_notes.emplace(std::forward<NotesKeyT>(key), std::forward<NotesValueT>(value));
117 return *this;
118 }
120
122
125 inline const EvaluatorUserUnion& GetSubmittedBy() const { return m_submittedBy; }
126 inline bool SubmittedByHasBeenSet() const { return m_submittedByHasBeenSet; }
127 template <typename SubmittedByT = EvaluatorUserUnion>
128 void SetSubmittedBy(SubmittedByT&& value) {
129 m_submittedByHasBeenSet = true;
130 m_submittedBy = std::forward<SubmittedByT>(value);
131 }
132 template <typename SubmittedByT = EvaluatorUserUnion>
134 SetSubmittedBy(std::forward<SubmittedByT>(value));
135 return *this;
136 }
138 private:
139 Aws::String m_instanceId;
140
141 Aws::String m_evaluationId;
142
144
146
147 EvaluatorUserUnion m_submittedBy;
148 bool m_instanceIdHasBeenSet = false;
149 bool m_evaluationIdHasBeenSet = false;
150 bool m_answersHasBeenSet = false;
151 bool m_notesHasBeenSet = false;
152 bool m_submittedByHasBeenSet = false;
153};
154
155} // namespace Model
156} // namespace Connect
157} // namespace Aws
SubmitContactEvaluationRequest & WithSubmittedBy(SubmittedByT &&value)
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