AWS SDK for C++

AWS SDK for C++ Version 1.11.786

Loading...
Searching...
No Matches
GetLayoutResult.h
1
6#pragma once
7#include <aws/connectcases/ConnectCases_EXPORTS.h>
8#include <aws/connectcases/model/LayoutContent.h>
9#include <aws/core/http/HttpResponse.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13#include <aws/crt/Optional.h>
14
15#include <utility>
16
17namespace Aws {
18template <typename RESULT_TYPE>
19class AmazonWebServiceResult;
20
21namespace Utils {
22namespace Json {
23class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace ConnectCases {
27namespace Model {
29 public:
30 AWS_CONNECTCASES_API GetLayoutResult() = default;
33
35
38 inline const Aws::String& GetLayoutId() const { return m_layoutId; }
39 template <typename LayoutIdT = Aws::String>
40 void SetLayoutId(LayoutIdT&& value) {
41 m_layoutIdHasBeenSet = true;
42 m_layoutId = std::forward<LayoutIdT>(value);
43 }
44 template <typename LayoutIdT = Aws::String>
45 GetLayoutResult& WithLayoutId(LayoutIdT&& value) {
46 SetLayoutId(std::forward<LayoutIdT>(value));
47 return *this;
48 }
50
52
55 inline const Aws::String& GetLayoutArn() const { return m_layoutArn; }
56 template <typename LayoutArnT = Aws::String>
57 void SetLayoutArn(LayoutArnT&& value) {
58 m_layoutArnHasBeenSet = true;
59 m_layoutArn = std::forward<LayoutArnT>(value);
60 }
61 template <typename LayoutArnT = Aws::String>
62 GetLayoutResult& WithLayoutArn(LayoutArnT&& value) {
63 SetLayoutArn(std::forward<LayoutArnT>(value));
64 return *this;
65 }
67
69
72 inline const Aws::String& GetName() const { return m_name; }
73 template <typename NameT = Aws::String>
74 void SetName(NameT&& value) {
75 m_nameHasBeenSet = true;
76 m_name = std::forward<NameT>(value);
77 }
78 template <typename NameT = Aws::String>
79 GetLayoutResult& WithName(NameT&& value) {
80 SetName(std::forward<NameT>(value));
81 return *this;
82 }
84
86
90 inline const LayoutContent& GetContent() const { return m_content; }
91 template <typename ContentT = LayoutContent>
92 void SetContent(ContentT&& value) {
93 m_contentHasBeenSet = true;
94 m_content = std::forward<ContentT>(value);
95 }
96 template <typename ContentT = LayoutContent>
97 GetLayoutResult& WithContent(ContentT&& value) {
98 SetContent(std::forward<ContentT>(value));
99 return *this;
100 }
102
104
108 inline const Aws::Map<Aws::String, Aws::Crt::Optional<Aws::String>>& GetTags() const { return m_tags; }
109 template <typename TagsT = Aws::Map<Aws::String, Aws::Crt::Optional<Aws::String>>>
110 void SetTags(TagsT&& value) {
111 m_tagsHasBeenSet = true;
112 m_tags = std::forward<TagsT>(value);
113 }
114 template <typename TagsT = Aws::Map<Aws::String, Aws::Crt::Optional<Aws::String>>>
115 GetLayoutResult& WithTags(TagsT&& value) {
116 SetTags(std::forward<TagsT>(value));
117 return *this;
118 }
119 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::Crt::Optional<Aws::String>>
120 GetLayoutResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
121 m_tagsHasBeenSet = true;
122 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
123 return *this;
124 }
125 inline GetLayoutResult& AddTags(Aws::String key, Aws::Crt::Optional<Aws::String> value) {
126 m_tagsHasBeenSet = true;
127 m_tags.emplace(key, value);
128 return *this;
129 }
131
133
136 inline bool GetDeleted() const { return m_deleted; }
137 inline void SetDeleted(bool value) {
138 m_deletedHasBeenSet = true;
139 m_deleted = value;
140 }
141 inline GetLayoutResult& WithDeleted(bool value) {
142 SetDeleted(value);
143 return *this;
144 }
146
148
151 inline const Aws::Utils::DateTime& GetCreatedTime() const { return m_createdTime; }
152 template <typename CreatedTimeT = Aws::Utils::DateTime>
153 void SetCreatedTime(CreatedTimeT&& value) {
154 m_createdTimeHasBeenSet = true;
155 m_createdTime = std::forward<CreatedTimeT>(value);
156 }
157 template <typename CreatedTimeT = Aws::Utils::DateTime>
158 GetLayoutResult& WithCreatedTime(CreatedTimeT&& value) {
159 SetCreatedTime(std::forward<CreatedTimeT>(value));
160 return *this;
161 }
163
165
168 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
169 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
170 void SetLastModifiedTime(LastModifiedTimeT&& value) {
171 m_lastModifiedTimeHasBeenSet = true;
172 m_lastModifiedTime = std::forward<LastModifiedTimeT>(value);
173 }
174 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
175 GetLayoutResult& WithLastModifiedTime(LastModifiedTimeT&& value) {
176 SetLastModifiedTime(std::forward<LastModifiedTimeT>(value));
177 return *this;
178 }
180
182
183 inline const Aws::String& GetRequestId() const { return m_requestId; }
184 template <typename RequestIdT = Aws::String>
185 void SetRequestId(RequestIdT&& value) {
186 m_requestIdHasBeenSet = true;
187 m_requestId = std::forward<RequestIdT>(value);
188 }
189 template <typename RequestIdT = Aws::String>
190 GetLayoutResult& WithRequestId(RequestIdT&& value) {
191 SetRequestId(std::forward<RequestIdT>(value));
192 return *this;
193 }
195 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
196
197 private:
198 Aws::String m_layoutId;
199
200 Aws::String m_layoutArn;
201
202 Aws::String m_name;
203
204 LayoutContent m_content;
205
207
208 bool m_deleted{false};
209
210 Aws::Utils::DateTime m_createdTime{};
211
212 Aws::Utils::DateTime m_lastModifiedTime{};
213
214 Aws::String m_requestId;
215 Aws::Http::HttpResponseCode m_HttpResponseCode;
216 bool m_layoutIdHasBeenSet = false;
217 bool m_layoutArnHasBeenSet = false;
218 bool m_nameHasBeenSet = false;
219 bool m_contentHasBeenSet = false;
220 bool m_tagsHasBeenSet = false;
221 bool m_deletedHasBeenSet = false;
222 bool m_createdTimeHasBeenSet = false;
223 bool m_lastModifiedTimeHasBeenSet = false;
224 bool m_requestIdHasBeenSet = false;
225};
226
227} // namespace Model
228} // namespace ConnectCases
229} // namespace Aws
const Aws::String & GetRequestId() const
GetLayoutResult & WithLayoutId(LayoutIdT &&value)
GetLayoutResult & WithContent(ContentT &&value)
const LayoutContent & GetContent() const
GetLayoutResult & WithRequestId(RequestIdT &&value)
void SetCreatedTime(CreatedTimeT &&value)
GetLayoutResult & AddTags(TagsKeyT &&key, TagsValueT &&value)
const Aws::Map< Aws::String, Aws::Crt::Optional< Aws::String > > & GetTags() const
AWS_CONNECTCASES_API GetLayoutResult()=default
const Aws::String & GetLayoutArn() const
GetLayoutResult & WithCreatedTime(CreatedTimeT &&value)
const Aws::Utils::DateTime & GetLastModifiedTime() const
AWS_CONNECTCASES_API GetLayoutResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::String & GetLayoutId() const
GetLayoutResult & WithLastModifiedTime(LastModifiedTimeT &&value)
AWS_CONNECTCASES_API GetLayoutResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Utils::DateTime & GetCreatedTime() const
GetLayoutResult & WithLayoutArn(LayoutArnT &&value)
GetLayoutResult & AddTags(Aws::String key, Aws::Crt::Optional< Aws::String > value)
void SetLastModifiedTime(LastModifiedTimeT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
GetLayoutResult & WithName(NameT &&value)
GetLayoutResult & WithTags(TagsT &&value)
GetLayoutResult & WithDeleted(bool 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
Aws::Utils::Json::JsonValue JsonValue