AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
50 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
51 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
52 inline DescribeAnomalyDetectorsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
53 inline DescribeAnomalyDetectorsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
54 inline DescribeAnomalyDetectorsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
56
58
63 inline int GetMaxResults() const{ return m_maxResults; }
64 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
65 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
66 inline DescribeAnomalyDetectorsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
68
70
74 inline const Aws::String& GetNamespace() const{ return m_namespace; }
75 inline bool NamespaceHasBeenSet() const { return m_namespaceHasBeenSet; }
76 inline void SetNamespace(const Aws::String& value) { m_namespaceHasBeenSet = true; m_namespace = value; }
77 inline void SetNamespace(Aws::String&& value) { m_namespaceHasBeenSet = true; m_namespace = std::move(value); }
78 inline void SetNamespace(const char* value) { m_namespaceHasBeenSet = true; m_namespace.assign(value); }
79 inline DescribeAnomalyDetectorsRequest& WithNamespace(const Aws::String& value) { SetNamespace(value); return *this;}
80 inline DescribeAnomalyDetectorsRequest& WithNamespace(Aws::String&& value) { SetNamespace(std::move(value)); return *this;}
81 inline DescribeAnomalyDetectorsRequest& WithNamespace(const char* value) { SetNamespace(value); return *this;}
83
85
91 inline const Aws::String& GetMetricName() const{ return m_metricName; }
92 inline bool MetricNameHasBeenSet() const { return m_metricNameHasBeenSet; }
93 inline void SetMetricName(const Aws::String& value) { m_metricNameHasBeenSet = true; m_metricName = value; }
94 inline void SetMetricName(Aws::String&& value) { m_metricNameHasBeenSet = true; m_metricName = std::move(value); }
95 inline void SetMetricName(const char* value) { m_metricNameHasBeenSet = true; m_metricName.assign(value); }
96 inline DescribeAnomalyDetectorsRequest& WithMetricName(const Aws::String& value) { SetMetricName(value); return *this;}
97 inline DescribeAnomalyDetectorsRequest& WithMetricName(Aws::String&& value) { SetMetricName(std::move(value)); return *this;}
98 inline DescribeAnomalyDetectorsRequest& WithMetricName(const char* value) { SetMetricName(value); return *this;}
100
102
108 inline const Aws::Vector<Dimension>& GetDimensions() const{ return m_dimensions; }
109 inline bool DimensionsHasBeenSet() const { return m_dimensionsHasBeenSet; }
110 inline void SetDimensions(const Aws::Vector<Dimension>& value) { m_dimensionsHasBeenSet = true; m_dimensions = value; }
111 inline void SetDimensions(Aws::Vector<Dimension>&& value) { m_dimensionsHasBeenSet = true; m_dimensions = std::move(value); }
113 inline DescribeAnomalyDetectorsRequest& WithDimensions(Aws::Vector<Dimension>&& value) { SetDimensions(std::move(value)); return *this;}
114 inline DescribeAnomalyDetectorsRequest& AddDimensions(const Dimension& value) { m_dimensionsHasBeenSet = true; m_dimensions.push_back(value); return *this; }
115 inline DescribeAnomalyDetectorsRequest& AddDimensions(Dimension&& value) { m_dimensionsHasBeenSet = true; m_dimensions.push_back(std::move(value)); return *this; }
117
119
124 inline const Aws::Vector<AnomalyDetectorType>& GetAnomalyDetectorTypes() const{ return m_anomalyDetectorTypes; }
125 inline bool AnomalyDetectorTypesHasBeenSet() const { return m_anomalyDetectorTypesHasBeenSet; }
126 inline void SetAnomalyDetectorTypes(const Aws::Vector<AnomalyDetectorType>& value) { m_anomalyDetectorTypesHasBeenSet = true; m_anomalyDetectorTypes = value; }
127 inline void SetAnomalyDetectorTypes(Aws::Vector<AnomalyDetectorType>&& value) { m_anomalyDetectorTypesHasBeenSet = true; m_anomalyDetectorTypes = std::move(value); }
130 inline DescribeAnomalyDetectorsRequest& AddAnomalyDetectorTypes(const AnomalyDetectorType& value) { m_anomalyDetectorTypesHasBeenSet = true; m_anomalyDetectorTypes.push_back(value); return *this; }
131 inline DescribeAnomalyDetectorsRequest& AddAnomalyDetectorTypes(AnomalyDetectorType&& value) { m_anomalyDetectorTypesHasBeenSet = true; m_anomalyDetectorTypes.push_back(std::move(value)); return *this; }
133 private:
134
135 Aws::String m_nextToken;
136 bool m_nextTokenHasBeenSet = false;
137
138 int m_maxResults;
139 bool m_maxResultsHasBeenSet = false;
140
141 Aws::String m_namespace;
142 bool m_namespaceHasBeenSet = false;
143
144 Aws::String m_metricName;
145 bool m_metricNameHasBeenSet = false;
146
147 Aws::Vector<Dimension> m_dimensions;
148 bool m_dimensionsHasBeenSet = false;
149
150 Aws::Vector<AnomalyDetectorType> m_anomalyDetectorTypes;
151 bool m_anomalyDetectorTypesHasBeenSet = false;
152 };
153
154} // namespace Model
155} // namespace CloudWatch
156} // namespace Aws
DescribeAnomalyDetectorsRequest & WithAnomalyDetectorTypes(Aws::Vector< AnomalyDetectorType > &&value)
AWS_CLOUDWATCH_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
DescribeAnomalyDetectorsRequest & AddAnomalyDetectorTypes(AnomalyDetectorType &&value)
DescribeAnomalyDetectorsRequest & WithNextToken(Aws::String &&value)
DescribeAnomalyDetectorsRequest & WithNamespace(Aws::String &&value)
DescribeAnomalyDetectorsRequest & WithNextToken(const char *value)
DescribeAnomalyDetectorsRequest & WithDimensions(const Aws::Vector< Dimension > &value)
DescribeAnomalyDetectorsRequest & WithNextToken(const Aws::String &value)
DescribeAnomalyDetectorsRequest & WithMetricName(Aws::String &&value)
DescribeAnomalyDetectorsRequest & AddDimensions(const Dimension &value)
void SetAnomalyDetectorTypes(Aws::Vector< AnomalyDetectorType > &&value)
const Aws::Vector< AnomalyDetectorType > & GetAnomalyDetectorTypes() const
void SetAnomalyDetectorTypes(const Aws::Vector< AnomalyDetectorType > &value)
DescribeAnomalyDetectorsRequest & AddDimensions(Dimension &&value)
DescribeAnomalyDetectorsRequest & WithDimensions(Aws::Vector< Dimension > &&value)
AWS_CLOUDWATCH_API Aws::String SerializePayload() const override
DescribeAnomalyDetectorsRequest & AddAnomalyDetectorTypes(const AnomalyDetectorType &value)
DescribeAnomalyDetectorsRequest & WithAnomalyDetectorTypes(const Aws::Vector< AnomalyDetectorType > &value)
DescribeAnomalyDetectorsRequest & WithMetricName(const Aws::String &value)
DescribeAnomalyDetectorsRequest & WithNamespace(const Aws::String &value)
DescribeAnomalyDetectorsRequest & WithMetricName(const char *value)
DescribeAnomalyDetectorsRequest & WithNamespace(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector