AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
DescribeAnomalyDetectorResult.h
1
6#pragma once
7#include <aws/lookoutmetrics/LookoutMetrics_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/lookoutmetrics/model/AnomalyDetectorConfigSummary.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/lookoutmetrics/model/AnomalyDetectorStatus.h>
12#include <aws/lookoutmetrics/model/AnomalyDetectorFailureType.h>
13#include <utility>
14
15namespace Aws
16{
17template<typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils
21{
22namespace Json
23{
24 class JsonValue;
25} // namespace Json
26} // namespace Utils
27namespace LookoutMetrics
28{
29namespace Model
30{
32 {
33 public:
34 AWS_LOOKOUTMETRICS_API DescribeAnomalyDetectorResult() = default;
37
38
40
43 inline const Aws::String& GetAnomalyDetectorArn() const { return m_anomalyDetectorArn; }
44 template<typename AnomalyDetectorArnT = Aws::String>
45 void SetAnomalyDetectorArn(AnomalyDetectorArnT&& value) { m_anomalyDetectorArnHasBeenSet = true; m_anomalyDetectorArn = std::forward<AnomalyDetectorArnT>(value); }
46 template<typename AnomalyDetectorArnT = Aws::String>
47 DescribeAnomalyDetectorResult& WithAnomalyDetectorArn(AnomalyDetectorArnT&& value) { SetAnomalyDetectorArn(std::forward<AnomalyDetectorArnT>(value)); return *this;}
49
51
54 inline const Aws::String& GetAnomalyDetectorName() const { return m_anomalyDetectorName; }
55 template<typename AnomalyDetectorNameT = Aws::String>
56 void SetAnomalyDetectorName(AnomalyDetectorNameT&& value) { m_anomalyDetectorNameHasBeenSet = true; m_anomalyDetectorName = std::forward<AnomalyDetectorNameT>(value); }
57 template<typename AnomalyDetectorNameT = Aws::String>
58 DescribeAnomalyDetectorResult& WithAnomalyDetectorName(AnomalyDetectorNameT&& value) { SetAnomalyDetectorName(std::forward<AnomalyDetectorNameT>(value)); return *this;}
60
62
65 inline const Aws::String& GetAnomalyDetectorDescription() const { return m_anomalyDetectorDescription; }
66 template<typename AnomalyDetectorDescriptionT = Aws::String>
67 void SetAnomalyDetectorDescription(AnomalyDetectorDescriptionT&& value) { m_anomalyDetectorDescriptionHasBeenSet = true; m_anomalyDetectorDescription = std::forward<AnomalyDetectorDescriptionT>(value); }
68 template<typename AnomalyDetectorDescriptionT = Aws::String>
69 DescribeAnomalyDetectorResult& WithAnomalyDetectorDescription(AnomalyDetectorDescriptionT&& value) { SetAnomalyDetectorDescription(std::forward<AnomalyDetectorDescriptionT>(value)); return *this;}
71
73
76 inline const AnomalyDetectorConfigSummary& GetAnomalyDetectorConfig() const { return m_anomalyDetectorConfig; }
77 template<typename AnomalyDetectorConfigT = AnomalyDetectorConfigSummary>
78 void SetAnomalyDetectorConfig(AnomalyDetectorConfigT&& value) { m_anomalyDetectorConfigHasBeenSet = true; m_anomalyDetectorConfig = std::forward<AnomalyDetectorConfigT>(value); }
79 template<typename AnomalyDetectorConfigT = AnomalyDetectorConfigSummary>
80 DescribeAnomalyDetectorResult& WithAnomalyDetectorConfig(AnomalyDetectorConfigT&& value) { SetAnomalyDetectorConfig(std::forward<AnomalyDetectorConfigT>(value)); return *this;}
82
84
87 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
88 template<typename CreationTimeT = Aws::Utils::DateTime>
89 void SetCreationTime(CreationTimeT&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::forward<CreationTimeT>(value); }
90 template<typename CreationTimeT = Aws::Utils::DateTime>
91 DescribeAnomalyDetectorResult& WithCreationTime(CreationTimeT&& value) { SetCreationTime(std::forward<CreationTimeT>(value)); return *this;}
93
95
98 inline const Aws::Utils::DateTime& GetLastModificationTime() const { return m_lastModificationTime; }
99 template<typename LastModificationTimeT = Aws::Utils::DateTime>
100 void SetLastModificationTime(LastModificationTimeT&& value) { m_lastModificationTimeHasBeenSet = true; m_lastModificationTime = std::forward<LastModificationTimeT>(value); }
101 template<typename LastModificationTimeT = Aws::Utils::DateTime>
102 DescribeAnomalyDetectorResult& WithLastModificationTime(LastModificationTimeT&& value) { SetLastModificationTime(std::forward<LastModificationTimeT>(value)); return *this;}
104
106
109 inline AnomalyDetectorStatus GetStatus() const { return m_status; }
110 inline void SetStatus(AnomalyDetectorStatus value) { m_statusHasBeenSet = true; m_status = value; }
113
115
118 inline const Aws::String& GetFailureReason() const { return m_failureReason; }
119 template<typename FailureReasonT = Aws::String>
120 void SetFailureReason(FailureReasonT&& value) { m_failureReasonHasBeenSet = true; m_failureReason = std::forward<FailureReasonT>(value); }
121 template<typename FailureReasonT = Aws::String>
122 DescribeAnomalyDetectorResult& WithFailureReason(FailureReasonT&& value) { SetFailureReason(std::forward<FailureReasonT>(value)); return *this;}
124
126
129 inline const Aws::String& GetKmsKeyArn() const { return m_kmsKeyArn; }
130 template<typename KmsKeyArnT = Aws::String>
131 void SetKmsKeyArn(KmsKeyArnT&& value) { m_kmsKeyArnHasBeenSet = true; m_kmsKeyArn = std::forward<KmsKeyArnT>(value); }
132 template<typename KmsKeyArnT = Aws::String>
133 DescribeAnomalyDetectorResult& WithKmsKeyArn(KmsKeyArnT&& value) { SetKmsKeyArn(std::forward<KmsKeyArnT>(value)); return *this;}
135
137
140 inline AnomalyDetectorFailureType GetFailureType() const { return m_failureType; }
141 inline void SetFailureType(AnomalyDetectorFailureType value) { m_failureTypeHasBeenSet = true; m_failureType = value; }
144
146
147 inline const Aws::String& GetRequestId() const { return m_requestId; }
148 template<typename RequestIdT = Aws::String>
149 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
150 template<typename RequestIdT = Aws::String>
151 DescribeAnomalyDetectorResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
153 private:
154
155 Aws::String m_anomalyDetectorArn;
156 bool m_anomalyDetectorArnHasBeenSet = false;
157
158 Aws::String m_anomalyDetectorName;
159 bool m_anomalyDetectorNameHasBeenSet = false;
160
161 Aws::String m_anomalyDetectorDescription;
162 bool m_anomalyDetectorDescriptionHasBeenSet = false;
163
164 AnomalyDetectorConfigSummary m_anomalyDetectorConfig;
165 bool m_anomalyDetectorConfigHasBeenSet = false;
166
167 Aws::Utils::DateTime m_creationTime{};
168 bool m_creationTimeHasBeenSet = false;
169
170 Aws::Utils::DateTime m_lastModificationTime{};
171 bool m_lastModificationTimeHasBeenSet = false;
172
174 bool m_statusHasBeenSet = false;
175
176 Aws::String m_failureReason;
177 bool m_failureReasonHasBeenSet = false;
178
179 Aws::String m_kmsKeyArn;
180 bool m_kmsKeyArnHasBeenSet = false;
181
183 bool m_failureTypeHasBeenSet = false;
184
185 Aws::String m_requestId;
186 bool m_requestIdHasBeenSet = false;
187 };
188
189} // namespace Model
190} // namespace LookoutMetrics
191} // namespace Aws
AWS_LOOKOUTMETRICS_API DescribeAnomalyDetectorResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DescribeAnomalyDetectorResult & WithStatus(AnomalyDetectorStatus value)
const AnomalyDetectorConfigSummary & GetAnomalyDetectorConfig() const
DescribeAnomalyDetectorResult & WithFailureReason(FailureReasonT &&value)
DescribeAnomalyDetectorResult & WithKmsKeyArn(KmsKeyArnT &&value)
AWS_LOOKOUTMETRICS_API DescribeAnomalyDetectorResult()=default
DescribeAnomalyDetectorResult & WithAnomalyDetectorName(AnomalyDetectorNameT &&value)
DescribeAnomalyDetectorResult & WithAnomalyDetectorConfig(AnomalyDetectorConfigT &&value)
DescribeAnomalyDetectorResult & WithAnomalyDetectorArn(AnomalyDetectorArnT &&value)
void SetAnomalyDetectorDescription(AnomalyDetectorDescriptionT &&value)
AWS_LOOKOUTMETRICS_API DescribeAnomalyDetectorResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DescribeAnomalyDetectorResult & WithFailureType(AnomalyDetectorFailureType value)
DescribeAnomalyDetectorResult & WithAnomalyDetectorDescription(AnomalyDetectorDescriptionT &&value)
DescribeAnomalyDetectorResult & WithRequestId(RequestIdT &&value)
DescribeAnomalyDetectorResult & WithCreationTime(CreationTimeT &&value)
DescribeAnomalyDetectorResult & WithLastModificationTime(LastModificationTimeT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue