AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename LogGroupArnListT = Aws::Vector<Aws::String>>
48 void SetLogGroupArnList(LogGroupArnListT&& value) { m_logGroupArnListHasBeenSet = true; m_logGroupArnList = std::forward<LogGroupArnListT>(value); }
49 template<typename LogGroupArnListT = Aws::Vector<Aws::String>>
50 CreateLogAnomalyDetectorRequest& WithLogGroupArnList(LogGroupArnListT&& value) { SetLogGroupArnList(std::forward<LogGroupArnListT>(value)); return *this;}
51 template<typename LogGroupArnListT = Aws::String>
52 CreateLogAnomalyDetectorRequest& AddLogGroupArnList(LogGroupArnListT&& value) { m_logGroupArnListHasBeenSet = true; m_logGroupArnList.emplace_back(std::forward<LogGroupArnListT>(value)); return *this; }
54
56
59 inline const Aws::String& GetDetectorName() const { return m_detectorName; }
60 inline bool DetectorNameHasBeenSet() const { return m_detectorNameHasBeenSet; }
61 template<typename DetectorNameT = Aws::String>
62 void SetDetectorName(DetectorNameT&& value) { m_detectorNameHasBeenSet = true; m_detectorName = std::forward<DetectorNameT>(value); }
63 template<typename DetectorNameT = Aws::String>
64 CreateLogAnomalyDetectorRequest& WithDetectorName(DetectorNameT&& value) { SetDetectorName(std::forward<DetectorNameT>(value)); return *this;}
66
68
74 inline EvaluationFrequency GetEvaluationFrequency() const { return m_evaluationFrequency; }
75 inline bool EvaluationFrequencyHasBeenSet() const { return m_evaluationFrequencyHasBeenSet; }
76 inline void SetEvaluationFrequency(EvaluationFrequency value) { m_evaluationFrequencyHasBeenSet = true; m_evaluationFrequency = value; }
79
81
88 inline const Aws::String& GetFilterPattern() const { return m_filterPattern; }
89 inline bool FilterPatternHasBeenSet() const { return m_filterPatternHasBeenSet; }
90 template<typename FilterPatternT = Aws::String>
91 void SetFilterPattern(FilterPatternT&& value) { m_filterPatternHasBeenSet = true; m_filterPattern = std::forward<FilterPatternT>(value); }
92 template<typename FilterPatternT = Aws::String>
93 CreateLogAnomalyDetectorRequest& WithFilterPattern(FilterPatternT&& value) { SetFilterPattern(std::forward<FilterPatternT>(value)); return *this;}
95
97
108 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
109 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
110 template<typename KmsKeyIdT = Aws::String>
111 void SetKmsKeyId(KmsKeyIdT&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::forward<KmsKeyIdT>(value); }
112 template<typename KmsKeyIdT = Aws::String>
113 CreateLogAnomalyDetectorRequest& WithKmsKeyId(KmsKeyIdT&& value) { SetKmsKeyId(std::forward<KmsKeyIdT>(value)); return *this;}
115
117
125 inline long long GetAnomalyVisibilityTime() const { return m_anomalyVisibilityTime; }
126 inline bool AnomalyVisibilityTimeHasBeenSet() const { return m_anomalyVisibilityTimeHasBeenSet; }
127 inline void SetAnomalyVisibilityTime(long long value) { m_anomalyVisibilityTimeHasBeenSet = true; m_anomalyVisibilityTime = value; }
130
132
138 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
139 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
140 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
141 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
142 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
143 CreateLogAnomalyDetectorRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
144 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
145 CreateLogAnomalyDetectorRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
146 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
147 }
149 private:
150
151 Aws::Vector<Aws::String> m_logGroupArnList;
152 bool m_logGroupArnListHasBeenSet = false;
153
154 Aws::String m_detectorName;
155 bool m_detectorNameHasBeenSet = false;
156
158 bool m_evaluationFrequencyHasBeenSet = false;
159
160 Aws::String m_filterPattern;
161 bool m_filterPatternHasBeenSet = false;
162
163 Aws::String m_kmsKeyId;
164 bool m_kmsKeyIdHasBeenSet = false;
165
166 long long m_anomalyVisibilityTime{0};
167 bool m_anomalyVisibilityTimeHasBeenSet = false;
168
170 bool m_tagsHasBeenSet = false;
171 };
172
173} // namespace Model
174} // namespace CloudWatchLogs
175} // namespace Aws
CreateLogAnomalyDetectorRequest & WithFilterPattern(FilterPatternT &&value)
CreateLogAnomalyDetectorRequest & WithKmsKeyId(KmsKeyIdT &&value)
AWS_CLOUDWATCHLOGS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_CLOUDWATCHLOGS_API CreateLogAnomalyDetectorRequest()=default
CreateLogAnomalyDetectorRequest & WithLogGroupArnList(LogGroupArnListT &&value)
CreateLogAnomalyDetectorRequest & AddLogGroupArnList(LogGroupArnListT &&value)
CreateLogAnomalyDetectorRequest & WithEvaluationFrequency(EvaluationFrequency value)
CreateLogAnomalyDetectorRequest & WithAnomalyVisibilityTime(long long value)
CreateLogAnomalyDetectorRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
AWS_CLOUDWATCHLOGS_API Aws::String SerializePayload() const override
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateLogAnomalyDetectorRequest & WithDetectorName(DetectorNameT &&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