AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
DescribeAnomalyDetectorsRequest.h
1
6#pragma once
7#include <aws/monitoring/CloudWatch_EXPORTS.h>
8#include <aws/monitoring/CloudWatchRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/monitoring/model/Dimension.h>
12#include <aws/monitoring/model/AnomalyDetectorType.h>
13#include <utility>
14
15namespace Aws
16{
17namespace CloudWatch
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_CLOUDWATCH_API DescribeAnomalyDetectorsRequest() = 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 "DescribeAnomalyDetectors"; }
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
47 inline const Aws::String& GetNextToken() const { return m_nextToken; }
48 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
49 template<typename NextTokenT = Aws::String>
50 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
51 template<typename NextTokenT = Aws::String>
52 DescribeAnomalyDetectorsRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
54
56
61 inline int GetMaxResults() const { return m_maxResults; }
62 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
63 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
64 inline DescribeAnomalyDetectorsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
66
68
72 inline const Aws::String& GetNamespace() const { return m_namespace; }
73 inline bool NamespaceHasBeenSet() const { return m_namespaceHasBeenSet; }
74 template<typename NamespaceT = Aws::String>
75 void SetNamespace(NamespaceT&& value) { m_namespaceHasBeenSet = true; m_namespace = std::forward<NamespaceT>(value); }
76 template<typename NamespaceT = Aws::String>
77 DescribeAnomalyDetectorsRequest& WithNamespace(NamespaceT&& value) { SetNamespace(std::forward<NamespaceT>(value)); return *this;}
79
81
87 inline const Aws::String& GetMetricName() const { return m_metricName; }
88 inline bool MetricNameHasBeenSet() const { return m_metricNameHasBeenSet; }
89 template<typename MetricNameT = Aws::String>
90 void SetMetricName(MetricNameT&& value) { m_metricNameHasBeenSet = true; m_metricName = std::forward<MetricNameT>(value); }
91 template<typename MetricNameT = Aws::String>
92 DescribeAnomalyDetectorsRequest& WithMetricName(MetricNameT&& value) { SetMetricName(std::forward<MetricNameT>(value)); return *this;}
94
96
102 inline const Aws::Vector<Dimension>& GetDimensions() const { return m_dimensions; }
103 inline bool DimensionsHasBeenSet() const { return m_dimensionsHasBeenSet; }
104 template<typename DimensionsT = Aws::Vector<Dimension>>
105 void SetDimensions(DimensionsT&& value) { m_dimensionsHasBeenSet = true; m_dimensions = std::forward<DimensionsT>(value); }
106 template<typename DimensionsT = Aws::Vector<Dimension>>
107 DescribeAnomalyDetectorsRequest& WithDimensions(DimensionsT&& value) { SetDimensions(std::forward<DimensionsT>(value)); return *this;}
108 template<typename DimensionsT = Dimension>
109 DescribeAnomalyDetectorsRequest& AddDimensions(DimensionsT&& value) { m_dimensionsHasBeenSet = true; m_dimensions.emplace_back(std::forward<DimensionsT>(value)); return *this; }
111
113
118 inline const Aws::Vector<AnomalyDetectorType>& GetAnomalyDetectorTypes() const { return m_anomalyDetectorTypes; }
119 inline bool AnomalyDetectorTypesHasBeenSet() const { return m_anomalyDetectorTypesHasBeenSet; }
120 template<typename AnomalyDetectorTypesT = Aws::Vector<AnomalyDetectorType>>
121 void SetAnomalyDetectorTypes(AnomalyDetectorTypesT&& value) { m_anomalyDetectorTypesHasBeenSet = true; m_anomalyDetectorTypes = std::forward<AnomalyDetectorTypesT>(value); }
122 template<typename AnomalyDetectorTypesT = Aws::Vector<AnomalyDetectorType>>
123 DescribeAnomalyDetectorsRequest& WithAnomalyDetectorTypes(AnomalyDetectorTypesT&& value) { SetAnomalyDetectorTypes(std::forward<AnomalyDetectorTypesT>(value)); return *this;}
124 inline DescribeAnomalyDetectorsRequest& AddAnomalyDetectorTypes(AnomalyDetectorType value) { m_anomalyDetectorTypesHasBeenSet = true; m_anomalyDetectorTypes.push_back(value); return *this; }
126 private:
127
128 Aws::String m_nextToken;
129 bool m_nextTokenHasBeenSet = false;
130
131 int m_maxResults{0};
132 bool m_maxResultsHasBeenSet = false;
133
134 Aws::String m_namespace;
135 bool m_namespaceHasBeenSet = false;
136
137 Aws::String m_metricName;
138 bool m_metricNameHasBeenSet = false;
139
140 Aws::Vector<Dimension> m_dimensions;
141 bool m_dimensionsHasBeenSet = false;
142
143 Aws::Vector<AnomalyDetectorType> m_anomalyDetectorTypes;
144 bool m_anomalyDetectorTypesHasBeenSet = false;
145 };
146
147} // namespace Model
148} // namespace CloudWatch
149} // namespace Aws
AWS_CLOUDWATCH_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
DescribeAnomalyDetectorsRequest & WithNamespace(NamespaceT &&value)
DescribeAnomalyDetectorsRequest & AddAnomalyDetectorTypes(AnomalyDetectorType value)
const Aws::Vector< AnomalyDetectorType > & GetAnomalyDetectorTypes() const
DescribeAnomalyDetectorsRequest & WithDimensions(DimensionsT &&value)
AWS_CLOUDWATCH_API DescribeAnomalyDetectorsRequest()=default
DescribeAnomalyDetectorsRequest & WithNextToken(NextTokenT &&value)
DescribeAnomalyDetectorsRequest & AddDimensions(DimensionsT &&value)
AWS_CLOUDWATCH_API Aws::String SerializePayload() const override
DescribeAnomalyDetectorsRequest & WithAnomalyDetectorTypes(AnomalyDetectorTypesT &&value)
DescribeAnomalyDetectorsRequest & WithMetricName(MetricNameT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector