AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename AnomalyDetectorArnT = Aws::String>
45 void SetAnomalyDetectorArn(AnomalyDetectorArnT&& value) { m_anomalyDetectorArnHasBeenSet = true; m_anomalyDetectorArn = std::forward<AnomalyDetectorArnT>(value); }
46 template<typename AnomalyDetectorArnT = Aws::String>
47 UpdateLogAnomalyDetectorRequest& WithAnomalyDetectorArn(AnomalyDetectorArnT&& value) { SetAnomalyDetectorArn(std::forward<AnomalyDetectorArnT>(value)); return *this;}
49
51
58 inline EvaluationFrequency GetEvaluationFrequency() const { return m_evaluationFrequency; }
59 inline bool EvaluationFrequencyHasBeenSet() const { return m_evaluationFrequencyHasBeenSet; }
60 inline void SetEvaluationFrequency(EvaluationFrequency value) { m_evaluationFrequencyHasBeenSet = true; m_evaluationFrequency = value; }
63
65
66 inline const Aws::String& GetFilterPattern() const { return m_filterPattern; }
67 inline bool FilterPatternHasBeenSet() const { return m_filterPatternHasBeenSet; }
68 template<typename FilterPatternT = Aws::String>
69 void SetFilterPattern(FilterPatternT&& value) { m_filterPatternHasBeenSet = true; m_filterPattern = std::forward<FilterPatternT>(value); }
70 template<typename FilterPatternT = Aws::String>
71 UpdateLogAnomalyDetectorRequest& WithFilterPattern(FilterPatternT&& value) { SetFilterPattern(std::forward<FilterPatternT>(value)); return *this;}
73
75
82 inline long long GetAnomalyVisibilityTime() const { return m_anomalyVisibilityTime; }
83 inline bool AnomalyVisibilityTimeHasBeenSet() const { return m_anomalyVisibilityTimeHasBeenSet; }
84 inline void SetAnomalyVisibilityTime(long long value) { m_anomalyVisibilityTimeHasBeenSet = true; m_anomalyVisibilityTime = value; }
87
89
92 inline bool GetEnabled() const { return m_enabled; }
93 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
94 inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
95 inline UpdateLogAnomalyDetectorRequest& WithEnabled(bool value) { SetEnabled(value); return *this;}
97 private:
98
99 Aws::String m_anomalyDetectorArn;
100 bool m_anomalyDetectorArnHasBeenSet = false;
101
103 bool m_evaluationFrequencyHasBeenSet = false;
104
105 Aws::String m_filterPattern;
106 bool m_filterPatternHasBeenSet = false;
107
108 long long m_anomalyVisibilityTime{0};
109 bool m_anomalyVisibilityTimeHasBeenSet = false;
110
111 bool m_enabled{false};
112 bool m_enabledHasBeenSet = false;
113 };
114
115} // namespace Model
116} // namespace CloudWatchLogs
117} // namespace Aws
UpdateLogAnomalyDetectorRequest & WithAnomalyVisibilityTime(long long value)
AWS_CLOUDWATCHLOGS_API UpdateLogAnomalyDetectorRequest()=default
UpdateLogAnomalyDetectorRequest & WithAnomalyDetectorArn(AnomalyDetectorArnT &&value)
UpdateLogAnomalyDetectorRequest & WithEvaluationFrequency(EvaluationFrequency value)
AWS_CLOUDWATCHLOGS_API Aws::String SerializePayload() const override
UpdateLogAnomalyDetectorRequest & WithFilterPattern(FilterPatternT &&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