AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
AnomalyDetectorSummary.h
1
6#pragma once
7#include <aws/amp/PrometheusService_EXPORTS.h>
8#include <aws/amp/model/AnomalyDetectorStatus.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace PrometheusService {
23namespace Model {
24
32 public:
33 AWS_PROMETHEUSSERVICE_API AnomalyDetectorSummary() = default;
34 AWS_PROMETHEUSSERVICE_API AnomalyDetectorSummary(Aws::Utils::Json::JsonView jsonValue);
35 AWS_PROMETHEUSSERVICE_API AnomalyDetectorSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_PROMETHEUSSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetArn() const { return m_arn; }
43 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
44 template <typename ArnT = Aws::String>
45 void SetArn(ArnT&& value) {
46 m_arnHasBeenSet = true;
47 m_arn = std::forward<ArnT>(value);
48 }
49 template <typename ArnT = Aws::String>
51 SetArn(std::forward<ArnT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetAnomalyDetectorId() const { return m_anomalyDetectorId; }
61 inline bool AnomalyDetectorIdHasBeenSet() const { return m_anomalyDetectorIdHasBeenSet; }
62 template <typename AnomalyDetectorIdT = Aws::String>
63 void SetAnomalyDetectorId(AnomalyDetectorIdT&& value) {
64 m_anomalyDetectorIdHasBeenSet = true;
65 m_anomalyDetectorId = std::forward<AnomalyDetectorIdT>(value);
66 }
67 template <typename AnomalyDetectorIdT = Aws::String>
68 AnomalyDetectorSummary& WithAnomalyDetectorId(AnomalyDetectorIdT&& value) {
69 SetAnomalyDetectorId(std::forward<AnomalyDetectorIdT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetAlias() const { return m_alias; }
79 inline bool AliasHasBeenSet() const { return m_aliasHasBeenSet; }
80 template <typename AliasT = Aws::String>
81 void SetAlias(AliasT&& value) {
82 m_aliasHasBeenSet = true;
83 m_alias = std::forward<AliasT>(value);
84 }
85 template <typename AliasT = Aws::String>
87 SetAlias(std::forward<AliasT>(value));
88 return *this;
89 }
91
93
96 inline const AnomalyDetectorStatus& GetStatus() const { return m_status; }
97 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
98 template <typename StatusT = AnomalyDetectorStatus>
99 void SetStatus(StatusT&& value) {
100 m_statusHasBeenSet = true;
101 m_status = std::forward<StatusT>(value);
102 }
103 template <typename StatusT = AnomalyDetectorStatus>
105 SetStatus(std::forward<StatusT>(value));
106 return *this;
107 }
109
111
114 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
115 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
116 template <typename CreatedAtT = Aws::Utils::DateTime>
117 void SetCreatedAt(CreatedAtT&& value) {
118 m_createdAtHasBeenSet = true;
119 m_createdAt = std::forward<CreatedAtT>(value);
120 }
121 template <typename CreatedAtT = Aws::Utils::DateTime>
123 SetCreatedAt(std::forward<CreatedAtT>(value));
124 return *this;
125 }
127
129
132 inline const Aws::Utils::DateTime& GetModifiedAt() const { return m_modifiedAt; }
133 inline bool ModifiedAtHasBeenSet() const { return m_modifiedAtHasBeenSet; }
134 template <typename ModifiedAtT = Aws::Utils::DateTime>
135 void SetModifiedAt(ModifiedAtT&& value) {
136 m_modifiedAtHasBeenSet = true;
137 m_modifiedAt = std::forward<ModifiedAtT>(value);
138 }
139 template <typename ModifiedAtT = Aws::Utils::DateTime>
141 SetModifiedAt(std::forward<ModifiedAtT>(value));
142 return *this;
143 }
145
147
150 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
151 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
152 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
153 void SetTags(TagsT&& value) {
154 m_tagsHasBeenSet = true;
155 m_tags = std::forward<TagsT>(value);
156 }
157 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
159 SetTags(std::forward<TagsT>(value));
160 return *this;
161 }
162 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
163 AnomalyDetectorSummary& AddTags(TagsKeyT&& key, TagsValueT&& value) {
164 m_tagsHasBeenSet = true;
165 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
166 return *this;
167 }
169 private:
170 Aws::String m_arn;
171
172 Aws::String m_anomalyDetectorId;
173
174 Aws::String m_alias;
175
176 AnomalyDetectorStatus m_status;
177
178 Aws::Utils::DateTime m_createdAt{};
179
180 Aws::Utils::DateTime m_modifiedAt{};
181
183 bool m_arnHasBeenSet = false;
184 bool m_anomalyDetectorIdHasBeenSet = false;
185 bool m_aliasHasBeenSet = false;
186 bool m_statusHasBeenSet = false;
187 bool m_createdAtHasBeenSet = false;
188 bool m_modifiedAtHasBeenSet = false;
189 bool m_tagsHasBeenSet = false;
190};
191
192} // namespace Model
193} // namespace PrometheusService
194} // namespace Aws
AWS_PROMETHEUSSERVICE_API AnomalyDetectorSummary()=default
AWS_PROMETHEUSSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
AnomalyDetectorSummary & WithCreatedAt(CreatedAtT &&value)
AnomalyDetectorSummary & AddTags(TagsKeyT &&key, TagsValueT &&value)
AWS_PROMETHEUSSERVICE_API AnomalyDetectorSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
AnomalyDetectorSummary & WithAlias(AliasT &&value)
AnomalyDetectorSummary & WithAnomalyDetectorId(AnomalyDetectorIdT &&value)
AnomalyDetectorSummary & WithModifiedAt(ModifiedAtT &&value)
AWS_PROMETHEUSSERVICE_API AnomalyDetectorSummary(Aws::Utils::Json::JsonView jsonValue)
AnomalyDetectorSummary & WithStatus(StatusT &&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