AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
LogAnomalyClass.h
1
6#pragma once
7#include <aws/devops-guru/DevOpsGuru_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/devops-guru/model/LogAnomalyType.h>
10#include <aws/core/utils/DateTime.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace DevOpsGuru
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_DEVOPSGURU_API LogAnomalyClass() = default;
38 AWS_DEVOPSGURU_API LogAnomalyClass(Aws::Utils::Json::JsonView jsonValue);
40 AWS_DEVOPSGURU_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
49 inline const Aws::String& GetLogStreamName() const { return m_logStreamName; }
50 inline bool LogStreamNameHasBeenSet() const { return m_logStreamNameHasBeenSet; }
51 template<typename LogStreamNameT = Aws::String>
52 void SetLogStreamName(LogStreamNameT&& value) { m_logStreamNameHasBeenSet = true; m_logStreamName = std::forward<LogStreamNameT>(value); }
53 template<typename LogStreamNameT = Aws::String>
54 LogAnomalyClass& WithLogStreamName(LogStreamNameT&& value) { SetLogStreamName(std::forward<LogStreamNameT>(value)); return *this;}
56
58
61 inline LogAnomalyType GetLogAnomalyType() const { return m_logAnomalyType; }
62 inline bool LogAnomalyTypeHasBeenSet() const { return m_logAnomalyTypeHasBeenSet; }
63 inline void SetLogAnomalyType(LogAnomalyType value) { m_logAnomalyTypeHasBeenSet = true; m_logAnomalyType = value; }
66
68
73 inline const Aws::String& GetLogAnomalyToken() const { return m_logAnomalyToken; }
74 inline bool LogAnomalyTokenHasBeenSet() const { return m_logAnomalyTokenHasBeenSet; }
75 template<typename LogAnomalyTokenT = Aws::String>
76 void SetLogAnomalyToken(LogAnomalyTokenT&& value) { m_logAnomalyTokenHasBeenSet = true; m_logAnomalyToken = std::forward<LogAnomalyTokenT>(value); }
77 template<typename LogAnomalyTokenT = Aws::String>
78 LogAnomalyClass& WithLogAnomalyToken(LogAnomalyTokenT&& value) { SetLogAnomalyToken(std::forward<LogAnomalyTokenT>(value)); return *this;}
80
82
85 inline const Aws::String& GetLogEventId() const { return m_logEventId; }
86 inline bool LogEventIdHasBeenSet() const { return m_logEventIdHasBeenSet; }
87 template<typename LogEventIdT = Aws::String>
88 void SetLogEventId(LogEventIdT&& value) { m_logEventIdHasBeenSet = true; m_logEventId = std::forward<LogEventIdT>(value); }
89 template<typename LogEventIdT = Aws::String>
90 LogAnomalyClass& WithLogEventId(LogEventIdT&& value) { SetLogEventId(std::forward<LogEventIdT>(value)); return *this;}
92
94
97 inline const Aws::String& GetExplanation() const { return m_explanation; }
98 inline bool ExplanationHasBeenSet() const { return m_explanationHasBeenSet; }
99 template<typename ExplanationT = Aws::String>
100 void SetExplanation(ExplanationT&& value) { m_explanationHasBeenSet = true; m_explanation = std::forward<ExplanationT>(value); }
101 template<typename ExplanationT = Aws::String>
102 LogAnomalyClass& WithExplanation(ExplanationT&& value) { SetExplanation(std::forward<ExplanationT>(value)); return *this;}
104
106
109 inline int GetNumberOfLogLinesOccurrences() const { return m_numberOfLogLinesOccurrences; }
110 inline bool NumberOfLogLinesOccurrencesHasBeenSet() const { return m_numberOfLogLinesOccurrencesHasBeenSet; }
111 inline void SetNumberOfLogLinesOccurrences(int value) { m_numberOfLogLinesOccurrencesHasBeenSet = true; m_numberOfLogLinesOccurrences = value; }
114
116
119 inline const Aws::Utils::DateTime& GetLogEventTimestamp() const { return m_logEventTimestamp; }
120 inline bool LogEventTimestampHasBeenSet() const { return m_logEventTimestampHasBeenSet; }
121 template<typename LogEventTimestampT = Aws::Utils::DateTime>
122 void SetLogEventTimestamp(LogEventTimestampT&& value) { m_logEventTimestampHasBeenSet = true; m_logEventTimestamp = std::forward<LogEventTimestampT>(value); }
123 template<typename LogEventTimestampT = Aws::Utils::DateTime>
124 LogAnomalyClass& WithLogEventTimestamp(LogEventTimestampT&& value) { SetLogEventTimestamp(std::forward<LogEventTimestampT>(value)); return *this;}
126 private:
127
128 Aws::String m_logStreamName;
129 bool m_logStreamNameHasBeenSet = false;
130
131 LogAnomalyType m_logAnomalyType{LogAnomalyType::NOT_SET};
132 bool m_logAnomalyTypeHasBeenSet = false;
133
134 Aws::String m_logAnomalyToken;
135 bool m_logAnomalyTokenHasBeenSet = false;
136
137 Aws::String m_logEventId;
138 bool m_logEventIdHasBeenSet = false;
139
140 Aws::String m_explanation;
141 bool m_explanationHasBeenSet = false;
142
143 int m_numberOfLogLinesOccurrences{0};
144 bool m_numberOfLogLinesOccurrencesHasBeenSet = false;
145
146 Aws::Utils::DateTime m_logEventTimestamp{};
147 bool m_logEventTimestampHasBeenSet = false;
148 };
149
150} // namespace Model
151} // namespace DevOpsGuru
152} // namespace Aws
void SetLogAnomalyType(LogAnomalyType value)
LogAnomalyClass & WithNumberOfLogLinesOccurrences(int value)
const Aws::Utils::DateTime & GetLogEventTimestamp() const
void SetLogEventTimestamp(LogEventTimestampT &&value)
AWS_DEVOPSGURU_API LogAnomalyClass & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_DEVOPSGURU_API LogAnomalyClass()=default
const Aws::String & GetLogEventId() const
LogAnomalyClass & WithLogStreamName(LogStreamNameT &&value)
const Aws::String & GetExplanation() const
LogAnomalyClass & WithLogAnomalyType(LogAnomalyType value)
void SetLogStreamName(LogStreamNameT &&value)
void SetExplanation(ExplanationT &&value)
void SetLogAnomalyToken(LogAnomalyTokenT &&value)
AWS_DEVOPSGURU_API Aws::Utils::Json::JsonValue Jsonize() const
LogAnomalyClass & WithExplanation(ExplanationT &&value)
LogAnomalyClass & WithLogAnomalyToken(LogAnomalyTokenT &&value)
LogAnomalyClass & WithLogEventTimestamp(LogEventTimestampT &&value)
AWS_DEVOPSGURU_API LogAnomalyClass(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetLogAnomalyToken() const
void SetLogEventId(LogEventIdT &&value)
const Aws::String & GetLogStreamName() const
LogAnomalyClass & WithLogEventId(LogEventIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue