AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ReferenceSummary.h
1
6#pragma once
7#include <aws/connect/Connect_EXPORTS.h>
8#include <aws/connect/model/UrlReference.h>
9#include <aws/connect/model/AttachmentReference.h>
10#include <aws/connect/model/EmailMessageReference.h>
11#include <aws/connect/model/StringReference.h>
12#include <aws/connect/model/NumberReference.h>
13#include <aws/connect/model/DateReference.h>
14#include <aws/connect/model/EmailReference.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24 class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace Connect
28{
29namespace Model
30{
31
40 {
41 public:
42 AWS_CONNECT_API ReferenceSummary() = default;
43 AWS_CONNECT_API ReferenceSummary(Aws::Utils::Json::JsonView jsonValue);
45 AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
46
47
49
53 inline const UrlReference& GetUrl() const { return m_url; }
54 inline bool UrlHasBeenSet() const { return m_urlHasBeenSet; }
55 template<typename UrlT = UrlReference>
56 void SetUrl(UrlT&& value) { m_urlHasBeenSet = true; m_url = std::forward<UrlT>(value); }
57 template<typename UrlT = UrlReference>
58 ReferenceSummary& WithUrl(UrlT&& value) { SetUrl(std::forward<UrlT>(value)); return *this;}
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) { m_attachmentHasBeenSet = true; m_attachment = std::forward<AttachmentT>(value); }
70 template<typename AttachmentT = AttachmentReference>
71 ReferenceSummary& WithAttachment(AttachmentT&& value) { SetAttachment(std::forward<AttachmentT>(value)); return *this;}
73
75
79 inline const EmailMessageReference& GetEmailMessage() const { return m_emailMessage; }
80 inline bool EmailMessageHasBeenSet() const { return m_emailMessageHasBeenSet; }
81 template<typename EmailMessageT = EmailMessageReference>
82 void SetEmailMessage(EmailMessageT&& value) { m_emailMessageHasBeenSet = true; m_emailMessage = std::forward<EmailMessageT>(value); }
83 template<typename EmailMessageT = EmailMessageReference>
84 ReferenceSummary& WithEmailMessage(EmailMessageT&& value) { SetEmailMessage(std::forward<EmailMessageT>(value)); return *this;}
86
88
92 inline const StringReference& GetString() const { return m_string; }
93 inline bool StringHasBeenSet() const { return m_stringHasBeenSet; }
94 template<typename StringT = StringReference>
95 void SetString(StringT&& value) { m_stringHasBeenSet = true; m_string = std::forward<StringT>(value); }
96 template<typename StringT = StringReference>
97 ReferenceSummary& WithString(StringT&& value) { SetString(std::forward<StringT>(value)); return *this;}
99
101
105 inline const NumberReference& GetNumber() const { return m_number; }
106 inline bool NumberHasBeenSet() const { return m_numberHasBeenSet; }
107 template<typename NumberT = NumberReference>
108 void SetNumber(NumberT&& value) { m_numberHasBeenSet = true; m_number = std::forward<NumberT>(value); }
109 template<typename NumberT = NumberReference>
110 ReferenceSummary& WithNumber(NumberT&& value) { SetNumber(std::forward<NumberT>(value)); return *this;}
112
114
118 inline const DateReference& GetDate() const { return m_date; }
119 inline bool DateHasBeenSet() const { return m_dateHasBeenSet; }
120 template<typename DateT = DateReference>
121 void SetDate(DateT&& value) { m_dateHasBeenSet = true; m_date = std::forward<DateT>(value); }
122 template<typename DateT = DateReference>
123 ReferenceSummary& WithDate(DateT&& value) { SetDate(std::forward<DateT>(value)); return *this;}
125
127
131 inline const EmailReference& GetEmail() const { return m_email; }
132 inline bool EmailHasBeenSet() const { return m_emailHasBeenSet; }
133 template<typename EmailT = EmailReference>
134 void SetEmail(EmailT&& value) { m_emailHasBeenSet = true; m_email = std::forward<EmailT>(value); }
135 template<typename EmailT = EmailReference>
136 ReferenceSummary& WithEmail(EmailT&& value) { SetEmail(std::forward<EmailT>(value)); return *this;}
138 private:
139
140 UrlReference m_url;
141 bool m_urlHasBeenSet = false;
142
143 AttachmentReference m_attachment;
144 bool m_attachmentHasBeenSet = false;
145
146 EmailMessageReference m_emailMessage;
147 bool m_emailMessageHasBeenSet = false;
148
149 StringReference m_string;
150 bool m_stringHasBeenSet = false;
151
152 NumberReference m_number;
153 bool m_numberHasBeenSet = false;
154
155 DateReference m_date;
156 bool m_dateHasBeenSet = false;
157
158 EmailReference m_email;
159 bool m_emailHasBeenSet = false;
160 };
161
162} // namespace Model
163} // namespace Connect
164} // namespace Aws
const NumberReference & GetNumber() const
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
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
ReferenceSummary & WithEmailMessage(EmailMessageT &&value)
AWS_CONNECT_API ReferenceSummary()=default
Aws::Utils::Json::JsonValue JsonValue