AWS SDK for C++

AWS SDK for C++ Version 1.11.752

Loading...
Searching...
No Matches
LayoutItem.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/customer-profiles/CustomerProfiles_EXPORTS.h>
11#include <aws/customer-profiles/model/LayoutType.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace CustomerProfiles {
23namespace Model {
24
33 public:
34 AWS_CUSTOMERPROFILES_API LayoutItem() = default;
35 AWS_CUSTOMERPROFILES_API LayoutItem(Aws::Utils::Json::JsonView jsonValue);
36 AWS_CUSTOMERPROFILES_API LayoutItem& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_CUSTOMERPROFILES_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::String& GetLayoutDefinitionName() const { return m_layoutDefinitionName; }
44 inline bool LayoutDefinitionNameHasBeenSet() const { return m_layoutDefinitionNameHasBeenSet; }
45 template <typename LayoutDefinitionNameT = Aws::String>
46 void SetLayoutDefinitionName(LayoutDefinitionNameT&& value) {
47 m_layoutDefinitionNameHasBeenSet = true;
48 m_layoutDefinitionName = std::forward<LayoutDefinitionNameT>(value);
49 }
50 template <typename LayoutDefinitionNameT = Aws::String>
51 LayoutItem& WithLayoutDefinitionName(LayoutDefinitionNameT&& value) {
52 SetLayoutDefinitionName(std::forward<LayoutDefinitionNameT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetDescription() const { return m_description; }
62 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
63 template <typename DescriptionT = Aws::String>
64 void SetDescription(DescriptionT&& value) {
65 m_descriptionHasBeenSet = true;
66 m_description = std::forward<DescriptionT>(value);
67 }
68 template <typename DescriptionT = Aws::String>
69 LayoutItem& WithDescription(DescriptionT&& value) {
70 SetDescription(std::forward<DescriptionT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::String& GetDisplayName() const { return m_displayName; }
80 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
81 template <typename DisplayNameT = Aws::String>
82 void SetDisplayName(DisplayNameT&& value) {
83 m_displayNameHasBeenSet = true;
84 m_displayName = std::forward<DisplayNameT>(value);
85 }
86 template <typename DisplayNameT = Aws::String>
87 LayoutItem& WithDisplayName(DisplayNameT&& value) {
88 SetDisplayName(std::forward<DisplayNameT>(value));
89 return *this;
90 }
92
94
99 inline bool GetIsDefault() const { return m_isDefault; }
100 inline bool IsDefaultHasBeenSet() const { return m_isDefaultHasBeenSet; }
101 inline void SetIsDefault(bool value) {
102 m_isDefaultHasBeenSet = true;
103 m_isDefault = value;
104 }
105 inline LayoutItem& WithIsDefault(bool value) {
106 SetIsDefault(value);
107 return *this;
108 }
110
112
116 inline LayoutType GetLayoutType() const { return m_layoutType; }
117 inline bool LayoutTypeHasBeenSet() const { return m_layoutTypeHasBeenSet; }
118 inline void SetLayoutType(LayoutType value) {
119 m_layoutTypeHasBeenSet = true;
120 m_layoutType = value;
121 }
123 SetLayoutType(value);
124 return *this;
125 }
127
129
132 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
133 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
134 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
135 void SetTags(TagsT&& value) {
136 m_tagsHasBeenSet = true;
137 m_tags = std::forward<TagsT>(value);
138 }
139 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
140 LayoutItem& WithTags(TagsT&& value) {
141 SetTags(std::forward<TagsT>(value));
142 return *this;
143 }
144 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
145 LayoutItem& AddTags(TagsKeyT&& key, TagsValueT&& value) {
146 m_tagsHasBeenSet = true;
147 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
148 return *this;
149 }
151
153
156 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
157 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
158 template <typename CreatedAtT = Aws::Utils::DateTime>
159 void SetCreatedAt(CreatedAtT&& value) {
160 m_createdAtHasBeenSet = true;
161 m_createdAt = std::forward<CreatedAtT>(value);
162 }
163 template <typename CreatedAtT = Aws::Utils::DateTime>
164 LayoutItem& WithCreatedAt(CreatedAtT&& value) {
165 SetCreatedAt(std::forward<CreatedAtT>(value));
166 return *this;
167 }
169
171
174 inline const Aws::Utils::DateTime& GetLastUpdatedAt() const { return m_lastUpdatedAt; }
175 inline bool LastUpdatedAtHasBeenSet() const { return m_lastUpdatedAtHasBeenSet; }
176 template <typename LastUpdatedAtT = Aws::Utils::DateTime>
177 void SetLastUpdatedAt(LastUpdatedAtT&& value) {
178 m_lastUpdatedAtHasBeenSet = true;
179 m_lastUpdatedAt = std::forward<LastUpdatedAtT>(value);
180 }
181 template <typename LastUpdatedAtT = Aws::Utils::DateTime>
182 LayoutItem& WithLastUpdatedAt(LastUpdatedAtT&& value) {
183 SetLastUpdatedAt(std::forward<LastUpdatedAtT>(value));
184 return *this;
185 }
187 private:
188 Aws::String m_layoutDefinitionName;
189
190 Aws::String m_description;
191
192 Aws::String m_displayName;
193
194 bool m_isDefault{false};
195
196 LayoutType m_layoutType{LayoutType::NOT_SET};
197
199
200 Aws::Utils::DateTime m_createdAt{};
201
202 Aws::Utils::DateTime m_lastUpdatedAt{};
203 bool m_layoutDefinitionNameHasBeenSet = false;
204 bool m_descriptionHasBeenSet = false;
205 bool m_displayNameHasBeenSet = false;
206 bool m_isDefaultHasBeenSet = false;
207 bool m_layoutTypeHasBeenSet = false;
208 bool m_tagsHasBeenSet = false;
209 bool m_createdAtHasBeenSet = false;
210 bool m_lastUpdatedAtHasBeenSet = false;
211};
212
213} // namespace Model
214} // namespace CustomerProfiles
215} // namespace Aws
const Aws::String & GetLayoutDefinitionName() const
Definition LayoutItem.h:43
void SetCreatedAt(CreatedAtT &&value)
Definition LayoutItem.h:159
LayoutItem & WithCreatedAt(CreatedAtT &&value)
Definition LayoutItem.h:164
AWS_CUSTOMERPROFILES_API LayoutItem(Aws::Utils::Json::JsonView jsonValue)
LayoutItem & AddTags(TagsKeyT &&key, TagsValueT &&value)
Definition LayoutItem.h:145
const Aws::String & GetDescription() const
Definition LayoutItem.h:61
void SetLastUpdatedAt(LastUpdatedAtT &&value)
Definition LayoutItem.h:177
const Aws::String & GetDisplayName() const
Definition LayoutItem.h:79
void SetDisplayName(DisplayNameT &&value)
Definition LayoutItem.h:82
LayoutItem & WithDisplayName(DisplayNameT &&value)
Definition LayoutItem.h:87
LayoutItem & WithLayoutDefinitionName(LayoutDefinitionNameT &&value)
Definition LayoutItem.h:51
AWS_CUSTOMERPROFILES_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Utils::DateTime & GetLastUpdatedAt() const
Definition LayoutItem.h:174
LayoutItem & WithLayoutType(LayoutType value)
Definition LayoutItem.h:122
const Aws::Utils::DateTime & GetCreatedAt() const
Definition LayoutItem.h:156
LayoutItem & WithTags(TagsT &&value)
Definition LayoutItem.h:140
AWS_CUSTOMERPROFILES_API LayoutItem & operator=(Aws::Utils::Json::JsonView jsonValue)
LayoutItem & WithIsDefault(bool value)
Definition LayoutItem.h:105
LayoutItem & WithDescription(DescriptionT &&value)
Definition LayoutItem.h:69
AWS_CUSTOMERPROFILES_API LayoutItem()=default
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Definition LayoutItem.h:132
void SetDescription(DescriptionT &&value)
Definition LayoutItem.h:64
void SetLayoutDefinitionName(LayoutDefinitionNameT &&value)
Definition LayoutItem.h:46
LayoutItem & WithLastUpdatedAt(LastUpdatedAtT &&value)
Definition LayoutItem.h:182
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