AWS SDK for C++

AWS SDK for C++ Version 1.11.900

Loading...
Searching...
No Matches
OmniDashboard.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
30 public:
31 AWS_CLOUDWATCHOMNI_API OmniDashboard() = default;
32 AWS_CLOUDWATCHOMNI_API OmniDashboard(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
33 AWS_CLOUDWATCHOMNI_API OmniDashboard& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
34 AWS_CLOUDWATCHOMNI_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
35
37
40 inline const Aws::String& GetDashboardId() const { return m_dashboardId; }
41 inline bool DashboardIdHasBeenSet() const { return m_dashboardIdHasBeenSet; }
42 template <typename DashboardIdT = Aws::String>
43 void SetDashboardId(DashboardIdT&& value) {
44 m_dashboardIdHasBeenSet = true;
45 m_dashboardId = std::forward<DashboardIdT>(value);
46 }
47 template <typename DashboardIdT = Aws::String>
48 OmniDashboard& WithDashboardId(DashboardIdT&& value) {
49 SetDashboardId(std::forward<DashboardIdT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetArn() const { return m_arn; }
59 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
60 template <typename ArnT = Aws::String>
61 void SetArn(ArnT&& value) {
62 m_arnHasBeenSet = true;
63 m_arn = std::forward<ArnT>(value);
64 }
65 template <typename ArnT = Aws::String>
66 OmniDashboard& WithArn(ArnT&& value) {
67 SetArn(std::forward<ArnT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetName() const { return m_name; }
77 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
78 template <typename NameT = Aws::String>
79 void SetName(NameT&& value) {
80 m_nameHasBeenSet = true;
81 m_name = std::forward<NameT>(value);
82 }
83 template <typename NameT = Aws::String>
84 OmniDashboard& WithName(NameT&& value) {
85 SetName(std::forward<NameT>(value));
86 return *this;
87 }
89
91
94 inline const Aws::String& GetBody() const { return m_body; }
95 inline bool BodyHasBeenSet() const { return m_bodyHasBeenSet; }
96 template <typename BodyT = Aws::String>
97 void SetBody(BodyT&& value) {
98 m_bodyHasBeenSet = true;
99 m_body = std::forward<BodyT>(value);
100 }
101 template <typename BodyT = Aws::String>
102 OmniDashboard& WithBody(BodyT&& value) {
103 SetBody(std::forward<BodyT>(value));
104 return *this;
105 }
107
109
112 inline const Aws::String& GetCreatedBy() const { return m_createdBy; }
113 inline bool CreatedByHasBeenSet() const { return m_createdByHasBeenSet; }
114 template <typename CreatedByT = Aws::String>
115 void SetCreatedBy(CreatedByT&& value) {
116 m_createdByHasBeenSet = true;
117 m_createdBy = std::forward<CreatedByT>(value);
118 }
119 template <typename CreatedByT = Aws::String>
120 OmniDashboard& WithCreatedBy(CreatedByT&& value) {
121 SetCreatedBy(std::forward<CreatedByT>(value));
122 return *this;
123 }
125
127
130 inline const Aws::String& GetDescription() const { return m_description; }
131 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
132 template <typename DescriptionT = Aws::String>
133 void SetDescription(DescriptionT&& value) {
134 m_descriptionHasBeenSet = true;
135 m_description = std::forward<DescriptionT>(value);
136 }
137 template <typename DescriptionT = Aws::String>
138 OmniDashboard& WithDescription(DescriptionT&& value) {
139 SetDescription(std::forward<DescriptionT>(value));
140 return *this;
141 }
143
145
148 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
149 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
150 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
151 void SetTags(TagsT&& value) {
152 m_tagsHasBeenSet = true;
153 m_tags = std::forward<TagsT>(value);
154 }
155 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
156 OmniDashboard& WithTags(TagsT&& value) {
157 SetTags(std::forward<TagsT>(value));
158 return *this;
159 }
160 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
161 OmniDashboard& AddTags(TagsKeyT&& key, TagsValueT&& value) {
162 m_tagsHasBeenSet = true;
163 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
164 return *this;
165 }
167
169
172 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
173 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
174 template <typename CreatedAtT = Aws::Utils::DateTime>
175 void SetCreatedAt(CreatedAtT&& value) {
176 m_createdAtHasBeenSet = true;
177 m_createdAt = std::forward<CreatedAtT>(value);
178 }
179 template <typename CreatedAtT = Aws::Utils::DateTime>
180 OmniDashboard& WithCreatedAt(CreatedAtT&& value) {
181 SetCreatedAt(std::forward<CreatedAtT>(value));
182 return *this;
183 }
185
187
190 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
191 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
192 template <typename UpdatedAtT = Aws::Utils::DateTime>
193 void SetUpdatedAt(UpdatedAtT&& value) {
194 m_updatedAtHasBeenSet = true;
195 m_updatedAt = std::forward<UpdatedAtT>(value);
196 }
197 template <typename UpdatedAtT = Aws::Utils::DateTime>
198 OmniDashboard& WithUpdatedAt(UpdatedAtT&& value) {
199 SetUpdatedAt(std::forward<UpdatedAtT>(value));
200 return *this;
201 }
203 private:
204 Aws::String m_dashboardId;
205
206 Aws::String m_arn;
207
208 Aws::String m_name;
209
210 Aws::String m_body;
211
212 Aws::String m_createdBy;
213
214 Aws::String m_description;
215
217
218 Aws::Utils::DateTime m_createdAt{};
219
220 Aws::Utils::DateTime m_updatedAt{};
221 bool m_dashboardIdHasBeenSet = false;
222 bool m_arnHasBeenSet = false;
223 bool m_nameHasBeenSet = false;
224 bool m_bodyHasBeenSet = false;
225 bool m_createdByHasBeenSet = false;
226 bool m_descriptionHasBeenSet = false;
227 bool m_tagsHasBeenSet = false;
228 bool m_createdAtHasBeenSet = false;
229 bool m_updatedAtHasBeenSet = false;
230};
231
232} // namespace Model
233} // namespace CloudWatchOmni
234} // namespace Aws
AWS_CLOUDWATCHOMNI_API OmniDashboard()=default
const Aws::Map< Aws::String, Aws::String > & GetTags() const
void SetDashboardId(DashboardIdT &&value)
void SetDescription(DescriptionT &&value)
AWS_CLOUDWATCHOMNI_API OmniDashboard & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
OmniDashboard & WithCreatedAt(CreatedAtT &&value)
OmniDashboard & WithDashboardId(DashboardIdT &&value)
OmniDashboard & WithName(NameT &&value)
AWS_CLOUDWATCHOMNI_API OmniDashboard(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
OmniDashboard & WithCreatedBy(CreatedByT &&value)
OmniDashboard & WithTags(TagsT &&value)
const Aws::Utils::DateTime & GetUpdatedAt() const
const Aws::String & GetDescription() const
OmniDashboard & WithUpdatedAt(UpdatedAtT &&value)
OmniDashboard & AddTags(TagsKeyT &&key, TagsValueT &&value)
const Aws::String & GetArn() const
const Aws::String & GetCreatedBy() const
OmniDashboard & WithDescription(DescriptionT &&value)
const Aws::String & GetName() const
AWS_CLOUDWATCHOMNI_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
const Aws::String & GetDashboardId() const
OmniDashboard & WithArn(ArnT &&value)
const Aws::String & GetBody() const
OmniDashboard & WithBody(BodyT &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
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