AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename ConfigurationT = AnomalyDetectorConfiguration>
52 void SetConfiguration(ConfigurationT&& value) { m_configurationHasBeenSet = true; m_configuration = std::forward<ConfigurationT>(value); }
53 template<typename ConfigurationT = AnomalyDetectorConfiguration>
54 PutAnomalyDetectorRequest& WithConfiguration(ConfigurationT&& value) { SetConfiguration(std::forward<ConfigurationT>(value)); return *this;}
56
58
63 inline const MetricCharacteristics& GetMetricCharacteristics() const { return m_metricCharacteristics; }
64 inline bool MetricCharacteristicsHasBeenSet() const { return m_metricCharacteristicsHasBeenSet; }
65 template<typename MetricCharacteristicsT = MetricCharacteristics>
66 void SetMetricCharacteristics(MetricCharacteristicsT&& value) { m_metricCharacteristicsHasBeenSet = true; m_metricCharacteristics = std::forward<MetricCharacteristicsT>(value); }
67 template<typename MetricCharacteristicsT = MetricCharacteristics>
68 PutAnomalyDetectorRequest& WithMetricCharacteristics(MetricCharacteristicsT&& value) { SetMetricCharacteristics(std::forward<MetricCharacteristicsT>(value)); return *this;}
70
72
83 inline const SingleMetricAnomalyDetector& GetSingleMetricAnomalyDetector() const { return m_singleMetricAnomalyDetector; }
84 inline bool SingleMetricAnomalyDetectorHasBeenSet() const { return m_singleMetricAnomalyDetectorHasBeenSet; }
85 template<typename SingleMetricAnomalyDetectorT = SingleMetricAnomalyDetector>
86 void SetSingleMetricAnomalyDetector(SingleMetricAnomalyDetectorT&& value) { m_singleMetricAnomalyDetectorHasBeenSet = true; m_singleMetricAnomalyDetector = std::forward<SingleMetricAnomalyDetectorT>(value); }
87 template<typename SingleMetricAnomalyDetectorT = SingleMetricAnomalyDetector>
88 PutAnomalyDetectorRequest& WithSingleMetricAnomalyDetector(SingleMetricAnomalyDetectorT&& value) { SetSingleMetricAnomalyDetector(std::forward<SingleMetricAnomalyDetectorT>(value)); return *this;}
90
92
103 inline const MetricMathAnomalyDetector& GetMetricMathAnomalyDetector() const { return m_metricMathAnomalyDetector; }
104 inline bool MetricMathAnomalyDetectorHasBeenSet() const { return m_metricMathAnomalyDetectorHasBeenSet; }
105 template<typename MetricMathAnomalyDetectorT = MetricMathAnomalyDetector>
106 void SetMetricMathAnomalyDetector(MetricMathAnomalyDetectorT&& value) { m_metricMathAnomalyDetectorHasBeenSet = true; m_metricMathAnomalyDetector = std::forward<MetricMathAnomalyDetectorT>(value); }
107 template<typename MetricMathAnomalyDetectorT = MetricMathAnomalyDetector>
108 PutAnomalyDetectorRequest& WithMetricMathAnomalyDetector(MetricMathAnomalyDetectorT&& value) { SetMetricMathAnomalyDetector(std::forward<MetricMathAnomalyDetectorT>(value)); return *this;}
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
AWS_CLOUDWATCH_API PutAnomalyDetectorRequest()=default
const MetricMathAnomalyDetector & GetMetricMathAnomalyDetector() const
const SingleMetricAnomalyDetector & GetSingleMetricAnomalyDetector() const
void SetSingleMetricAnomalyDetector(SingleMetricAnomalyDetectorT &&value)
PutAnomalyDetectorRequest & WithConfiguration(ConfigurationT &&value)
AWS_CLOUDWATCH_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
void SetMetricCharacteristics(MetricCharacteristicsT &&value)
const AnomalyDetectorConfiguration & GetConfiguration() const
virtual const char * GetServiceRequestName() const override
PutAnomalyDetectorRequest & WithMetricCharacteristics(MetricCharacteristicsT &&value)
PutAnomalyDetectorRequest & WithMetricMathAnomalyDetector(MetricMathAnomalyDetectorT &&value)
PutAnomalyDetectorRequest & WithSingleMetricAnomalyDetector(SingleMetricAnomalyDetectorT &&value)
void SetMetricMathAnomalyDetector(MetricMathAnomalyDetectorT &&value)
AWS_CLOUDWATCH_API Aws::String SerializePayload() const override
const MetricCharacteristics & GetMetricCharacteristics() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String