AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
GetLogAnomalyDetectorResult.h
1
6#pragma once
7#include <aws/logs/CloudWatchLogs_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/logs/model/EvaluationFrequency.h>
11#include <aws/logs/model/AnomalyDetectorStatus.h>
12#include <utility>
13
14namespace Aws
15{
16template<typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace CloudWatchLogs
27{
28namespace Model
29{
31 {
32 public:
33 AWS_CLOUDWATCHLOGS_API GetLogAnomalyDetectorResult() = default;
36
37
39
42 inline const Aws::String& GetDetectorName() const { return m_detectorName; }
43 template<typename DetectorNameT = Aws::String>
44 void SetDetectorName(DetectorNameT&& value) { m_detectorNameHasBeenSet = true; m_detectorName = std::forward<DetectorNameT>(value); }
45 template<typename DetectorNameT = Aws::String>
46 GetLogAnomalyDetectorResult& WithDetectorName(DetectorNameT&& value) { SetDetectorName(std::forward<DetectorNameT>(value)); return *this;}
48
50
54 inline const Aws::Vector<Aws::String>& GetLogGroupArnList() const { return m_logGroupArnList; }
55 template<typename LogGroupArnListT = Aws::Vector<Aws::String>>
56 void SetLogGroupArnList(LogGroupArnListT&& value) { m_logGroupArnListHasBeenSet = true; m_logGroupArnList = std::forward<LogGroupArnListT>(value); }
57 template<typename LogGroupArnListT = Aws::Vector<Aws::String>>
58 GetLogAnomalyDetectorResult& WithLogGroupArnList(LogGroupArnListT&& value) { SetLogGroupArnList(std::forward<LogGroupArnListT>(value)); return *this;}
59 template<typename LogGroupArnListT = Aws::String>
60 GetLogAnomalyDetectorResult& AddLogGroupArnList(LogGroupArnListT&& value) { m_logGroupArnListHasBeenSet = true; m_logGroupArnList.emplace_back(std::forward<LogGroupArnListT>(value)); return *this; }
62
64
71 inline EvaluationFrequency GetEvaluationFrequency() const { return m_evaluationFrequency; }
72 inline void SetEvaluationFrequency(EvaluationFrequency value) { m_evaluationFrequencyHasBeenSet = true; m_evaluationFrequency = value; }
75
77
78 inline const Aws::String& GetFilterPattern() const { return m_filterPattern; }
79 template<typename FilterPatternT = Aws::String>
80 void SetFilterPattern(FilterPatternT&& value) { m_filterPatternHasBeenSet = true; m_filterPattern = std::forward<FilterPatternT>(value); }
81 template<typename FilterPatternT = Aws::String>
82 GetLogAnomalyDetectorResult& WithFilterPattern(FilterPatternT&& value) { SetFilterPattern(std::forward<FilterPatternT>(value)); return *this;}
84
86
92 inline AnomalyDetectorStatus GetAnomalyDetectorStatus() const { return m_anomalyDetectorStatus; }
93 inline void SetAnomalyDetectorStatus(AnomalyDetectorStatus value) { m_anomalyDetectorStatusHasBeenSet = true; m_anomalyDetectorStatus = value; }
96
98
101 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
102 template<typename KmsKeyIdT = Aws::String>
103 void SetKmsKeyId(KmsKeyIdT&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::forward<KmsKeyIdT>(value); }
104 template<typename KmsKeyIdT = Aws::String>
105 GetLogAnomalyDetectorResult& WithKmsKeyId(KmsKeyIdT&& value) { SetKmsKeyId(std::forward<KmsKeyIdT>(value)); return *this;}
107
109
112 inline long long GetCreationTimeStamp() const { return m_creationTimeStamp; }
113 inline void SetCreationTimeStamp(long long value) { m_creationTimeStampHasBeenSet = true; m_creationTimeStamp = value; }
114 inline GetLogAnomalyDetectorResult& WithCreationTimeStamp(long long value) { SetCreationTimeStamp(value); return *this;}
116
118
121 inline long long GetLastModifiedTimeStamp() const { return m_lastModifiedTimeStamp; }
122 inline void SetLastModifiedTimeStamp(long long value) { m_lastModifiedTimeStampHasBeenSet = true; m_lastModifiedTimeStamp = value; }
125
127
132 inline long long GetAnomalyVisibilityTime() const { return m_anomalyVisibilityTime; }
133 inline void SetAnomalyVisibilityTime(long long value) { m_anomalyVisibilityTimeHasBeenSet = true; m_anomalyVisibilityTime = value; }
136
138
139 inline const Aws::String& GetRequestId() const { return m_requestId; }
140 template<typename RequestIdT = Aws::String>
141 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
142 template<typename RequestIdT = Aws::String>
143 GetLogAnomalyDetectorResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
145 private:
146
147 Aws::String m_detectorName;
148 bool m_detectorNameHasBeenSet = false;
149
150 Aws::Vector<Aws::String> m_logGroupArnList;
151 bool m_logGroupArnListHasBeenSet = false;
152
154 bool m_evaluationFrequencyHasBeenSet = false;
155
156 Aws::String m_filterPattern;
157 bool m_filterPatternHasBeenSet = false;
158
160 bool m_anomalyDetectorStatusHasBeenSet = false;
161
162 Aws::String m_kmsKeyId;
163 bool m_kmsKeyIdHasBeenSet = false;
164
165 long long m_creationTimeStamp{0};
166 bool m_creationTimeStampHasBeenSet = false;
167
168 long long m_lastModifiedTimeStamp{0};
169 bool m_lastModifiedTimeStampHasBeenSet = false;
170
171 long long m_anomalyVisibilityTime{0};
172 bool m_anomalyVisibilityTimeHasBeenSet = false;
173
174 Aws::String m_requestId;
175 bool m_requestIdHasBeenSet = false;
176 };
177
178} // namespace Model
179} // namespace CloudWatchLogs
180} // namespace Aws
GetLogAnomalyDetectorResult & WithLogGroupArnList(LogGroupArnListT &&value)
GetLogAnomalyDetectorResult & WithLastModifiedTimeStamp(long long value)
GetLogAnomalyDetectorResult & WithFilterPattern(FilterPatternT &&value)
GetLogAnomalyDetectorResult & WithRequestId(RequestIdT &&value)
GetLogAnomalyDetectorResult & AddLogGroupArnList(LogGroupArnListT &&value)
AWS_CLOUDWATCHLOGS_API GetLogAnomalyDetectorResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetLogAnomalyDetectorResult & WithAnomalyVisibilityTime(long long value)
const Aws::Vector< Aws::String > & GetLogGroupArnList() const
GetLogAnomalyDetectorResult & WithKmsKeyId(KmsKeyIdT &&value)
GetLogAnomalyDetectorResult & WithEvaluationFrequency(EvaluationFrequency value)
GetLogAnomalyDetectorResult & WithAnomalyDetectorStatus(AnomalyDetectorStatus value)
AWS_CLOUDWATCHLOGS_API GetLogAnomalyDetectorResult()=default
GetLogAnomalyDetectorResult & WithCreationTimeStamp(long long value)
AWS_CLOUDWATCHLOGS_API GetLogAnomalyDetectorResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetLogAnomalyDetectorResult & WithDetectorName(DetectorNameT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue