AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetAnomalyId(const Aws::String& value) { m_anomalyIdHasBeenSet = true; m_anomalyId = value; }
49 inline void SetAnomalyId(Aws::String&& value) { m_anomalyIdHasBeenSet = true; m_anomalyId = std::move(value); }
50 inline void SetAnomalyId(const char* value) { m_anomalyIdHasBeenSet = true; m_anomalyId.assign(value); }
51 inline UpdateAnomalyRequest& WithAnomalyId(const Aws::String& value) { SetAnomalyId(value); return *this;}
52 inline UpdateAnomalyRequest& WithAnomalyId(Aws::String&& value) { SetAnomalyId(std::move(value)); return *this;}
53 inline UpdateAnomalyRequest& WithAnomalyId(const char* value) { SetAnomalyId(value); return *this;}
55
57
63 inline const Aws::String& GetPatternId() const{ return m_patternId; }
64 inline bool PatternIdHasBeenSet() const { return m_patternIdHasBeenSet; }
65 inline void SetPatternId(const Aws::String& value) { m_patternIdHasBeenSet = true; m_patternId = value; }
66 inline void SetPatternId(Aws::String&& value) { m_patternIdHasBeenSet = true; m_patternId = std::move(value); }
67 inline void SetPatternId(const char* value) { m_patternIdHasBeenSet = true; m_patternId.assign(value); }
68 inline UpdateAnomalyRequest& WithPatternId(const Aws::String& value) { SetPatternId(value); return *this;}
69 inline UpdateAnomalyRequest& WithPatternId(Aws::String&& value) { SetPatternId(std::move(value)); return *this;}
70 inline UpdateAnomalyRequest& WithPatternId(const char* value) { SetPatternId(value); return *this;}
72
74
77 inline const Aws::String& GetAnomalyDetectorArn() const{ return m_anomalyDetectorArn; }
78 inline bool AnomalyDetectorArnHasBeenSet() const { return m_anomalyDetectorArnHasBeenSet; }
79 inline void SetAnomalyDetectorArn(const Aws::String& value) { m_anomalyDetectorArnHasBeenSet = true; m_anomalyDetectorArn = value; }
80 inline void SetAnomalyDetectorArn(Aws::String&& value) { m_anomalyDetectorArnHasBeenSet = true; m_anomalyDetectorArn = std::move(value); }
81 inline void SetAnomalyDetectorArn(const char* value) { m_anomalyDetectorArnHasBeenSet = true; m_anomalyDetectorArn.assign(value); }
83 inline UpdateAnomalyRequest& WithAnomalyDetectorArn(Aws::String&& value) { SetAnomalyDetectorArn(std::move(value)); return *this;}
84 inline UpdateAnomalyRequest& WithAnomalyDetectorArn(const char* value) { SetAnomalyDetectorArn(value); return *this;}
86
88
94 inline const SuppressionType& GetSuppressionType() const{ return m_suppressionType; }
95 inline bool SuppressionTypeHasBeenSet() const { return m_suppressionTypeHasBeenSet; }
96 inline void SetSuppressionType(const SuppressionType& value) { m_suppressionTypeHasBeenSet = true; m_suppressionType = value; }
97 inline void SetSuppressionType(SuppressionType&& value) { m_suppressionTypeHasBeenSet = true; m_suppressionType = std::move(value); }
98 inline UpdateAnomalyRequest& WithSuppressionType(const SuppressionType& value) { SetSuppressionType(value); return *this;}
99 inline UpdateAnomalyRequest& WithSuppressionType(SuppressionType&& value) { SetSuppressionType(std::move(value)); return *this;}
101
103
107 inline const SuppressionPeriod& GetSuppressionPeriod() const{ return m_suppressionPeriod; }
108 inline bool SuppressionPeriodHasBeenSet() const { return m_suppressionPeriodHasBeenSet; }
109 inline void SetSuppressionPeriod(const SuppressionPeriod& value) { m_suppressionPeriodHasBeenSet = true; m_suppressionPeriod = value; }
110 inline void SetSuppressionPeriod(SuppressionPeriod&& value) { m_suppressionPeriodHasBeenSet = true; m_suppressionPeriod = std::move(value); }
112 inline UpdateAnomalyRequest& WithSuppressionPeriod(SuppressionPeriod&& value) { SetSuppressionPeriod(std::move(value)); return *this;}
114
116
123 inline bool GetBaseline() const{ return m_baseline; }
124 inline bool BaselineHasBeenSet() const { return m_baselineHasBeenSet; }
125 inline void SetBaseline(bool value) { m_baselineHasBeenSet = true; m_baseline = value; }
126 inline UpdateAnomalyRequest& WithBaseline(bool value) { SetBaseline(value); return *this;}
128 private:
129
130 Aws::String m_anomalyId;
131 bool m_anomalyIdHasBeenSet = false;
132
133 Aws::String m_patternId;
134 bool m_patternIdHasBeenSet = false;
135
136 Aws::String m_anomalyDetectorArn;
137 bool m_anomalyDetectorArnHasBeenSet = false;
138
139 SuppressionType m_suppressionType;
140 bool m_suppressionTypeHasBeenSet = false;
141
142 SuppressionPeriod m_suppressionPeriod;
143 bool m_suppressionPeriodHasBeenSet = false;
144
145 bool m_baseline;
146 bool m_baselineHasBeenSet = false;
147 };
148
149} // namespace Model
150} // namespace CloudWatchLogs
151} // namespace Aws
AWS_CLOUDWATCHLOGS_API Aws::String SerializePayload() const override
UpdateAnomalyRequest & WithSuppressionType(SuppressionType &&value)
UpdateAnomalyRequest & WithSuppressionPeriod(const SuppressionPeriod &value)
UpdateAnomalyRequest & WithAnomalyId(const char *value)
const SuppressionPeriod & GetSuppressionPeriod() const
void SetSuppressionPeriod(const SuppressionPeriod &value)
UpdateAnomalyRequest & WithSuppressionPeriod(SuppressionPeriod &&value)
UpdateAnomalyRequest & WithSuppressionType(const SuppressionType &value)
void SetSuppressionType(const SuppressionType &value)
UpdateAnomalyRequest & WithPatternId(const Aws::String &value)
UpdateAnomalyRequest & WithAnomalyDetectorArn(const Aws::String &value)
UpdateAnomalyRequest & WithAnomalyId(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
UpdateAnomalyRequest & WithPatternId(Aws::String &&value)
UpdateAnomalyRequest & WithPatternId(const char *value)
UpdateAnomalyRequest & WithAnomalyId(const Aws::String &value)
UpdateAnomalyRequest & WithAnomalyDetectorArn(const char *value)
UpdateAnomalyRequest & 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