AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
UpdateContactEvaluationRequest.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 UpdateContactEvaluationRequest() = 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 "UpdateContactEvaluation"; }
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 UpdateContactEvaluationRequest& 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 UpdateContactEvaluationRequest& 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& GetUpdatedBy() const { return m_updatedBy; }
126 inline bool UpdatedByHasBeenSet() const { return m_updatedByHasBeenSet; }
127 template <typename UpdatedByT = EvaluatorUserUnion>
128 void SetUpdatedBy(UpdatedByT&& value) {
129 m_updatedByHasBeenSet = true;
130 m_updatedBy = std::forward<UpdatedByT>(value);
131 }
132 template <typename UpdatedByT = EvaluatorUserUnion>
134 SetUpdatedBy(std::forward<UpdatedByT>(value));
135 return *this;
136 }
138 private:
139 Aws::String m_instanceId;
140
141 Aws::String m_evaluationId;
142
144
146
147 EvaluatorUserUnion m_updatedBy;
148 bool m_instanceIdHasBeenSet = false;
149 bool m_evaluationIdHasBeenSet = false;
150 bool m_answersHasBeenSet = false;
151 bool m_notesHasBeenSet = false;
152 bool m_updatedByHasBeenSet = false;
153};
154
155} // namespace Model
156} // namespace Connect
157} // namespace Aws
UpdateContactEvaluationRequest & AddAnswers(AnswersKeyT &&key, AnswersValueT &&value)
UpdateContactEvaluationRequest & AddNotes(NotesKeyT &&key, NotesValueT &&value)
const Aws::Map< Aws::String, EvaluationNote > & GetNotes() const
const Aws::Map< Aws::String, EvaluationAnswerInput > & GetAnswers() const
UpdateContactEvaluationRequest & WithEvaluationId(EvaluationIdT &&value)
AWS_CONNECT_API Aws::String SerializePayload() const override
UpdateContactEvaluationRequest & WithNotes(NotesT &&value)
UpdateContactEvaluationRequest & WithAnswers(AnswersT &&value)
UpdateContactEvaluationRequest & WithInstanceId(InstanceIdT &&value)
AWS_CONNECT_API UpdateContactEvaluationRequest()=default
UpdateContactEvaluationRequest & WithUpdatedBy(UpdatedByT &&value)
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