AWS SDK for C++

AWS SDK for C++ Version 1.11.906

Loading...
Searching...
No Matches
ReferenceSummary.h
1
6#pragma once
7#include <aws/connect/Connect_EXPORTS.h>
8#include <aws/connect/model/AttachmentReference.h>
9#include <aws/connect/model/ContactAnalysisReference.h>
10#include <aws/connect/model/DateReference.h>
11#include <aws/connect/model/EmailMessageReference.h>
12#include <aws/connect/model/EmailReference.h>
13#include <aws/connect/model/NumberReference.h>
14#include <aws/connect/model/StringReference.h>
15#include <aws/connect/model/UrlReference.h>
16
17#include <utility>
18
19namespace Aws {
20namespace Utils {
21namespace Json {
22class JsonValue;
23class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace Connect {
27namespace Model {
28
37 public:
38 AWS_CONNECT_API ReferenceSummary() = default;
39 AWS_CONNECT_API ReferenceSummary(Aws::Utils::Json::JsonView jsonValue);
41 AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
42
44
48 inline const UrlReference& GetUrl() const { return m_url; }
49 inline bool UrlHasBeenSet() const { return m_urlHasBeenSet; }
50 template <typename UrlT = UrlReference>
51 void SetUrl(UrlT&& value) {
52 m_urlHasBeenSet = true;
53 m_url = std::forward<UrlT>(value);
54 }
55 template <typename UrlT = UrlReference>
56 ReferenceSummary& WithUrl(UrlT&& value) {
57 SetUrl(std::forward<UrlT>(value));
58 return *this;
59 }
61
63
67 inline const AttachmentReference& GetAttachment() const { return m_attachment; }
68 inline bool AttachmentHasBeenSet() const { return m_attachmentHasBeenSet; }
69 template <typename AttachmentT = AttachmentReference>
70 void SetAttachment(AttachmentT&& value) {
71 m_attachmentHasBeenSet = true;
72 m_attachment = std::forward<AttachmentT>(value);
73 }
74 template <typename AttachmentT = AttachmentReference>
75 ReferenceSummary& WithAttachment(AttachmentT&& value) {
76 SetAttachment(std::forward<AttachmentT>(value));
77 return *this;
78 }
80
82
86 inline const EmailMessageReference& GetEmailMessage() const { return m_emailMessage; }
87 inline bool EmailMessageHasBeenSet() const { return m_emailMessageHasBeenSet; }
88 template <typename EmailMessageT = EmailMessageReference>
89 void SetEmailMessage(EmailMessageT&& value) {
90 m_emailMessageHasBeenSet = true;
91 m_emailMessage = std::forward<EmailMessageT>(value);
92 }
93 template <typename EmailMessageT = EmailMessageReference>
94 ReferenceSummary& WithEmailMessage(EmailMessageT&& value) {
95 SetEmailMessage(std::forward<EmailMessageT>(value));
96 return *this;
97 }
99
101
102 inline const EmailMessageReference& GetEmailMessageRedacted() const { return m_emailMessageRedacted; }
103 inline bool EmailMessageRedactedHasBeenSet() const { return m_emailMessageRedactedHasBeenSet; }
104 template <typename EmailMessageRedactedT = EmailMessageReference>
105 void SetEmailMessageRedacted(EmailMessageRedactedT&& value) {
106 m_emailMessageRedactedHasBeenSet = true;
107 m_emailMessageRedacted = std::forward<EmailMessageRedactedT>(value);
108 }
109 template <typename EmailMessageRedactedT = EmailMessageReference>
110 ReferenceSummary& WithEmailMessageRedacted(EmailMessageRedactedT&& value) {
111 SetEmailMessageRedacted(std::forward<EmailMessageRedactedT>(value));
112 return *this;
113 }
115
117
118 inline const EmailMessageReference& GetEmailMessagePlainText() const { return m_emailMessagePlainText; }
119 inline bool EmailMessagePlainTextHasBeenSet() const { return m_emailMessagePlainTextHasBeenSet; }
120 template <typename EmailMessagePlainTextT = EmailMessageReference>
121 void SetEmailMessagePlainText(EmailMessagePlainTextT&& value) {
122 m_emailMessagePlainTextHasBeenSet = true;
123 m_emailMessagePlainText = std::forward<EmailMessagePlainTextT>(value);
124 }
125 template <typename EmailMessagePlainTextT = EmailMessageReference>
126 ReferenceSummary& WithEmailMessagePlainText(EmailMessagePlainTextT&& value) {
127 SetEmailMessagePlainText(std::forward<EmailMessagePlainTextT>(value));
128 return *this;
129 }
131
133
134 inline const EmailMessageReference& GetEmailMessagePlainTextRedacted() const { return m_emailMessagePlainTextRedacted; }
135 inline bool EmailMessagePlainTextRedactedHasBeenSet() const { return m_emailMessagePlainTextRedactedHasBeenSet; }
136 template <typename EmailMessagePlainTextRedactedT = EmailMessageReference>
137 void SetEmailMessagePlainTextRedacted(EmailMessagePlainTextRedactedT&& value) {
138 m_emailMessagePlainTextRedactedHasBeenSet = true;
139 m_emailMessagePlainTextRedacted = std::forward<EmailMessagePlainTextRedactedT>(value);
140 }
141 template <typename EmailMessagePlainTextRedactedT = EmailMessageReference>
142 ReferenceSummary& WithEmailMessagePlainTextRedacted(EmailMessagePlainTextRedactedT&& value) {
143 SetEmailMessagePlainTextRedacted(std::forward<EmailMessagePlainTextRedactedT>(value));
144 return *this;
145 }
147
149
153 inline const StringReference& GetString() const { return m_string; }
154 inline bool StringHasBeenSet() const { return m_stringHasBeenSet; }
155 template <typename StringT = StringReference>
156 void SetString(StringT&& value) {
157 m_stringHasBeenSet = true;
158 m_string = std::forward<StringT>(value);
159 }
160 template <typename StringT = StringReference>
161 ReferenceSummary& WithString(StringT&& value) {
162 SetString(std::forward<StringT>(value));
163 return *this;
164 }
166
168
172 inline const NumberReference& GetNumber() const { return m_number; }
173 inline bool NumberHasBeenSet() const { return m_numberHasBeenSet; }
174 template <typename NumberT = NumberReference>
175 void SetNumber(NumberT&& value) {
176 m_numberHasBeenSet = true;
177 m_number = std::forward<NumberT>(value);
178 }
179 template <typename NumberT = NumberReference>
180 ReferenceSummary& WithNumber(NumberT&& value) {
181 SetNumber(std::forward<NumberT>(value));
182 return *this;
183 }
185
187
191 inline const DateReference& GetDate() const { return m_date; }
192 inline bool DateHasBeenSet() const { return m_dateHasBeenSet; }
193 template <typename DateT = DateReference>
194 void SetDate(DateT&& value) {
195 m_dateHasBeenSet = true;
196 m_date = std::forward<DateT>(value);
197 }
198 template <typename DateT = DateReference>
199 ReferenceSummary& WithDate(DateT&& value) {
200 SetDate(std::forward<DateT>(value));
201 return *this;
202 }
204
206
210 inline const EmailReference& GetEmail() const { return m_email; }
211 inline bool EmailHasBeenSet() const { return m_emailHasBeenSet; }
212 template <typename EmailT = EmailReference>
213 void SetEmail(EmailT&& value) {
214 m_emailHasBeenSet = true;
215 m_email = std::forward<EmailT>(value);
216 }
217 template <typename EmailT = EmailReference>
218 ReferenceSummary& WithEmail(EmailT&& value) {
219 SetEmail(std::forward<EmailT>(value));
220 return *this;
221 }
223
225
226 inline const ContactAnalysisReference& GetContactAnalysis() const { return m_contactAnalysis; }
227 inline bool ContactAnalysisHasBeenSet() const { return m_contactAnalysisHasBeenSet; }
228 template <typename ContactAnalysisT = ContactAnalysisReference>
229 void SetContactAnalysis(ContactAnalysisT&& value) {
230 m_contactAnalysisHasBeenSet = true;
231 m_contactAnalysis = std::forward<ContactAnalysisT>(value);
232 }
233 template <typename ContactAnalysisT = ContactAnalysisReference>
234 ReferenceSummary& WithContactAnalysis(ContactAnalysisT&& value) {
235 SetContactAnalysis(std::forward<ContactAnalysisT>(value));
236 return *this;
237 }
239 private:
240 UrlReference m_url;
241
242 AttachmentReference m_attachment;
243
244 EmailMessageReference m_emailMessage;
245
246 EmailMessageReference m_emailMessageRedacted;
247
248 EmailMessageReference m_emailMessagePlainText;
249
250 EmailMessageReference m_emailMessagePlainTextRedacted;
251
252 StringReference m_string;
253
254 NumberReference m_number;
255
256 DateReference m_date;
257
258 EmailReference m_email;
259
260 ContactAnalysisReference m_contactAnalysis;
261 bool m_urlHasBeenSet = false;
262 bool m_attachmentHasBeenSet = false;
263 bool m_emailMessageHasBeenSet = false;
264 bool m_emailMessageRedactedHasBeenSet = false;
265 bool m_emailMessagePlainTextHasBeenSet = false;
266 bool m_emailMessagePlainTextRedactedHasBeenSet = false;
267 bool m_stringHasBeenSet = false;
268 bool m_numberHasBeenSet = false;
269 bool m_dateHasBeenSet = false;
270 bool m_emailHasBeenSet = false;
271 bool m_contactAnalysisHasBeenSet = false;
272};
273
274} // namespace Model
275} // namespace Connect
276} // namespace Aws
const EmailMessageReference & GetEmailMessageRedacted() const
void SetEmailMessagePlainTextRedacted(EmailMessagePlainTextRedactedT &&value)
const NumberReference & GetNumber() const
ReferenceSummary & WithEmailMessagePlainText(EmailMessagePlainTextT &&value)
ReferenceSummary & WithAttachment(AttachmentT &&value)
const EmailMessageReference & GetEmailMessagePlainTextRedacted() const
const DateReference & GetDate() const
ReferenceSummary & WithUrl(UrlT &&value)
AWS_CONNECT_API ReferenceSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
const StringReference & GetString() const
void SetEmailMessageRedacted(EmailMessageRedactedT &&value)
ReferenceSummary & WithNumber(NumberT &&value)
AWS_CONNECT_API ReferenceSummary(Aws::Utils::Json::JsonView jsonValue)
ReferenceSummary & WithDate(DateT &&value)
void SetContactAnalysis(ContactAnalysisT &&value)
const UrlReference & GetUrl() const
const ContactAnalysisReference & GetContactAnalysis() const
const EmailMessageReference & GetEmailMessagePlainText() const
ReferenceSummary & WithEmail(EmailT &&value)
void SetEmailMessage(EmailMessageT &&value)
const EmailMessageReference & GetEmailMessage() const
void SetAttachment(AttachmentT &&value)
const AttachmentReference & GetAttachment() const
ReferenceSummary & WithString(StringT &&value)
ReferenceSummary & WithContactAnalysis(ContactAnalysisT &&value)
const EmailReference & GetEmail() const
ReferenceSummary & WithEmailMessagePlainTextRedacted(EmailMessagePlainTextRedactedT &&value)
AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetEmailMessagePlainText(EmailMessagePlainTextT &&value)
ReferenceSummary & WithEmailMessage(EmailMessageT &&value)
ReferenceSummary & WithEmailMessageRedacted(EmailMessageRedactedT &&value)
AWS_CONNECT_API ReferenceSummary()=default
Aws::Utils::Json::JsonValue JsonValue