AWS SDK for C++

AWS SDK for C++ Version 1.11.788

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/DateReference.h>
10#include <aws/connect/model/EmailMessageReference.h>
11#include <aws/connect/model/EmailReference.h>
12#include <aws/connect/model/NumberReference.h>
13#include <aws/connect/model/StringReference.h>
14#include <aws/connect/model/UrlReference.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Utils {
20namespace Json {
21class JsonValue;
22class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace Connect {
26namespace Model {
27
36 public:
37 AWS_CONNECT_API ReferenceSummary() = default;
38 AWS_CONNECT_API ReferenceSummary(Aws::Utils::Json::JsonView jsonValue);
40 AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
41
43
47 inline const UrlReference& GetUrl() const { return m_url; }
48 inline bool UrlHasBeenSet() const { return m_urlHasBeenSet; }
49 template <typename UrlT = UrlReference>
50 void SetUrl(UrlT&& value) {
51 m_urlHasBeenSet = true;
52 m_url = std::forward<UrlT>(value);
53 }
54 template <typename UrlT = UrlReference>
55 ReferenceSummary& WithUrl(UrlT&& value) {
56 SetUrl(std::forward<UrlT>(value));
57 return *this;
58 }
60
62
66 inline const AttachmentReference& GetAttachment() const { return m_attachment; }
67 inline bool AttachmentHasBeenSet() const { return m_attachmentHasBeenSet; }
68 template <typename AttachmentT = AttachmentReference>
69 void SetAttachment(AttachmentT&& value) {
70 m_attachmentHasBeenSet = true;
71 m_attachment = std::forward<AttachmentT>(value);
72 }
73 template <typename AttachmentT = AttachmentReference>
74 ReferenceSummary& WithAttachment(AttachmentT&& value) {
75 SetAttachment(std::forward<AttachmentT>(value));
76 return *this;
77 }
79
81
85 inline const EmailMessageReference& GetEmailMessage() const { return m_emailMessage; }
86 inline bool EmailMessageHasBeenSet() const { return m_emailMessageHasBeenSet; }
87 template <typename EmailMessageT = EmailMessageReference>
88 void SetEmailMessage(EmailMessageT&& value) {
89 m_emailMessageHasBeenSet = true;
90 m_emailMessage = std::forward<EmailMessageT>(value);
91 }
92 template <typename EmailMessageT = EmailMessageReference>
93 ReferenceSummary& WithEmailMessage(EmailMessageT&& value) {
94 SetEmailMessage(std::forward<EmailMessageT>(value));
95 return *this;
96 }
98
100
101 inline const EmailMessageReference& GetEmailMessageRedacted() const { return m_emailMessageRedacted; }
102 inline bool EmailMessageRedactedHasBeenSet() const { return m_emailMessageRedactedHasBeenSet; }
103 template <typename EmailMessageRedactedT = EmailMessageReference>
104 void SetEmailMessageRedacted(EmailMessageRedactedT&& value) {
105 m_emailMessageRedactedHasBeenSet = true;
106 m_emailMessageRedacted = std::forward<EmailMessageRedactedT>(value);
107 }
108 template <typename EmailMessageRedactedT = EmailMessageReference>
109 ReferenceSummary& WithEmailMessageRedacted(EmailMessageRedactedT&& value) {
110 SetEmailMessageRedacted(std::forward<EmailMessageRedactedT>(value));
111 return *this;
112 }
114
116
117 inline const EmailMessageReference& GetEmailMessagePlainText() const { return m_emailMessagePlainText; }
118 inline bool EmailMessagePlainTextHasBeenSet() const { return m_emailMessagePlainTextHasBeenSet; }
119 template <typename EmailMessagePlainTextT = EmailMessageReference>
120 void SetEmailMessagePlainText(EmailMessagePlainTextT&& value) {
121 m_emailMessagePlainTextHasBeenSet = true;
122 m_emailMessagePlainText = std::forward<EmailMessagePlainTextT>(value);
123 }
124 template <typename EmailMessagePlainTextT = EmailMessageReference>
125 ReferenceSummary& WithEmailMessagePlainText(EmailMessagePlainTextT&& value) {
126 SetEmailMessagePlainText(std::forward<EmailMessagePlainTextT>(value));
127 return *this;
128 }
130
132
133 inline const EmailMessageReference& GetEmailMessagePlainTextRedacted() const { return m_emailMessagePlainTextRedacted; }
134 inline bool EmailMessagePlainTextRedactedHasBeenSet() const { return m_emailMessagePlainTextRedactedHasBeenSet; }
135 template <typename EmailMessagePlainTextRedactedT = EmailMessageReference>
136 void SetEmailMessagePlainTextRedacted(EmailMessagePlainTextRedactedT&& value) {
137 m_emailMessagePlainTextRedactedHasBeenSet = true;
138 m_emailMessagePlainTextRedacted = std::forward<EmailMessagePlainTextRedactedT>(value);
139 }
140 template <typename EmailMessagePlainTextRedactedT = EmailMessageReference>
141 ReferenceSummary& WithEmailMessagePlainTextRedacted(EmailMessagePlainTextRedactedT&& value) {
142 SetEmailMessagePlainTextRedacted(std::forward<EmailMessagePlainTextRedactedT>(value));
143 return *this;
144 }
146
148
152 inline const StringReference& GetString() const { return m_string; }
153 inline bool StringHasBeenSet() const { return m_stringHasBeenSet; }
154 template <typename StringT = StringReference>
155 void SetString(StringT&& value) {
156 m_stringHasBeenSet = true;
157 m_string = std::forward<StringT>(value);
158 }
159 template <typename StringT = StringReference>
160 ReferenceSummary& WithString(StringT&& value) {
161 SetString(std::forward<StringT>(value));
162 return *this;
163 }
165
167
171 inline const NumberReference& GetNumber() const { return m_number; }
172 inline bool NumberHasBeenSet() const { return m_numberHasBeenSet; }
173 template <typename NumberT = NumberReference>
174 void SetNumber(NumberT&& value) {
175 m_numberHasBeenSet = true;
176 m_number = std::forward<NumberT>(value);
177 }
178 template <typename NumberT = NumberReference>
179 ReferenceSummary& WithNumber(NumberT&& value) {
180 SetNumber(std::forward<NumberT>(value));
181 return *this;
182 }
184
186
190 inline const DateReference& GetDate() const { return m_date; }
191 inline bool DateHasBeenSet() const { return m_dateHasBeenSet; }
192 template <typename DateT = DateReference>
193 void SetDate(DateT&& value) {
194 m_dateHasBeenSet = true;
195 m_date = std::forward<DateT>(value);
196 }
197 template <typename DateT = DateReference>
198 ReferenceSummary& WithDate(DateT&& value) {
199 SetDate(std::forward<DateT>(value));
200 return *this;
201 }
203
205
209 inline const EmailReference& GetEmail() const { return m_email; }
210 inline bool EmailHasBeenSet() const { return m_emailHasBeenSet; }
211 template <typename EmailT = EmailReference>
212 void SetEmail(EmailT&& value) {
213 m_emailHasBeenSet = true;
214 m_email = std::forward<EmailT>(value);
215 }
216 template <typename EmailT = EmailReference>
217 ReferenceSummary& WithEmail(EmailT&& value) {
218 SetEmail(std::forward<EmailT>(value));
219 return *this;
220 }
222 private:
223 UrlReference m_url;
224
225 AttachmentReference m_attachment;
226
227 EmailMessageReference m_emailMessage;
228
229 EmailMessageReference m_emailMessageRedacted;
230
231 EmailMessageReference m_emailMessagePlainText;
232
233 EmailMessageReference m_emailMessagePlainTextRedacted;
234
235 StringReference m_string;
236
237 NumberReference m_number;
238
239 DateReference m_date;
240
241 EmailReference m_email;
242 bool m_urlHasBeenSet = false;
243 bool m_attachmentHasBeenSet = false;
244 bool m_emailMessageHasBeenSet = false;
245 bool m_emailMessageRedactedHasBeenSet = false;
246 bool m_emailMessagePlainTextHasBeenSet = false;
247 bool m_emailMessagePlainTextRedactedHasBeenSet = false;
248 bool m_stringHasBeenSet = false;
249 bool m_numberHasBeenSet = false;
250 bool m_dateHasBeenSet = false;
251 bool m_emailHasBeenSet = false;
252};
253
254} // namespace Model
255} // namespace Connect
256} // 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)
const UrlReference & GetUrl() 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)
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