AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
UpdateAnomalyRequest.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/SuppressionType.h>
11#include <aws/logs/model/SuppressionPeriod.h>
12#include <utility>
13
14namespace Aws
15{
16namespace CloudWatchLogs
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_CLOUDWATCHLOGS_API UpdateAnomalyRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "UpdateAnomaly"; }
33
34 AWS_CLOUDWATCHLOGS_API Aws::String SerializePayload() const override;
35
36 AWS_CLOUDWATCHLOGS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
37
38
40
46 inline const Aws::String& GetAnomalyId() const { return m_anomalyId; }
47 inline bool AnomalyIdHasBeenSet() const { return m_anomalyIdHasBeenSet; }
48 template<typename AnomalyIdT = Aws::String>
49 void SetAnomalyId(AnomalyIdT&& value) { m_anomalyIdHasBeenSet = true; m_anomalyId = std::forward<AnomalyIdT>(value); }
50 template<typename AnomalyIdT = Aws::String>
51 UpdateAnomalyRequest& WithAnomalyId(AnomalyIdT&& value) { SetAnomalyId(std::forward<AnomalyIdT>(value)); return *this;}
53
55
61 inline const Aws::String& GetPatternId() const { return m_patternId; }
62 inline bool PatternIdHasBeenSet() const { return m_patternIdHasBeenSet; }
63 template<typename PatternIdT = Aws::String>
64 void SetPatternId(PatternIdT&& value) { m_patternIdHasBeenSet = true; m_patternId = std::forward<PatternIdT>(value); }
65 template<typename PatternIdT = Aws::String>
66 UpdateAnomalyRequest& WithPatternId(PatternIdT&& value) { SetPatternId(std::forward<PatternIdT>(value)); return *this;}
68
70
73 inline const Aws::String& GetAnomalyDetectorArn() const { return m_anomalyDetectorArn; }
74 inline bool AnomalyDetectorArnHasBeenSet() const { return m_anomalyDetectorArnHasBeenSet; }
75 template<typename AnomalyDetectorArnT = Aws::String>
76 void SetAnomalyDetectorArn(AnomalyDetectorArnT&& value) { m_anomalyDetectorArnHasBeenSet = true; m_anomalyDetectorArn = std::forward<AnomalyDetectorArnT>(value); }
77 template<typename AnomalyDetectorArnT = Aws::String>
78 UpdateAnomalyRequest& WithAnomalyDetectorArn(AnomalyDetectorArnT&& value) { SetAnomalyDetectorArn(std::forward<AnomalyDetectorArnT>(value)); return *this;}
80
82
88 inline SuppressionType GetSuppressionType() const { return m_suppressionType; }
89 inline bool SuppressionTypeHasBeenSet() const { return m_suppressionTypeHasBeenSet; }
90 inline void SetSuppressionType(SuppressionType value) { m_suppressionTypeHasBeenSet = true; m_suppressionType = value; }
93
95
99 inline const SuppressionPeriod& GetSuppressionPeriod() const { return m_suppressionPeriod; }
100 inline bool SuppressionPeriodHasBeenSet() const { return m_suppressionPeriodHasBeenSet; }
101 template<typename SuppressionPeriodT = SuppressionPeriod>
102 void SetSuppressionPeriod(SuppressionPeriodT&& value) { m_suppressionPeriodHasBeenSet = true; m_suppressionPeriod = std::forward<SuppressionPeriodT>(value); }
103 template<typename SuppressionPeriodT = SuppressionPeriod>
104 UpdateAnomalyRequest& WithSuppressionPeriod(SuppressionPeriodT&& value) { SetSuppressionPeriod(std::forward<SuppressionPeriodT>(value)); return *this;}
106
108
115 inline bool GetBaseline() const { return m_baseline; }
116 inline bool BaselineHasBeenSet() const { return m_baselineHasBeenSet; }
117 inline void SetBaseline(bool value) { m_baselineHasBeenSet = true; m_baseline = value; }
118 inline UpdateAnomalyRequest& WithBaseline(bool value) { SetBaseline(value); return *this;}
120 private:
121
122 Aws::String m_anomalyId;
123 bool m_anomalyIdHasBeenSet = false;
124
125 Aws::String m_patternId;
126 bool m_patternIdHasBeenSet = false;
127
128 Aws::String m_anomalyDetectorArn;
129 bool m_anomalyDetectorArnHasBeenSet = false;
130
131 SuppressionType m_suppressionType{SuppressionType::NOT_SET};
132 bool m_suppressionTypeHasBeenSet = false;
133
134 SuppressionPeriod m_suppressionPeriod;
135 bool m_suppressionPeriodHasBeenSet = false;
136
137 bool m_baseline{false};
138 bool m_baselineHasBeenSet = false;
139 };
140
141} // namespace Model
142} // namespace CloudWatchLogs
143} // namespace Aws
AWS_CLOUDWATCHLOGS_API Aws::String SerializePayload() const override
AWS_CLOUDWATCHLOGS_API UpdateAnomalyRequest()=default
UpdateAnomalyRequest & WithAnomalyId(AnomalyIdT &&value)
UpdateAnomalyRequest & WithSuppressionType(SuppressionType value)
const SuppressionPeriod & GetSuppressionPeriod() const
UpdateAnomalyRequest & WithPatternId(PatternIdT &&value)
UpdateAnomalyRequest & WithSuppressionPeriod(SuppressionPeriodT &&value)
virtual const char * GetServiceRequestName() const override
void SetAnomalyDetectorArn(AnomalyDetectorArnT &&value)
UpdateAnomalyRequest & WithAnomalyDetectorArn(AnomalyDetectorArnT &&value)
void SetSuppressionPeriod(SuppressionPeriodT &&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