AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
36
37
39
42 inline const Aws::String& GetDetectorName() const{ return m_detectorName; }
43 inline void SetDetectorName(const Aws::String& value) { m_detectorName = value; }
44 inline void SetDetectorName(Aws::String&& value) { m_detectorName = std::move(value); }
45 inline void SetDetectorName(const char* value) { m_detectorName.assign(value); }
46 inline GetLogAnomalyDetectorResult& WithDetectorName(const Aws::String& value) { SetDetectorName(value); return *this;}
47 inline GetLogAnomalyDetectorResult& WithDetectorName(Aws::String&& value) { SetDetectorName(std::move(value)); return *this;}
48 inline GetLogAnomalyDetectorResult& WithDetectorName(const char* value) { SetDetectorName(value); return *this;}
50
52
56 inline const Aws::Vector<Aws::String>& GetLogGroupArnList() const{ return m_logGroupArnList; }
57 inline void SetLogGroupArnList(const Aws::Vector<Aws::String>& value) { m_logGroupArnList = value; }
58 inline void SetLogGroupArnList(Aws::Vector<Aws::String>&& value) { m_logGroupArnList = std::move(value); }
61 inline GetLogAnomalyDetectorResult& AddLogGroupArnList(const Aws::String& value) { m_logGroupArnList.push_back(value); return *this; }
62 inline GetLogAnomalyDetectorResult& AddLogGroupArnList(Aws::String&& value) { m_logGroupArnList.push_back(std::move(value)); return *this; }
63 inline GetLogAnomalyDetectorResult& AddLogGroupArnList(const char* value) { m_logGroupArnList.push_back(value); return *this; }
65
67
74 inline const EvaluationFrequency& GetEvaluationFrequency() const{ return m_evaluationFrequency; }
75 inline void SetEvaluationFrequency(const EvaluationFrequency& value) { m_evaluationFrequency = value; }
76 inline void SetEvaluationFrequency(EvaluationFrequency&& value) { m_evaluationFrequency = std::move(value); }
80
82
83 inline const Aws::String& GetFilterPattern() const{ return m_filterPattern; }
84 inline void SetFilterPattern(const Aws::String& value) { m_filterPattern = value; }
85 inline void SetFilterPattern(Aws::String&& value) { m_filterPattern = std::move(value); }
86 inline void SetFilterPattern(const char* value) { m_filterPattern.assign(value); }
87 inline GetLogAnomalyDetectorResult& WithFilterPattern(const Aws::String& value) { SetFilterPattern(value); return *this;}
88 inline GetLogAnomalyDetectorResult& WithFilterPattern(Aws::String&& value) { SetFilterPattern(std::move(value)); return *this;}
89 inline GetLogAnomalyDetectorResult& WithFilterPattern(const char* value) { SetFilterPattern(value); return *this;}
91
93
99 inline const AnomalyDetectorStatus& GetAnomalyDetectorStatus() const{ return m_anomalyDetectorStatus; }
100 inline void SetAnomalyDetectorStatus(const AnomalyDetectorStatus& value) { m_anomalyDetectorStatus = value; }
101 inline void SetAnomalyDetectorStatus(AnomalyDetectorStatus&& value) { m_anomalyDetectorStatus = std::move(value); }
105
107
110 inline const Aws::String& GetKmsKeyId() const{ return m_kmsKeyId; }
111 inline void SetKmsKeyId(const Aws::String& value) { m_kmsKeyId = value; }
112 inline void SetKmsKeyId(Aws::String&& value) { m_kmsKeyId = std::move(value); }
113 inline void SetKmsKeyId(const char* value) { m_kmsKeyId.assign(value); }
114 inline GetLogAnomalyDetectorResult& WithKmsKeyId(const Aws::String& value) { SetKmsKeyId(value); return *this;}
115 inline GetLogAnomalyDetectorResult& WithKmsKeyId(Aws::String&& value) { SetKmsKeyId(std::move(value)); return *this;}
116 inline GetLogAnomalyDetectorResult& WithKmsKeyId(const char* value) { SetKmsKeyId(value); return *this;}
118
120
123 inline long long GetCreationTimeStamp() const{ return m_creationTimeStamp; }
124 inline void SetCreationTimeStamp(long long value) { m_creationTimeStamp = value; }
125 inline GetLogAnomalyDetectorResult& WithCreationTimeStamp(long long value) { SetCreationTimeStamp(value); return *this;}
127
129
132 inline long long GetLastModifiedTimeStamp() const{ return m_lastModifiedTimeStamp; }
133 inline void SetLastModifiedTimeStamp(long long value) { m_lastModifiedTimeStamp = value; }
136
138
143 inline long long GetAnomalyVisibilityTime() const{ return m_anomalyVisibilityTime; }
144 inline void SetAnomalyVisibilityTime(long long value) { m_anomalyVisibilityTime = value; }
147
149
150 inline const Aws::String& GetRequestId() const{ return m_requestId; }
151 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
152 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
153 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
154 inline GetLogAnomalyDetectorResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
155 inline GetLogAnomalyDetectorResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
156 inline GetLogAnomalyDetectorResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
158 private:
159
160 Aws::String m_detectorName;
161
162 Aws::Vector<Aws::String> m_logGroupArnList;
163
164 EvaluationFrequency m_evaluationFrequency;
165
166 Aws::String m_filterPattern;
167
168 AnomalyDetectorStatus m_anomalyDetectorStatus;
169
170 Aws::String m_kmsKeyId;
171
172 long long m_creationTimeStamp;
173
174 long long m_lastModifiedTimeStamp;
175
176 long long m_anomalyVisibilityTime;
177
178 Aws::String m_requestId;
179 };
180
181} // namespace Model
182} // namespace CloudWatchLogs
183} // namespace Aws
GetLogAnomalyDetectorResult & WithRequestId(const Aws::String &value)
GetLogAnomalyDetectorResult & WithDetectorName(const char *value)
GetLogAnomalyDetectorResult & WithKmsKeyId(const Aws::String &value)
GetLogAnomalyDetectorResult & WithLastModifiedTimeStamp(long long value)
void SetAnomalyDetectorStatus(const AnomalyDetectorStatus &value)
GetLogAnomalyDetectorResult & WithEvaluationFrequency(EvaluationFrequency &&value)
GetLogAnomalyDetectorResult & WithLogGroupArnList(Aws::Vector< Aws::String > &&value)
GetLogAnomalyDetectorResult & AddLogGroupArnList(const Aws::String &value)
GetLogAnomalyDetectorResult & WithDetectorName(const Aws::String &value)
GetLogAnomalyDetectorResult & WithAnomalyDetectorStatus(const AnomalyDetectorStatus &value)
GetLogAnomalyDetectorResult & AddLogGroupArnList(const char *value)
void SetLogGroupArnList(const Aws::Vector< Aws::String > &value)
GetLogAnomalyDetectorResult & AddLogGroupArnList(Aws::String &&value)
GetLogAnomalyDetectorResult & WithEvaluationFrequency(const EvaluationFrequency &value)
AWS_CLOUDWATCHLOGS_API GetLogAnomalyDetectorResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetLogAnomalyDetectorResult & WithAnomalyVisibilityTime(long long value)
GetLogAnomalyDetectorResult & WithKmsKeyId(const char *value)
const Aws::Vector< Aws::String > & GetLogGroupArnList() const
GetLogAnomalyDetectorResult & WithFilterPattern(const Aws::String &value)
GetLogAnomalyDetectorResult & WithRequestId(Aws::String &&value)
GetLogAnomalyDetectorResult & WithFilterPattern(Aws::String &&value)
GetLogAnomalyDetectorResult & WithDetectorName(Aws::String &&value)
GetLogAnomalyDetectorResult & WithLogGroupArnList(const Aws::Vector< Aws::String > &value)
GetLogAnomalyDetectorResult & WithRequestId(const char *value)
GetLogAnomalyDetectorResult & WithKmsKeyId(Aws::String &&value)
GetLogAnomalyDetectorResult & WithAnomalyDetectorStatus(AnomalyDetectorStatus &&value)
GetLogAnomalyDetectorResult & WithCreationTimeStamp(long long value)
AWS_CLOUDWATCHLOGS_API GetLogAnomalyDetectorResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetLogAnomalyDetectorResult & WithFilterPattern(const char *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