AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
AnomalyDetectorSummary.h
1
6#pragma once
7#include <aws/lookoutmetrics/LookoutMetrics_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/lookoutmetrics/model/AnomalyDetectorStatus.h>
11#include <aws/core/utils/memory/stl/AWSMap.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 LookoutMetrics
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_LOOKOUTMETRICS_API AnomalyDetectorSummary() = default;
39 AWS_LOOKOUTMETRICS_API AnomalyDetectorSummary(Aws::Utils::Json::JsonView jsonValue);
41 AWS_LOOKOUTMETRICS_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetAnomalyDetectorArn() const { return m_anomalyDetectorArn; }
49 inline bool AnomalyDetectorArnHasBeenSet() const { return m_anomalyDetectorArnHasBeenSet; }
50 template<typename AnomalyDetectorArnT = Aws::String>
51 void SetAnomalyDetectorArn(AnomalyDetectorArnT&& value) { m_anomalyDetectorArnHasBeenSet = true; m_anomalyDetectorArn = std::forward<AnomalyDetectorArnT>(value); }
52 template<typename AnomalyDetectorArnT = Aws::String>
53 AnomalyDetectorSummary& WithAnomalyDetectorArn(AnomalyDetectorArnT&& value) { SetAnomalyDetectorArn(std::forward<AnomalyDetectorArnT>(value)); return *this;}
55
57
60 inline const Aws::String& GetAnomalyDetectorName() const { return m_anomalyDetectorName; }
61 inline bool AnomalyDetectorNameHasBeenSet() const { return m_anomalyDetectorNameHasBeenSet; }
62 template<typename AnomalyDetectorNameT = Aws::String>
63 void SetAnomalyDetectorName(AnomalyDetectorNameT&& value) { m_anomalyDetectorNameHasBeenSet = true; m_anomalyDetectorName = std::forward<AnomalyDetectorNameT>(value); }
64 template<typename AnomalyDetectorNameT = Aws::String>
65 AnomalyDetectorSummary& WithAnomalyDetectorName(AnomalyDetectorNameT&& value) { SetAnomalyDetectorName(std::forward<AnomalyDetectorNameT>(value)); return *this;}
67
69
72 inline const Aws::String& GetAnomalyDetectorDescription() const { return m_anomalyDetectorDescription; }
73 inline bool AnomalyDetectorDescriptionHasBeenSet() const { return m_anomalyDetectorDescriptionHasBeenSet; }
74 template<typename AnomalyDetectorDescriptionT = Aws::String>
75 void SetAnomalyDetectorDescription(AnomalyDetectorDescriptionT&& value) { m_anomalyDetectorDescriptionHasBeenSet = true; m_anomalyDetectorDescription = std::forward<AnomalyDetectorDescriptionT>(value); }
76 template<typename AnomalyDetectorDescriptionT = Aws::String>
77 AnomalyDetectorSummary& WithAnomalyDetectorDescription(AnomalyDetectorDescriptionT&& value) { SetAnomalyDetectorDescription(std::forward<AnomalyDetectorDescriptionT>(value)); return *this;}
79
81
84 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
85 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
86 template<typename CreationTimeT = Aws::Utils::DateTime>
87 void SetCreationTime(CreationTimeT&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::forward<CreationTimeT>(value); }
88 template<typename CreationTimeT = Aws::Utils::DateTime>
89 AnomalyDetectorSummary& WithCreationTime(CreationTimeT&& value) { SetCreationTime(std::forward<CreationTimeT>(value)); return *this;}
91
93
96 inline const Aws::Utils::DateTime& GetLastModificationTime() const { return m_lastModificationTime; }
97 inline bool LastModificationTimeHasBeenSet() const { return m_lastModificationTimeHasBeenSet; }
98 template<typename LastModificationTimeT = Aws::Utils::DateTime>
99 void SetLastModificationTime(LastModificationTimeT&& value) { m_lastModificationTimeHasBeenSet = true; m_lastModificationTime = std::forward<LastModificationTimeT>(value); }
100 template<typename LastModificationTimeT = Aws::Utils::DateTime>
101 AnomalyDetectorSummary& WithLastModificationTime(LastModificationTimeT&& value) { SetLastModificationTime(std::forward<LastModificationTimeT>(value)); return *this;}
103
105
108 inline AnomalyDetectorStatus GetStatus() const { return m_status; }
109 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
110 inline void SetStatus(AnomalyDetectorStatus value) { m_statusHasBeenSet = true; m_status = value; }
111 inline AnomalyDetectorSummary& WithStatus(AnomalyDetectorStatus value) { SetStatus(value); return *this;}
113
115
119 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
120 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
121 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
122 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
123 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
124 AnomalyDetectorSummary& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
125 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
126 AnomalyDetectorSummary& AddTags(TagsKeyT&& key, TagsValueT&& value) {
127 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
128 }
130 private:
131
132 Aws::String m_anomalyDetectorArn;
133 bool m_anomalyDetectorArnHasBeenSet = false;
134
135 Aws::String m_anomalyDetectorName;
136 bool m_anomalyDetectorNameHasBeenSet = false;
137
138 Aws::String m_anomalyDetectorDescription;
139 bool m_anomalyDetectorDescriptionHasBeenSet = false;
140
141 Aws::Utils::DateTime m_creationTime{};
142 bool m_creationTimeHasBeenSet = false;
143
144 Aws::Utils::DateTime m_lastModificationTime{};
145 bool m_lastModificationTimeHasBeenSet = false;
146
148 bool m_statusHasBeenSet = false;
149
151 bool m_tagsHasBeenSet = false;
152 };
153
154} // namespace Model
155} // namespace LookoutMetrics
156} // namespace Aws
AWS_LOOKOUTMETRICS_API AnomalyDetectorSummary()=default
AnomalyDetectorSummary & AddTags(TagsKeyT &&key, TagsValueT &&value)
void SetAnomalyDetectorDescription(AnomalyDetectorDescriptionT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
AnomalyDetectorSummary & WithStatus(AnomalyDetectorStatus value)
AWS_LOOKOUTMETRICS_API AnomalyDetectorSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
AnomalyDetectorSummary & WithAnomalyDetectorName(AnomalyDetectorNameT &&value)
void SetLastModificationTime(LastModificationTimeT &&value)
AnomalyDetectorSummary & WithAnomalyDetectorArn(AnomalyDetectorArnT &&value)
AnomalyDetectorSummary & WithTags(TagsT &&value)
AnomalyDetectorSummary & WithLastModificationTime(LastModificationTimeT &&value)
const Aws::Utils::DateTime & GetLastModificationTime() const
AWS_LOOKOUTMETRICS_API AnomalyDetectorSummary(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetCreationTime() const
AnomalyDetectorSummary & WithAnomalyDetectorDescription(AnomalyDetectorDescriptionT &&value)
AnomalyDetectorSummary & WithCreationTime(CreationTimeT &&value)
AWS_LOOKOUTMETRICS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetAnomalyDetectorName(AnomalyDetectorNameT &&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