/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Information about an anomalous log event found within a log group.
* See Also:
AWS
* API Reference
The name of the Amazon CloudWatch log stream that the anomalous log event * belongs to. A log stream is a sequence of log events that share the same source. *
*/ inline const Aws::String& GetLogStreamName() const{ return m_logStreamName; } /** *The name of the Amazon CloudWatch log stream that the anomalous log event * belongs to. A log stream is a sequence of log events that share the same source. *
*/ inline bool LogStreamNameHasBeenSet() const { return m_logStreamNameHasBeenSet; } /** *The name of the Amazon CloudWatch log stream that the anomalous log event * belongs to. A log stream is a sequence of log events that share the same source. *
*/ inline void SetLogStreamName(const Aws::String& value) { m_logStreamNameHasBeenSet = true; m_logStreamName = value; } /** *The name of the Amazon CloudWatch log stream that the anomalous log event * belongs to. A log stream is a sequence of log events that share the same source. *
*/ inline void SetLogStreamName(Aws::String&& value) { m_logStreamNameHasBeenSet = true; m_logStreamName = std::move(value); } /** *The name of the Amazon CloudWatch log stream that the anomalous log event * belongs to. A log stream is a sequence of log events that share the same source. *
*/ inline void SetLogStreamName(const char* value) { m_logStreamNameHasBeenSet = true; m_logStreamName.assign(value); } /** *The name of the Amazon CloudWatch log stream that the anomalous log event * belongs to. A log stream is a sequence of log events that share the same source. *
*/ inline LogAnomalyClass& WithLogStreamName(const Aws::String& value) { SetLogStreamName(value); return *this;} /** *The name of the Amazon CloudWatch log stream that the anomalous log event * belongs to. A log stream is a sequence of log events that share the same source. *
*/ inline LogAnomalyClass& WithLogStreamName(Aws::String&& value) { SetLogStreamName(std::move(value)); return *this;} /** *The name of the Amazon CloudWatch log stream that the anomalous log event * belongs to. A log stream is a sequence of log events that share the same source. *
*/ inline LogAnomalyClass& WithLogStreamName(const char* value) { SetLogStreamName(value); return *this;} /** *The type of log anomaly that has been detected.
*/ inline const LogAnomalyType& GetLogAnomalyType() const{ return m_logAnomalyType; } /** *The type of log anomaly that has been detected.
*/ inline bool LogAnomalyTypeHasBeenSet() const { return m_logAnomalyTypeHasBeenSet; } /** *The type of log anomaly that has been detected.
*/ inline void SetLogAnomalyType(const LogAnomalyType& value) { m_logAnomalyTypeHasBeenSet = true; m_logAnomalyType = value; } /** *The type of log anomaly that has been detected.
*/ inline void SetLogAnomalyType(LogAnomalyType&& value) { m_logAnomalyTypeHasBeenSet = true; m_logAnomalyType = std::move(value); } /** *The type of log anomaly that has been detected.
*/ inline LogAnomalyClass& WithLogAnomalyType(const LogAnomalyType& value) { SetLogAnomalyType(value); return *this;} /** *The type of log anomaly that has been detected.
*/ inline LogAnomalyClass& WithLogAnomalyType(LogAnomalyType&& value) { SetLogAnomalyType(std::move(value)); return *this;} /** *The token where the anomaly was detected. This may refer to an exception or * another location, or it may be blank for log anomalies such as format anomalies. *
*/ inline const Aws::String& GetLogAnomalyToken() const{ return m_logAnomalyToken; } /** *The token where the anomaly was detected. This may refer to an exception or * another location, or it may be blank for log anomalies such as format anomalies. *
*/ inline bool LogAnomalyTokenHasBeenSet() const { return m_logAnomalyTokenHasBeenSet; } /** *The token where the anomaly was detected. This may refer to an exception or * another location, or it may be blank for log anomalies such as format anomalies. *
*/ inline void SetLogAnomalyToken(const Aws::String& value) { m_logAnomalyTokenHasBeenSet = true; m_logAnomalyToken = value; } /** *The token where the anomaly was detected. This may refer to an exception or * another location, or it may be blank for log anomalies such as format anomalies. *
*/ inline void SetLogAnomalyToken(Aws::String&& value) { m_logAnomalyTokenHasBeenSet = true; m_logAnomalyToken = std::move(value); } /** *The token where the anomaly was detected. This may refer to an exception or * another location, or it may be blank for log anomalies such as format anomalies. *
*/ inline void SetLogAnomalyToken(const char* value) { m_logAnomalyTokenHasBeenSet = true; m_logAnomalyToken.assign(value); } /** *The token where the anomaly was detected. This may refer to an exception or * another location, or it may be blank for log anomalies such as format anomalies. *
*/ inline LogAnomalyClass& WithLogAnomalyToken(const Aws::String& value) { SetLogAnomalyToken(value); return *this;} /** *The token where the anomaly was detected. This may refer to an exception or * another location, or it may be blank for log anomalies such as format anomalies. *
*/ inline LogAnomalyClass& WithLogAnomalyToken(Aws::String&& value) { SetLogAnomalyToken(std::move(value)); return *this;} /** *The token where the anomaly was detected. This may refer to an exception or * another location, or it may be blank for log anomalies such as format anomalies. *
*/ inline LogAnomalyClass& WithLogAnomalyToken(const char* value) { SetLogAnomalyToken(value); return *this;} /** *The ID of the log event.
*/ inline const Aws::String& GetLogEventId() const{ return m_logEventId; } /** *The ID of the log event.
*/ inline bool LogEventIdHasBeenSet() const { return m_logEventIdHasBeenSet; } /** *The ID of the log event.
*/ inline void SetLogEventId(const Aws::String& value) { m_logEventIdHasBeenSet = true; m_logEventId = value; } /** *The ID of the log event.
*/ inline void SetLogEventId(Aws::String&& value) { m_logEventIdHasBeenSet = true; m_logEventId = std::move(value); } /** *The ID of the log event.
*/ inline void SetLogEventId(const char* value) { m_logEventIdHasBeenSet = true; m_logEventId.assign(value); } /** *The ID of the log event.
*/ inline LogAnomalyClass& WithLogEventId(const Aws::String& value) { SetLogEventId(value); return *this;} /** *The ID of the log event.
*/ inline LogAnomalyClass& WithLogEventId(Aws::String&& value) { SetLogEventId(std::move(value)); return *this;} /** *The ID of the log event.
*/ inline LogAnomalyClass& WithLogEventId(const char* value) { SetLogEventId(value); return *this;} /** *The explanation for why the log event is considered an anomaly.
*/ inline const Aws::String& GetExplanation() const{ return m_explanation; } /** *The explanation for why the log event is considered an anomaly.
*/ inline bool ExplanationHasBeenSet() const { return m_explanationHasBeenSet; } /** *The explanation for why the log event is considered an anomaly.
*/ inline void SetExplanation(const Aws::String& value) { m_explanationHasBeenSet = true; m_explanation = value; } /** *The explanation for why the log event is considered an anomaly.
*/ inline void SetExplanation(Aws::String&& value) { m_explanationHasBeenSet = true; m_explanation = std::move(value); } /** *The explanation for why the log event is considered an anomaly.
*/ inline void SetExplanation(const char* value) { m_explanationHasBeenSet = true; m_explanation.assign(value); } /** *The explanation for why the log event is considered an anomaly.
*/ inline LogAnomalyClass& WithExplanation(const Aws::String& value) { SetExplanation(value); return *this;} /** *The explanation for why the log event is considered an anomaly.
*/ inline LogAnomalyClass& WithExplanation(Aws::String&& value) { SetExplanation(std::move(value)); return *this;} /** *The explanation for why the log event is considered an anomaly.
*/ inline LogAnomalyClass& WithExplanation(const char* value) { SetExplanation(value); return *this;} /** *The number of log lines where this anomalous log event occurs.
*/ inline int GetNumberOfLogLinesOccurrences() const{ return m_numberOfLogLinesOccurrences; } /** *The number of log lines where this anomalous log event occurs.
*/ inline bool NumberOfLogLinesOccurrencesHasBeenSet() const { return m_numberOfLogLinesOccurrencesHasBeenSet; } /** *The number of log lines where this anomalous log event occurs.
*/ inline void SetNumberOfLogLinesOccurrences(int value) { m_numberOfLogLinesOccurrencesHasBeenSet = true; m_numberOfLogLinesOccurrences = value; } /** *The number of log lines where this anomalous log event occurs.
*/ inline LogAnomalyClass& WithNumberOfLogLinesOccurrences(int value) { SetNumberOfLogLinesOccurrences(value); return *this;} /** *The time of the first occurrence of the anomalous log event.
*/ inline const Aws::Utils::DateTime& GetLogEventTimestamp() const{ return m_logEventTimestamp; } /** *The time of the first occurrence of the anomalous log event.
*/ inline bool LogEventTimestampHasBeenSet() const { return m_logEventTimestampHasBeenSet; } /** *The time of the first occurrence of the anomalous log event.
*/ inline void SetLogEventTimestamp(const Aws::Utils::DateTime& value) { m_logEventTimestampHasBeenSet = true; m_logEventTimestamp = value; } /** *The time of the first occurrence of the anomalous log event.
*/ inline void SetLogEventTimestamp(Aws::Utils::DateTime&& value) { m_logEventTimestampHasBeenSet = true; m_logEventTimestamp = std::move(value); } /** *The time of the first occurrence of the anomalous log event.
*/ inline LogAnomalyClass& WithLogEventTimestamp(const Aws::Utils::DateTime& value) { SetLogEventTimestamp(value); return *this;} /** *The time of the first occurrence of the anomalous log event.
*/ inline LogAnomalyClass& WithLogEventTimestamp(Aws::Utils::DateTime&& value) { SetLogEventTimestamp(std::move(value)); return *this;} private: Aws::String m_logStreamName; bool m_logStreamNameHasBeenSet = false; LogAnomalyType m_logAnomalyType; bool m_logAnomalyTypeHasBeenSet = false; Aws::String m_logAnomalyToken; bool m_logAnomalyTokenHasBeenSet = false; Aws::String m_logEventId; bool m_logEventIdHasBeenSet = false; Aws::String m_explanation; bool m_explanationHasBeenSet = false; int m_numberOfLogLinesOccurrences; bool m_numberOfLogLinesOccurrencesHasBeenSet = false; Aws::Utils::DateTime m_logEventTimestamp; bool m_logEventTimestampHasBeenSet = false; }; } // namespace Model } // namespace DevOpsGuru } // namespace Aws