AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
UpdateAnomalyRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/logs/CloudWatchLogsRequest.h>
9#include <aws/logs/CloudWatchLogs_EXPORTS.h>
10#include <aws/logs/model/SuppressionPeriod.h>
11#include <aws/logs/model/SuppressionType.h>
12
13#include <utility>
14
15namespace Aws {
16namespace CloudWatchLogs {
17namespace Model {
18
22 public:
23 AWS_CLOUDWATCHLOGS_API UpdateAnomalyRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "UpdateAnomaly"; }
30
31 AWS_CLOUDWATCHLOGS_API Aws::String SerializePayload() const override;
32
33 AWS_CLOUDWATCHLOGS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
34
36
42 inline const Aws::String& GetAnomalyId() const { return m_anomalyId; }
43 inline bool AnomalyIdHasBeenSet() const { return m_anomalyIdHasBeenSet; }
44 template <typename AnomalyIdT = Aws::String>
45 void SetAnomalyId(AnomalyIdT&& value) {
46 m_anomalyIdHasBeenSet = true;
47 m_anomalyId = std::forward<AnomalyIdT>(value);
48 }
49 template <typename AnomalyIdT = Aws::String>
50 UpdateAnomalyRequest& WithAnomalyId(AnomalyIdT&& value) {
51 SetAnomalyId(std::forward<AnomalyIdT>(value));
52 return *this;
53 }
55
57
63 inline const Aws::String& GetPatternId() const { return m_patternId; }
64 inline bool PatternIdHasBeenSet() const { return m_patternIdHasBeenSet; }
65 template <typename PatternIdT = Aws::String>
66 void SetPatternId(PatternIdT&& value) {
67 m_patternIdHasBeenSet = true;
68 m_patternId = std::forward<PatternIdT>(value);
69 }
70 template <typename PatternIdT = Aws::String>
71 UpdateAnomalyRequest& WithPatternId(PatternIdT&& value) {
72 SetPatternId(std::forward<PatternIdT>(value));
73 return *this;
74 }
76
78
81 inline const Aws::String& GetAnomalyDetectorArn() const { return m_anomalyDetectorArn; }
82 inline bool AnomalyDetectorArnHasBeenSet() const { return m_anomalyDetectorArnHasBeenSet; }
83 template <typename AnomalyDetectorArnT = Aws::String>
84 void SetAnomalyDetectorArn(AnomalyDetectorArnT&& value) {
85 m_anomalyDetectorArnHasBeenSet = true;
86 m_anomalyDetectorArn = std::forward<AnomalyDetectorArnT>(value);
87 }
88 template <typename AnomalyDetectorArnT = Aws::String>
89 UpdateAnomalyRequest& WithAnomalyDetectorArn(AnomalyDetectorArnT&& value) {
90 SetAnomalyDetectorArn(std::forward<AnomalyDetectorArnT>(value));
91 return *this;
92 }
94
96
102 inline SuppressionType GetSuppressionType() const { return m_suppressionType; }
103 inline bool SuppressionTypeHasBeenSet() const { return m_suppressionTypeHasBeenSet; }
105 m_suppressionTypeHasBeenSet = true;
106 m_suppressionType = value;
107 }
109 SetSuppressionType(value);
110 return *this;
111 }
113
115
119 inline const SuppressionPeriod& GetSuppressionPeriod() const { return m_suppressionPeriod; }
120 inline bool SuppressionPeriodHasBeenSet() const { return m_suppressionPeriodHasBeenSet; }
121 template <typename SuppressionPeriodT = SuppressionPeriod>
122 void SetSuppressionPeriod(SuppressionPeriodT&& value) {
123 m_suppressionPeriodHasBeenSet = true;
124 m_suppressionPeriod = std::forward<SuppressionPeriodT>(value);
125 }
126 template <typename SuppressionPeriodT = SuppressionPeriod>
127 UpdateAnomalyRequest& WithSuppressionPeriod(SuppressionPeriodT&& value) {
128 SetSuppressionPeriod(std::forward<SuppressionPeriodT>(value));
129 return *this;
130 }
132
134
141 inline bool GetBaseline() const { return m_baseline; }
142 inline bool BaselineHasBeenSet() const { return m_baselineHasBeenSet; }
143 inline void SetBaseline(bool value) {
144 m_baselineHasBeenSet = true;
145 m_baseline = value;
146 }
147 inline UpdateAnomalyRequest& WithBaseline(bool value) {
148 SetBaseline(value);
149 return *this;
150 }
152 private:
153 Aws::String m_anomalyId;
154
155 Aws::String m_patternId;
156
157 Aws::String m_anomalyDetectorArn;
158
159 SuppressionType m_suppressionType{SuppressionType::NOT_SET};
160
161 SuppressionPeriod m_suppressionPeriod;
162
163 bool m_baseline{false};
164 bool m_anomalyIdHasBeenSet = false;
165 bool m_patternIdHasBeenSet = false;
166 bool m_anomalyDetectorArnHasBeenSet = false;
167 bool m_suppressionTypeHasBeenSet = false;
168 bool m_suppressionPeriodHasBeenSet = false;
169 bool m_baselineHasBeenSet = false;
170};
171
172} // namespace Model
173} // namespace CloudWatchLogs
174} // 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