AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PutAnomalyDetectorRequest.h
1
6#pragma once
7#include <aws/monitoring/CloudWatch_EXPORTS.h>
8#include <aws/monitoring/CloudWatchRequest.h>
9#include <aws/monitoring/model/AnomalyDetectorConfiguration.h>
10#include <aws/monitoring/model/MetricCharacteristics.h>
11#include <aws/monitoring/model/SingleMetricAnomalyDetector.h>
12#include <aws/monitoring/model/MetricMathAnomalyDetector.h>
13#include <utility>
14
15namespace Aws
16{
17namespace CloudWatch
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_CLOUDWATCH_API PutAnomalyDetectorRequest();
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "PutAnomalyDetector"; }
34
35 AWS_CLOUDWATCH_API Aws::String SerializePayload() const override;
36
37 protected:
38 AWS_CLOUDWATCH_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
39
40 public:
41
43
49 inline const AnomalyDetectorConfiguration& GetConfiguration() const{ return m_configuration; }
50 inline bool ConfigurationHasBeenSet() const { return m_configurationHasBeenSet; }
51 inline void SetConfiguration(const AnomalyDetectorConfiguration& value) { m_configurationHasBeenSet = true; m_configuration = value; }
52 inline void SetConfiguration(AnomalyDetectorConfiguration&& value) { m_configurationHasBeenSet = true; m_configuration = std::move(value); }
56
58
63 inline const MetricCharacteristics& GetMetricCharacteristics() const{ return m_metricCharacteristics; }
64 inline bool MetricCharacteristicsHasBeenSet() const { return m_metricCharacteristicsHasBeenSet; }
65 inline void SetMetricCharacteristics(const MetricCharacteristics& value) { m_metricCharacteristicsHasBeenSet = true; m_metricCharacteristics = value; }
66 inline void SetMetricCharacteristics(MetricCharacteristics&& value) { m_metricCharacteristicsHasBeenSet = true; m_metricCharacteristics = std::move(value); }
70
72
83 inline const SingleMetricAnomalyDetector& GetSingleMetricAnomalyDetector() const{ return m_singleMetricAnomalyDetector; }
84 inline bool SingleMetricAnomalyDetectorHasBeenSet() const { return m_singleMetricAnomalyDetectorHasBeenSet; }
85 inline void SetSingleMetricAnomalyDetector(const SingleMetricAnomalyDetector& value) { m_singleMetricAnomalyDetectorHasBeenSet = true; m_singleMetricAnomalyDetector = value; }
86 inline void SetSingleMetricAnomalyDetector(SingleMetricAnomalyDetector&& value) { m_singleMetricAnomalyDetectorHasBeenSet = true; m_singleMetricAnomalyDetector = std::move(value); }
90
92
103 inline const MetricMathAnomalyDetector& GetMetricMathAnomalyDetector() const{ return m_metricMathAnomalyDetector; }
104 inline bool MetricMathAnomalyDetectorHasBeenSet() const { return m_metricMathAnomalyDetectorHasBeenSet; }
105 inline void SetMetricMathAnomalyDetector(const MetricMathAnomalyDetector& value) { m_metricMathAnomalyDetectorHasBeenSet = true; m_metricMathAnomalyDetector = value; }
106 inline void SetMetricMathAnomalyDetector(MetricMathAnomalyDetector&& value) { m_metricMathAnomalyDetectorHasBeenSet = true; m_metricMathAnomalyDetector = std::move(value); }
110 private:
111
112 AnomalyDetectorConfiguration m_configuration;
113 bool m_configurationHasBeenSet = false;
114
115 MetricCharacteristics m_metricCharacteristics;
116 bool m_metricCharacteristicsHasBeenSet = false;
117
118 SingleMetricAnomalyDetector m_singleMetricAnomalyDetector;
119 bool m_singleMetricAnomalyDetectorHasBeenSet = false;
120
121 MetricMathAnomalyDetector m_metricMathAnomalyDetector;
122 bool m_metricMathAnomalyDetectorHasBeenSet = false;
123 };
124
125} // namespace Model
126} // namespace CloudWatch
127} // namespace Aws
const MetricMathAnomalyDetector & GetMetricMathAnomalyDetector() const
PutAnomalyDetectorRequest & WithMetricCharacteristics(const MetricCharacteristics &value)
void SetSingleMetricAnomalyDetector(SingleMetricAnomalyDetector &&value)
void SetMetricCharacteristics(const MetricCharacteristics &value)
PutAnomalyDetectorRequest & WithConfiguration(AnomalyDetectorConfiguration &&value)
void SetMetricMathAnomalyDetector(const MetricMathAnomalyDetector &value)
const SingleMetricAnomalyDetector & GetSingleMetricAnomalyDetector() const
AWS_CLOUDWATCH_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
PutAnomalyDetectorRequest & WithSingleMetricAnomalyDetector(const SingleMetricAnomalyDetector &value)
PutAnomalyDetectorRequest & WithConfiguration(const AnomalyDetectorConfiguration &value)
PutAnomalyDetectorRequest & WithMetricMathAnomalyDetector(const MetricMathAnomalyDetector &value)
const AnomalyDetectorConfiguration & GetConfiguration() const
virtual const char * GetServiceRequestName() const override
void SetSingleMetricAnomalyDetector(const SingleMetricAnomalyDetector &value)
PutAnomalyDetectorRequest & WithSingleMetricAnomalyDetector(SingleMetricAnomalyDetector &&value)
void SetConfiguration(const AnomalyDetectorConfiguration &value)
PutAnomalyDetectorRequest & WithMetricCharacteristics(MetricCharacteristics &&value)
AWS_CLOUDWATCH_API Aws::String SerializePayload() const override
const MetricCharacteristics & GetMetricCharacteristics() const
PutAnomalyDetectorRequest & WithMetricMathAnomalyDetector(MetricMathAnomalyDetector &&value)
void SetMetricCharacteristics(MetricCharacteristics &&value)
void SetConfiguration(AnomalyDetectorConfiguration &&value)
void SetMetricMathAnomalyDetector(MetricMathAnomalyDetector &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String