AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateLogAnomalyDetectorRequest.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/AWSString.h>
10#include <aws/logs/model/EvaluationFrequency.h>
11#include <utility>
12
13namespace Aws
14{
15namespace CloudWatchLogs
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_CLOUDWATCHLOGS_API UpdateLogAnomalyDetectorRequest();
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "UpdateLogAnomalyDetector"; }
32
33 AWS_CLOUDWATCHLOGS_API Aws::String SerializePayload() const override;
34
35 AWS_CLOUDWATCHLOGS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
36
37
39
42 inline const Aws::String& GetAnomalyDetectorArn() const{ return m_anomalyDetectorArn; }
43 inline bool AnomalyDetectorArnHasBeenSet() const { return m_anomalyDetectorArnHasBeenSet; }
44 inline void SetAnomalyDetectorArn(const Aws::String& value) { m_anomalyDetectorArnHasBeenSet = true; m_anomalyDetectorArn = value; }
45 inline void SetAnomalyDetectorArn(Aws::String&& value) { m_anomalyDetectorArnHasBeenSet = true; m_anomalyDetectorArn = std::move(value); }
46 inline void SetAnomalyDetectorArn(const char* value) { m_anomalyDetectorArnHasBeenSet = true; m_anomalyDetectorArn.assign(value); }
49 inline UpdateLogAnomalyDetectorRequest& WithAnomalyDetectorArn(const char* value) { SetAnomalyDetectorArn(value); return *this;}
51
53
60 inline const EvaluationFrequency& GetEvaluationFrequency() const{ return m_evaluationFrequency; }
61 inline bool EvaluationFrequencyHasBeenSet() const { return m_evaluationFrequencyHasBeenSet; }
62 inline void SetEvaluationFrequency(const EvaluationFrequency& value) { m_evaluationFrequencyHasBeenSet = true; m_evaluationFrequency = value; }
63 inline void SetEvaluationFrequency(EvaluationFrequency&& value) { m_evaluationFrequencyHasBeenSet = true; m_evaluationFrequency = std::move(value); }
67
69
70 inline const Aws::String& GetFilterPattern() const{ return m_filterPattern; }
71 inline bool FilterPatternHasBeenSet() const { return m_filterPatternHasBeenSet; }
72 inline void SetFilterPattern(const Aws::String& value) { m_filterPatternHasBeenSet = true; m_filterPattern = value; }
73 inline void SetFilterPattern(Aws::String&& value) { m_filterPatternHasBeenSet = true; m_filterPattern = std::move(value); }
74 inline void SetFilterPattern(const char* value) { m_filterPatternHasBeenSet = true; m_filterPattern.assign(value); }
76 inline UpdateLogAnomalyDetectorRequest& WithFilterPattern(Aws::String&& value) { SetFilterPattern(std::move(value)); return *this;}
77 inline UpdateLogAnomalyDetectorRequest& WithFilterPattern(const char* value) { SetFilterPattern(value); return *this;}
79
81
88 inline long long GetAnomalyVisibilityTime() const{ return m_anomalyVisibilityTime; }
89 inline bool AnomalyVisibilityTimeHasBeenSet() const { return m_anomalyVisibilityTimeHasBeenSet; }
90 inline void SetAnomalyVisibilityTime(long long value) { m_anomalyVisibilityTimeHasBeenSet = true; m_anomalyVisibilityTime = value; }
93
95
98 inline bool GetEnabled() const{ return m_enabled; }
99 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
100 inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
101 inline UpdateLogAnomalyDetectorRequest& WithEnabled(bool value) { SetEnabled(value); return *this;}
103 private:
104
105 Aws::String m_anomalyDetectorArn;
106 bool m_anomalyDetectorArnHasBeenSet = false;
107
108 EvaluationFrequency m_evaluationFrequency;
109 bool m_evaluationFrequencyHasBeenSet = false;
110
111 Aws::String m_filterPattern;
112 bool m_filterPatternHasBeenSet = false;
113
114 long long m_anomalyVisibilityTime;
115 bool m_anomalyVisibilityTimeHasBeenSet = false;
116
117 bool m_enabled;
118 bool m_enabledHasBeenSet = false;
119 };
120
121} // namespace Model
122} // namespace CloudWatchLogs
123} // namespace Aws
UpdateLogAnomalyDetectorRequest & WithEvaluationFrequency(const EvaluationFrequency &value)
UpdateLogAnomalyDetectorRequest & WithEvaluationFrequency(EvaluationFrequency &&value)
UpdateLogAnomalyDetectorRequest & WithAnomalyVisibilityTime(long long value)
UpdateLogAnomalyDetectorRequest & WithFilterPattern(const Aws::String &value)
AWS_CLOUDWATCHLOGS_API Aws::String SerializePayload() const override
UpdateLogAnomalyDetectorRequest & WithFilterPattern(const char *value)
UpdateLogAnomalyDetectorRequest & WithAnomalyDetectorArn(const char *value)
UpdateLogAnomalyDetectorRequest & WithFilterPattern(Aws::String &&value)
UpdateLogAnomalyDetectorRequest & WithAnomalyDetectorArn(const Aws::String &value)
UpdateLogAnomalyDetectorRequest & WithAnomalyDetectorArn(Aws::String &&value)
AWS_CLOUDWATCHLOGS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String