AWS SDK for C++

AWS SDK for C++ Version 1.11.899

Loading...
Searching...
No Matches
OmniDashboardSummary.h
1
6#pragma once
7#include <aws/cloudwatchomni/CloudWatchOmni_EXPORTS.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/crt/cbor/Cbor.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Cbor {
18class CborValue;
19} // namespace Cbor
20} // namespace Utils
21namespace CloudWatchOmni {
22namespace Model {
23
31 public:
32 AWS_CLOUDWATCHOMNI_API OmniDashboardSummary() = default;
33 AWS_CLOUDWATCHOMNI_API OmniDashboardSummary(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
34 AWS_CLOUDWATCHOMNI_API OmniDashboardSummary& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
35 AWS_CLOUDWATCHOMNI_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
36
38
41 inline const Aws::String& GetDashboardId() const { return m_dashboardId; }
42 inline bool DashboardIdHasBeenSet() const { return m_dashboardIdHasBeenSet; }
43 template <typename DashboardIdT = Aws::String>
44 void SetDashboardId(DashboardIdT&& value) {
45 m_dashboardIdHasBeenSet = true;
46 m_dashboardId = std::forward<DashboardIdT>(value);
47 }
48 template <typename DashboardIdT = Aws::String>
49 OmniDashboardSummary& WithDashboardId(DashboardIdT&& value) {
50 SetDashboardId(std::forward<DashboardIdT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetArn() const { return m_arn; }
60 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
61 template <typename ArnT = Aws::String>
62 void SetArn(ArnT&& value) {
63 m_arnHasBeenSet = true;
64 m_arn = std::forward<ArnT>(value);
65 }
66 template <typename ArnT = Aws::String>
68 SetArn(std::forward<ArnT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetName() const { return m_name; }
78 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
79 template <typename NameT = Aws::String>
80 void SetName(NameT&& value) {
81 m_nameHasBeenSet = true;
82 m_name = std::forward<NameT>(value);
83 }
84 template <typename NameT = Aws::String>
86 SetName(std::forward<NameT>(value));
87 return *this;
88 }
90
92
95 inline const Aws::String& GetCreatedBy() const { return m_createdBy; }
96 inline bool CreatedByHasBeenSet() const { return m_createdByHasBeenSet; }
97 template <typename CreatedByT = Aws::String>
98 void SetCreatedBy(CreatedByT&& value) {
99 m_createdByHasBeenSet = true;
100 m_createdBy = std::forward<CreatedByT>(value);
101 }
102 template <typename CreatedByT = Aws::String>
103 OmniDashboardSummary& WithCreatedBy(CreatedByT&& value) {
104 SetCreatedBy(std::forward<CreatedByT>(value));
105 return *this;
106 }
108
110
113 inline const Aws::String& GetDescription() const { return m_description; }
114 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
115 template <typename DescriptionT = Aws::String>
116 void SetDescription(DescriptionT&& value) {
117 m_descriptionHasBeenSet = true;
118 m_description = std::forward<DescriptionT>(value);
119 }
120 template <typename DescriptionT = Aws::String>
121 OmniDashboardSummary& WithDescription(DescriptionT&& value) {
122 SetDescription(std::forward<DescriptionT>(value));
123 return *this;
124 }
126
128
131 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
132 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
133 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
134 void SetTags(TagsT&& value) {
135 m_tagsHasBeenSet = true;
136 m_tags = std::forward<TagsT>(value);
137 }
138 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
140 SetTags(std::forward<TagsT>(value));
141 return *this;
142 }
143 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
144 OmniDashboardSummary& AddTags(TagsKeyT&& key, TagsValueT&& value) {
145 m_tagsHasBeenSet = true;
146 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
147 return *this;
148 }
150
152
155 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
156 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
157 template <typename CreatedAtT = Aws::Utils::DateTime>
158 void SetCreatedAt(CreatedAtT&& value) {
159 m_createdAtHasBeenSet = true;
160 m_createdAt = std::forward<CreatedAtT>(value);
161 }
162 template <typename CreatedAtT = Aws::Utils::DateTime>
163 OmniDashboardSummary& WithCreatedAt(CreatedAtT&& value) {
164 SetCreatedAt(std::forward<CreatedAtT>(value));
165 return *this;
166 }
168
170
173 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
174 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
175 template <typename UpdatedAtT = Aws::Utils::DateTime>
176 void SetUpdatedAt(UpdatedAtT&& value) {
177 m_updatedAtHasBeenSet = true;
178 m_updatedAt = std::forward<UpdatedAtT>(value);
179 }
180 template <typename UpdatedAtT = Aws::Utils::DateTime>
181 OmniDashboardSummary& WithUpdatedAt(UpdatedAtT&& value) {
182 SetUpdatedAt(std::forward<UpdatedAtT>(value));
183 return *this;
184 }
186 private:
187 Aws::String m_dashboardId;
188
189 Aws::String m_arn;
190
191 Aws::String m_name;
192
193 Aws::String m_createdBy;
194
195 Aws::String m_description;
196
198
199 Aws::Utils::DateTime m_createdAt{};
200
201 Aws::Utils::DateTime m_updatedAt{};
202 bool m_dashboardIdHasBeenSet = false;
203 bool m_arnHasBeenSet = false;
204 bool m_nameHasBeenSet = false;
205 bool m_createdByHasBeenSet = false;
206 bool m_descriptionHasBeenSet = false;
207 bool m_tagsHasBeenSet = false;
208 bool m_createdAtHasBeenSet = false;
209 bool m_updatedAtHasBeenSet = false;
210};
211
212} // namespace Model
213} // namespace CloudWatchOmni
214} // namespace Aws
const Aws::Map< Aws::String, Aws::String > & GetTags() const
OmniDashboardSummary & WithUpdatedAt(UpdatedAtT &&value)
OmniDashboardSummary & WithDescription(DescriptionT &&value)
OmniDashboardSummary & WithArn(ArnT &&value)
AWS_CLOUDWATCHOMNI_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
AWS_CLOUDWATCHOMNI_API OmniDashboardSummary & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
const Aws::Utils::DateTime & GetUpdatedAt() const
OmniDashboardSummary & WithTags(TagsT &&value)
OmniDashboardSummary & WithCreatedAt(CreatedAtT &&value)
OmniDashboardSummary & WithName(NameT &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
OmniDashboardSummary & WithDashboardId(DashboardIdT &&value)
AWS_CLOUDWATCHOMNI_API OmniDashboardSummary()=default
AWS_CLOUDWATCHOMNI_API OmniDashboardSummary(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
OmniDashboardSummary & WithCreatedBy(CreatedByT &&value)
OmniDashboardSummary & AddTags(TagsKeyT &&key, TagsValueT &&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