7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/logs/CloudWatchLogs_EXPORTS.h>
11#include <aws/logs/model/LogEvent.h>
12#include <aws/logs/model/PatternToken.h>
13#include <aws/logs/model/State.h>
24namespace CloudWatchLogs {
37 AWS_CLOUDWATCHLOGS_API
Anomaly() =
default;
48 template <
typename AnomalyIdT = Aws::String>
50 m_anomalyIdHasBeenSet =
true;
51 m_anomalyId = std::forward<AnomalyIdT>(value);
53 template <
typename AnomalyIdT = Aws::String>
66 template <
typename PatternIdT = Aws::String>
68 m_patternIdHasBeenSet =
true;
69 m_patternId = std::forward<PatternIdT>(value);
71 template <
typename PatternIdT = Aws::String>
84 template <
typename AnomalyDetectorArnT = Aws::String>
86 m_anomalyDetectorArnHasBeenSet =
true;
87 m_anomalyDetectorArn = std::forward<AnomalyDetectorArnT>(value);
89 template <
typename AnomalyDetectorArnT = Aws::String>
102 template <
typename PatternStringT = Aws::String>
104 m_patternStringHasBeenSet =
true;
105 m_patternString = std::forward<PatternStringT>(value);
107 template <
typename PatternStringT = Aws::String>
121 template <
typename PatternRegexT = Aws::String>
123 m_patternRegexHasBeenSet =
true;
124 m_patternRegex = std::forward<PatternRegexT>(value);
126 template <
typename PatternRegexT = Aws::String>
142 template <
typename PriorityT = Aws::String>
144 m_priorityHasBeenSet =
true;
145 m_priority = std::forward<PriorityT>(value);
147 template <
typename PriorityT = Aws::String>
163 m_firstSeenHasBeenSet =
true;
181 m_lastSeenHasBeenSet =
true;
197 template <
typename DescriptionT = Aws::String>
199 m_descriptionHasBeenSet =
true;
200 m_description = std::forward<DescriptionT>(value);
202 template <
typename DescriptionT = Aws::String>
216 m_activeHasBeenSet =
true;
237 m_stateHasBeenSet =
true;
255 template <
typename HistogramT = Aws::Map<Aws::String,
long long>>
257 m_histogramHasBeenSet =
true;
258 m_histogram = std::forward<HistogramT>(value);
260 template <
typename HistogramT = Aws::Map<Aws::String,
long long>>
266 m_histogramHasBeenSet =
true;
267 m_histogram.emplace(key, value);
279 template <
typename LogSamplesT = Aws::Vector<LogEvent>>
281 m_logSamplesHasBeenSet =
true;
282 m_logSamples = std::forward<LogSamplesT>(value);
284 template <
typename LogSamplesT = Aws::Vector<LogEvent>>
289 template <
typename LogSamplesT = LogEvent>
291 m_logSamplesHasBeenSet =
true;
292 m_logSamples.emplace_back(std::forward<LogSamplesT>(value));
304 template <
typename PatternTokensT = Aws::Vector<PatternToken>>
306 m_patternTokensHasBeenSet =
true;
307 m_patternTokens = std::forward<PatternTokensT>(value);
309 template <
typename PatternTokensT = Aws::Vector<PatternToken>>
314 template <
typename PatternTokensT = PatternToken>
316 m_patternTokensHasBeenSet =
true;
317 m_patternTokens.emplace_back(std::forward<PatternTokensT>(value));
329 template <
typename LogGroupArnListT = Aws::Vector<Aws::String>>
331 m_logGroupArnListHasBeenSet =
true;
332 m_logGroupArnList = std::forward<LogGroupArnListT>(value);
334 template <
typename LogGroupArnListT = Aws::Vector<Aws::String>>
339 template <
typename LogGroupArnListT = Aws::String>
341 m_logGroupArnListHasBeenSet =
true;
342 m_logGroupArnList.emplace_back(std::forward<LogGroupArnListT>(value));
356 m_suppressedHasBeenSet =
true;
357 m_suppressed = value;
372 m_suppressedDateHasBeenSet =
true;
373 m_suppressedDate = value;
390 m_suppressedUntilHasBeenSet =
true;
391 m_suppressedUntil = value;
408 m_isPatternLevelSuppressionHasBeenSet =
true;
409 m_isPatternLevelSuppression = value;
429 long long m_firstSeen{0};
431 long long m_lastSeen{0};
435 bool m_active{
false};
447 bool m_suppressed{
false};
449 long long m_suppressedDate{0};
451 long long m_suppressedUntil{0};
453 bool m_isPatternLevelSuppression{
false};
454 bool m_anomalyIdHasBeenSet =
false;
455 bool m_patternIdHasBeenSet =
false;
456 bool m_anomalyDetectorArnHasBeenSet =
false;
457 bool m_patternStringHasBeenSet =
false;
458 bool m_patternRegexHasBeenSet =
false;
459 bool m_priorityHasBeenSet =
false;
460 bool m_firstSeenHasBeenSet =
false;
461 bool m_lastSeenHasBeenSet =
false;
462 bool m_descriptionHasBeenSet =
false;
463 bool m_activeHasBeenSet =
false;
464 bool m_stateHasBeenSet =
false;
465 bool m_histogramHasBeenSet =
false;
466 bool m_logSamplesHasBeenSet =
false;
467 bool m_patternTokensHasBeenSet =
false;
468 bool m_logGroupArnListHasBeenSet =
false;
469 bool m_suppressedHasBeenSet =
false;
470 bool m_suppressedDateHasBeenSet =
false;
471 bool m_suppressedUntilHasBeenSet =
false;
472 bool m_isPatternLevelSuppressionHasBeenSet =
false;
void SetPatternTokens(PatternTokensT &&value)
Anomaly & AddPatternTokens(PatternTokensT &&value)
void SetSuppressedUntil(long long value)
const Aws::Vector< PatternToken > & GetPatternTokens() const
bool PatternIdHasBeenSet() const
const Aws::Vector< LogEvent > & GetLogSamples() const
void SetFirstSeen(long long value)
void SetLastSeen(long long value)
const Aws::Map< Aws::String, long long > & GetHistogram() const
void SetPatternId(PatternIdT &&value)
void SetActive(bool value)
const Aws::String & GetDescription() const
void SetLogSamples(LogSamplesT &&value)
const Aws::Vector< Aws::String > & GetLogGroupArnList() const
bool ActiveHasBeenSet() const
const Aws::String & GetPriority() const
const Aws::String & GetAnomalyDetectorArn() const
void SetPatternString(PatternStringT &&value)
Anomaly & WithIsPatternLevelSuppression(bool value)
long long GetFirstSeen() const
Anomaly & WithLogGroupArnList(LogGroupArnListT &&value)
Anomaly & WithPatternString(PatternStringT &&value)
long long GetLastSeen() const
bool PatternStringHasBeenSet() const
void SetAnomalyId(AnomalyIdT &&value)
Anomaly & WithAnomalyDetectorArn(AnomalyDetectorArnT &&value)
AWS_CLOUDWATCHLOGS_API Aws::Utils::Json::JsonValue Jsonize() const
Anomaly & WithLastSeen(long long value)
Anomaly & WithActive(bool value)
bool LogSamplesHasBeenSet() const
const Aws::String & GetPatternId() const
bool HistogramHasBeenSet() const
Anomaly & WithAnomalyId(AnomalyIdT &&value)
void SetPatternRegex(PatternRegexT &&value)
const Aws::String & GetAnomalyId() const
void SetSuppressed(bool value)
void SetHistogram(HistogramT &&value)
bool AnomalyIdHasBeenSet() const
bool PatternRegexHasBeenSet() const
bool LogGroupArnListHasBeenSet() const
void SetPriority(PriorityT &&value)
Anomaly & WithPatternId(PatternIdT &&value)
const Aws::String & GetPatternRegex() const
Anomaly & AddLogGroupArnList(LogGroupArnListT &&value)
bool FirstSeenHasBeenSet() const
bool StateHasBeenSet() const
Anomaly & WithPatternTokens(PatternTokensT &&value)
bool AnomalyDetectorArnHasBeenSet() const
bool IsPatternLevelSuppressionHasBeenSet() const
Anomaly & WithPriority(PriorityT &&value)
void SetIsPatternLevelSuppression(bool value)
Anomaly & WithFirstSeen(long long value)
bool PriorityHasBeenSet() const
bool PatternTokensHasBeenSet() const
void SetState(State value)
AWS_CLOUDWATCHLOGS_API Anomaly & operator=(Aws::Utils::Json::JsonView jsonValue)
bool LastSeenHasBeenSet() const
Anomaly & WithPatternRegex(PatternRegexT &&value)
bool DescriptionHasBeenSet() const
void SetAnomalyDetectorArn(AnomalyDetectorArnT &&value)
Anomaly & WithSuppressedDate(long long value)
bool SuppressedDateHasBeenSet() const
bool GetSuppressed() const
void SetSuppressedDate(long long value)
bool SuppressedHasBeenSet() const
Anomaly & WithSuppressedUntil(long long value)
Anomaly & WithState(State value)
Anomaly & AddHistogram(Aws::String key, long long value)
void SetLogGroupArnList(LogGroupArnListT &&value)
long long GetSuppressedDate() const
Anomaly & WithSuppressed(bool value)
AWS_CLOUDWATCHLOGS_API Anomaly()=default
long long GetSuppressedUntil() const
Anomaly & WithLogSamples(LogSamplesT &&value)
bool GetIsPatternLevelSuppression() const
const Aws::String & GetPatternString() const
AWS_CLOUDWATCHLOGS_API Anomaly(Aws::Utils::Json::JsonView jsonValue)
Anomaly & AddLogSamples(LogSamplesT &&value)
void SetDescription(DescriptionT &&value)
Anomaly & WithDescription(DescriptionT &&value)
Anomaly & WithHistogram(HistogramT &&value)
bool SuppressedUntilHasBeenSet() const
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
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue