AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
LayoutItem.h
1
6#pragma once
7#include <aws/customer-profiles/CustomerProfiles_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/customer-profiles/model/LayoutType.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/core/utils/DateTime.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace CustomerProfiles
25{
26namespace Model
27{
28
37 {
38 public:
39 AWS_CUSTOMERPROFILES_API LayoutItem() = default;
40 AWS_CUSTOMERPROFILES_API LayoutItem(Aws::Utils::Json::JsonView jsonValue);
41 AWS_CUSTOMERPROFILES_API LayoutItem& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_CUSTOMERPROFILES_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::String& GetLayoutDefinitionName() const { return m_layoutDefinitionName; }
50 inline bool LayoutDefinitionNameHasBeenSet() const { return m_layoutDefinitionNameHasBeenSet; }
51 template<typename LayoutDefinitionNameT = Aws::String>
52 void SetLayoutDefinitionName(LayoutDefinitionNameT&& value) { m_layoutDefinitionNameHasBeenSet = true; m_layoutDefinitionName = std::forward<LayoutDefinitionNameT>(value); }
53 template<typename LayoutDefinitionNameT = Aws::String>
54 LayoutItem& WithLayoutDefinitionName(LayoutDefinitionNameT&& value) { SetLayoutDefinitionName(std::forward<LayoutDefinitionNameT>(value)); return *this;}
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) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
65 template<typename DescriptionT = Aws::String>
66 LayoutItem& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
68
70
73 inline const Aws::String& GetDisplayName() const { return m_displayName; }
74 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
75 template<typename DisplayNameT = Aws::String>
76 void SetDisplayName(DisplayNameT&& value) { m_displayNameHasBeenSet = true; m_displayName = std::forward<DisplayNameT>(value); }
77 template<typename DisplayNameT = Aws::String>
78 LayoutItem& WithDisplayName(DisplayNameT&& value) { SetDisplayName(std::forward<DisplayNameT>(value)); return *this;}
80
82
87 inline bool GetIsDefault() const { return m_isDefault; }
88 inline bool IsDefaultHasBeenSet() const { return m_isDefaultHasBeenSet; }
89 inline void SetIsDefault(bool value) { m_isDefaultHasBeenSet = true; m_isDefault = value; }
90 inline LayoutItem& WithIsDefault(bool value) { SetIsDefault(value); return *this;}
92
94
98 inline LayoutType GetLayoutType() const { return m_layoutType; }
99 inline bool LayoutTypeHasBeenSet() const { return m_layoutTypeHasBeenSet; }
100 inline void SetLayoutType(LayoutType value) { m_layoutTypeHasBeenSet = true; m_layoutType = value; }
101 inline LayoutItem& WithLayoutType(LayoutType value) { SetLayoutType(value); return *this;}
103
105
108 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
109 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
110 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
111 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
112 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
113 LayoutItem& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
114 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
115 LayoutItem& AddTags(TagsKeyT&& key, TagsValueT&& value) {
116 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
117 }
119
121
124 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
125 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
126 template<typename CreatedAtT = Aws::Utils::DateTime>
127 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
128 template<typename CreatedAtT = Aws::Utils::DateTime>
129 LayoutItem& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
131
133
136 inline const Aws::Utils::DateTime& GetLastUpdatedAt() const { return m_lastUpdatedAt; }
137 inline bool LastUpdatedAtHasBeenSet() const { return m_lastUpdatedAtHasBeenSet; }
138 template<typename LastUpdatedAtT = Aws::Utils::DateTime>
139 void SetLastUpdatedAt(LastUpdatedAtT&& value) { m_lastUpdatedAtHasBeenSet = true; m_lastUpdatedAt = std::forward<LastUpdatedAtT>(value); }
140 template<typename LastUpdatedAtT = Aws::Utils::DateTime>
141 LayoutItem& WithLastUpdatedAt(LastUpdatedAtT&& value) { SetLastUpdatedAt(std::forward<LastUpdatedAtT>(value)); return *this;}
143 private:
144
145 Aws::String m_layoutDefinitionName;
146 bool m_layoutDefinitionNameHasBeenSet = false;
147
148 Aws::String m_description;
149 bool m_descriptionHasBeenSet = false;
150
151 Aws::String m_displayName;
152 bool m_displayNameHasBeenSet = false;
153
154 bool m_isDefault{false};
155 bool m_isDefaultHasBeenSet = false;
156
157 LayoutType m_layoutType{LayoutType::NOT_SET};
158 bool m_layoutTypeHasBeenSet = false;
159
161 bool m_tagsHasBeenSet = false;
162
163 Aws::Utils::DateTime m_createdAt{};
164 bool m_createdAtHasBeenSet = false;
165
166 Aws::Utils::DateTime m_lastUpdatedAt{};
167 bool m_lastUpdatedAtHasBeenSet = false;
168 };
169
170} // namespace Model
171} // namespace CustomerProfiles
172} // namespace Aws
const Aws::String & GetLayoutDefinitionName() const
Definition LayoutItem.h:49
void SetCreatedAt(CreatedAtT &&value)
Definition LayoutItem.h:127
LayoutItem & WithCreatedAt(CreatedAtT &&value)
Definition LayoutItem.h:129
AWS_CUSTOMERPROFILES_API LayoutItem(Aws::Utils::Json::JsonView jsonValue)
LayoutItem & AddTags(TagsKeyT &&key, TagsValueT &&value)
Definition LayoutItem.h:115
const Aws::String & GetDescription() const
Definition LayoutItem.h:61
void SetLastUpdatedAt(LastUpdatedAtT &&value)
Definition LayoutItem.h:139
const Aws::String & GetDisplayName() const
Definition LayoutItem.h:73
void SetDisplayName(DisplayNameT &&value)
Definition LayoutItem.h:76
LayoutItem & WithDisplayName(DisplayNameT &&value)
Definition LayoutItem.h:78
LayoutItem & WithLayoutDefinitionName(LayoutDefinitionNameT &&value)
Definition LayoutItem.h:54
AWS_CUSTOMERPROFILES_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Utils::DateTime & GetLastUpdatedAt() const
Definition LayoutItem.h:136
LayoutItem & WithLayoutType(LayoutType value)
Definition LayoutItem.h:101
const Aws::Utils::DateTime & GetCreatedAt() const
Definition LayoutItem.h:124
LayoutItem & WithTags(TagsT &&value)
Definition LayoutItem.h:113
AWS_CUSTOMERPROFILES_API LayoutItem & operator=(Aws::Utils::Json::JsonView jsonValue)
LayoutItem & WithIsDefault(bool value)
Definition LayoutItem.h:90
LayoutItem & WithDescription(DescriptionT &&value)
Definition LayoutItem.h:66
AWS_CUSTOMERPROFILES_API LayoutItem()=default
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Definition LayoutItem.h:108
void SetDescription(DescriptionT &&value)
Definition LayoutItem.h:64
void SetLayoutDefinitionName(LayoutDefinitionNameT &&value)
Definition LayoutItem.h:52
LayoutItem & WithLastUpdatedAt(LastUpdatedAtT &&value)
Definition LayoutItem.h:141
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