AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateLogAnomalyDetectorRequest.h
1
6#pragma once
7#include <aws/logs/CloudWatchLogs_EXPORTS.h>
8#include <aws/logs/CloudWatchLogsRequest.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/logs/model/EvaluationFrequency.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <utility>
14
15namespace Aws
16{
17namespace CloudWatchLogs
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_CLOUDWATCHLOGS_API CreateLogAnomalyDetectorRequest();
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreateLogAnomalyDetector"; }
34
35 AWS_CLOUDWATCHLOGS_API Aws::String SerializePayload() const override;
36
37 AWS_CLOUDWATCHLOGS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
38
39
41
45 inline const Aws::Vector<Aws::String>& GetLogGroupArnList() const{ return m_logGroupArnList; }
46 inline bool LogGroupArnListHasBeenSet() const { return m_logGroupArnListHasBeenSet; }
47 inline void SetLogGroupArnList(const Aws::Vector<Aws::String>& value) { m_logGroupArnListHasBeenSet = true; m_logGroupArnList = value; }
48 inline void SetLogGroupArnList(Aws::Vector<Aws::String>&& value) { m_logGroupArnListHasBeenSet = true; m_logGroupArnList = std::move(value); }
51 inline CreateLogAnomalyDetectorRequest& AddLogGroupArnList(const Aws::String& value) { m_logGroupArnListHasBeenSet = true; m_logGroupArnList.push_back(value); return *this; }
52 inline CreateLogAnomalyDetectorRequest& AddLogGroupArnList(Aws::String&& value) { m_logGroupArnListHasBeenSet = true; m_logGroupArnList.push_back(std::move(value)); return *this; }
53 inline CreateLogAnomalyDetectorRequest& AddLogGroupArnList(const char* value) { m_logGroupArnListHasBeenSet = true; m_logGroupArnList.push_back(value); return *this; }
55
57
60 inline const Aws::String& GetDetectorName() const{ return m_detectorName; }
61 inline bool DetectorNameHasBeenSet() const { return m_detectorNameHasBeenSet; }
62 inline void SetDetectorName(const Aws::String& value) { m_detectorNameHasBeenSet = true; m_detectorName = value; }
63 inline void SetDetectorName(Aws::String&& value) { m_detectorNameHasBeenSet = true; m_detectorName = std::move(value); }
64 inline void SetDetectorName(const char* value) { m_detectorNameHasBeenSet = true; m_detectorName.assign(value); }
65 inline CreateLogAnomalyDetectorRequest& WithDetectorName(const Aws::String& value) { SetDetectorName(value); return *this;}
66 inline CreateLogAnomalyDetectorRequest& WithDetectorName(Aws::String&& value) { SetDetectorName(std::move(value)); return *this;}
67 inline CreateLogAnomalyDetectorRequest& WithDetectorName(const char* value) { SetDetectorName(value); return *this;}
69
71
77 inline const EvaluationFrequency& GetEvaluationFrequency() const{ return m_evaluationFrequency; }
78 inline bool EvaluationFrequencyHasBeenSet() const { return m_evaluationFrequencyHasBeenSet; }
79 inline void SetEvaluationFrequency(const EvaluationFrequency& value) { m_evaluationFrequencyHasBeenSet = true; m_evaluationFrequency = value; }
80 inline void SetEvaluationFrequency(EvaluationFrequency&& value) { m_evaluationFrequencyHasBeenSet = true; m_evaluationFrequency = std::move(value); }
84
86
93 inline const Aws::String& GetFilterPattern() const{ return m_filterPattern; }
94 inline bool FilterPatternHasBeenSet() const { return m_filterPatternHasBeenSet; }
95 inline void SetFilterPattern(const Aws::String& value) { m_filterPatternHasBeenSet = true; m_filterPattern = value; }
96 inline void SetFilterPattern(Aws::String&& value) { m_filterPatternHasBeenSet = true; m_filterPattern = std::move(value); }
97 inline void SetFilterPattern(const char* value) { m_filterPatternHasBeenSet = true; m_filterPattern.assign(value); }
99 inline CreateLogAnomalyDetectorRequest& WithFilterPattern(Aws::String&& value) { SetFilterPattern(std::move(value)); return *this;}
100 inline CreateLogAnomalyDetectorRequest& WithFilterPattern(const char* value) { SetFilterPattern(value); return *this;}
102
104
115 inline const Aws::String& GetKmsKeyId() const{ return m_kmsKeyId; }
116 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
117 inline void SetKmsKeyId(const Aws::String& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = value; }
118 inline void SetKmsKeyId(Aws::String&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::move(value); }
119 inline void SetKmsKeyId(const char* value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId.assign(value); }
120 inline CreateLogAnomalyDetectorRequest& WithKmsKeyId(const Aws::String& value) { SetKmsKeyId(value); return *this;}
121 inline CreateLogAnomalyDetectorRequest& WithKmsKeyId(Aws::String&& value) { SetKmsKeyId(std::move(value)); return *this;}
122 inline CreateLogAnomalyDetectorRequest& WithKmsKeyId(const char* value) { SetKmsKeyId(value); return *this;}
124
126
134 inline long long GetAnomalyVisibilityTime() const{ return m_anomalyVisibilityTime; }
135 inline bool AnomalyVisibilityTimeHasBeenSet() const { return m_anomalyVisibilityTimeHasBeenSet; }
136 inline void SetAnomalyVisibilityTime(long long value) { m_anomalyVisibilityTimeHasBeenSet = true; m_anomalyVisibilityTime = value; }
139
141
147 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
148 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
149 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
150 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
152 inline CreateLogAnomalyDetectorRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
153 inline CreateLogAnomalyDetectorRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
154 inline CreateLogAnomalyDetectorRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
155 inline CreateLogAnomalyDetectorRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
156 inline CreateLogAnomalyDetectorRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
157 inline CreateLogAnomalyDetectorRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
158 inline CreateLogAnomalyDetectorRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
159 inline CreateLogAnomalyDetectorRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
161 private:
162
163 Aws::Vector<Aws::String> m_logGroupArnList;
164 bool m_logGroupArnListHasBeenSet = false;
165
166 Aws::String m_detectorName;
167 bool m_detectorNameHasBeenSet = false;
168
169 EvaluationFrequency m_evaluationFrequency;
170 bool m_evaluationFrequencyHasBeenSet = false;
171
172 Aws::String m_filterPattern;
173 bool m_filterPatternHasBeenSet = false;
174
175 Aws::String m_kmsKeyId;
176 bool m_kmsKeyIdHasBeenSet = false;
177
178 long long m_anomalyVisibilityTime;
179 bool m_anomalyVisibilityTimeHasBeenSet = false;
180
182 bool m_tagsHasBeenSet = false;
183 };
184
185} // namespace Model
186} // namespace CloudWatchLogs
187} // namespace Aws
CreateLogAnomalyDetectorRequest & AddTags(Aws::String &&key, Aws::String &&value)
CreateLogAnomalyDetectorRequest & WithLogGroupArnList(const Aws::Vector< Aws::String > &value)
CreateLogAnomalyDetectorRequest & WithLogGroupArnList(Aws::Vector< Aws::String > &&value)
CreateLogAnomalyDetectorRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateLogAnomalyDetectorRequest & AddTags(Aws::String &&key, const Aws::String &value)
AWS_CLOUDWATCHLOGS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateLogAnomalyDetectorRequest & WithKmsKeyId(Aws::String &&value)
CreateLogAnomalyDetectorRequest & WithEvaluationFrequency(const EvaluationFrequency &value)
CreateLogAnomalyDetectorRequest & AddTags(const Aws::String &key, Aws::String &&value)
CreateLogAnomalyDetectorRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateLogAnomalyDetectorRequest & WithKmsKeyId(const Aws::String &value)
CreateLogAnomalyDetectorRequest & WithFilterPattern(Aws::String &&value)
CreateLogAnomalyDetectorRequest & WithDetectorName(const Aws::String &value)
CreateLogAnomalyDetectorRequest & AddTags(const char *key, const char *value)
CreateLogAnomalyDetectorRequest & AddLogGroupArnList(const Aws::String &value)
CreateLogAnomalyDetectorRequest & WithDetectorName(Aws::String &&value)
CreateLogAnomalyDetectorRequest & WithAnomalyVisibilityTime(long long value)
CreateLogAnomalyDetectorRequest & AddLogGroupArnList(const char *value)
CreateLogAnomalyDetectorRequest & AddTags(Aws::String &&key, const char *value)
CreateLogAnomalyDetectorRequest & AddTags(const Aws::String &key, const Aws::String &value)
AWS_CLOUDWATCHLOGS_API Aws::String SerializePayload() const override
CreateLogAnomalyDetectorRequest & WithDetectorName(const char *value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateLogAnomalyDetectorRequest & WithKmsKeyId(const char *value)
CreateLogAnomalyDetectorRequest & WithFilterPattern(const char *value)
CreateLogAnomalyDetectorRequest & WithFilterPattern(const Aws::String &value)
CreateLogAnomalyDetectorRequest & AddLogGroupArnList(Aws::String &&value)
CreateLogAnomalyDetectorRequest & AddTags(const char *key, Aws::String &&value)
CreateLogAnomalyDetectorRequest & WithEvaluationFrequency(EvaluationFrequency &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
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