AWS SDK for C++

AWS SDK for C++ Version 1.11.759

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& GetEmailMessagePlainText() const { return m_emailMessagePlainText; }
102 inline bool EmailMessagePlainTextHasBeenSet() const { return m_emailMessagePlainTextHasBeenSet; }
103 template <typename EmailMessagePlainTextT = EmailMessageReference>
104 void SetEmailMessagePlainText(EmailMessagePlainTextT&& value) {
105 m_emailMessagePlainTextHasBeenSet = true;
106 m_emailMessagePlainText = std::forward<EmailMessagePlainTextT>(value);
107 }
108 template <typename EmailMessagePlainTextT = EmailMessageReference>
109 ReferenceSummary& WithEmailMessagePlainText(EmailMessagePlainTextT&& value) {
110 SetEmailMessagePlainText(std::forward<EmailMessagePlainTextT>(value));
111 return *this;
112 }
114
116
120 inline const StringReference& GetString() const { return m_string; }
121 inline bool StringHasBeenSet() const { return m_stringHasBeenSet; }
122 template <typename StringT = StringReference>
123 void SetString(StringT&& value) {
124 m_stringHasBeenSet = true;
125 m_string = std::forward<StringT>(value);
126 }
127 template <typename StringT = StringReference>
128 ReferenceSummary& WithString(StringT&& value) {
129 SetString(std::forward<StringT>(value));
130 return *this;
131 }
133
135
139 inline const NumberReference& GetNumber() const { return m_number; }
140 inline bool NumberHasBeenSet() const { return m_numberHasBeenSet; }
141 template <typename NumberT = NumberReference>
142 void SetNumber(NumberT&& value) {
143 m_numberHasBeenSet = true;
144 m_number = std::forward<NumberT>(value);
145 }
146 template <typename NumberT = NumberReference>
147 ReferenceSummary& WithNumber(NumberT&& value) {
148 SetNumber(std::forward<NumberT>(value));
149 return *this;
150 }
152
154
158 inline const DateReference& GetDate() const { return m_date; }
159 inline bool DateHasBeenSet() const { return m_dateHasBeenSet; }
160 template <typename DateT = DateReference>
161 void SetDate(DateT&& value) {
162 m_dateHasBeenSet = true;
163 m_date = std::forward<DateT>(value);
164 }
165 template <typename DateT = DateReference>
166 ReferenceSummary& WithDate(DateT&& value) {
167 SetDate(std::forward<DateT>(value));
168 return *this;
169 }
171
173
177 inline const EmailReference& GetEmail() const { return m_email; }
178 inline bool EmailHasBeenSet() const { return m_emailHasBeenSet; }
179 template <typename EmailT = EmailReference>
180 void SetEmail(EmailT&& value) {
181 m_emailHasBeenSet = true;
182 m_email = std::forward<EmailT>(value);
183 }
184 template <typename EmailT = EmailReference>
185 ReferenceSummary& WithEmail(EmailT&& value) {
186 SetEmail(std::forward<EmailT>(value));
187 return *this;
188 }
190 private:
191 UrlReference m_url;
192
193 AttachmentReference m_attachment;
194
195 EmailMessageReference m_emailMessage;
196
197 EmailMessageReference m_emailMessagePlainText;
198
199 StringReference m_string;
200
201 NumberReference m_number;
202
203 DateReference m_date;
204
205 EmailReference m_email;
206 bool m_urlHasBeenSet = false;
207 bool m_attachmentHasBeenSet = false;
208 bool m_emailMessageHasBeenSet = false;
209 bool m_emailMessagePlainTextHasBeenSet = false;
210 bool m_stringHasBeenSet = false;
211 bool m_numberHasBeenSet = false;
212 bool m_dateHasBeenSet = false;
213 bool m_emailHasBeenSet = false;
214};
215
216} // namespace Model
217} // namespace Connect
218} // namespace Aws
const NumberReference & GetNumber() const
ReferenceSummary & WithEmailMessagePlainText(EmailMessagePlainTextT &&value)
ReferenceSummary & WithAttachment(AttachmentT &&value)
const DateReference & GetDate() const
ReferenceSummary & WithUrl(UrlT &&value)
AWS_CONNECT_API ReferenceSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
const StringReference & GetString() const
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
AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetEmailMessagePlainText(EmailMessagePlainTextT &&value)
ReferenceSummary & WithEmailMessage(EmailMessageT &&value)
AWS_CONNECT_API ReferenceSummary()=default
Aws::Utils::Json::JsonValue JsonValue