AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ListMetricsRequest.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/RecentlyActive.h>
12#include <aws/monitoring/model/DimensionFilter.h>
13#include <utility>
14
15namespace Aws
16{
17namespace CloudWatch
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_CLOUDWATCH_API ListMetricsRequest();
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 "ListMetrics"; }
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& GetNamespace() const{ return m_namespace; }
48 inline bool NamespaceHasBeenSet() const { return m_namespaceHasBeenSet; }
49 inline void SetNamespace(const Aws::String& value) { m_namespaceHasBeenSet = true; m_namespace = value; }
50 inline void SetNamespace(Aws::String&& value) { m_namespaceHasBeenSet = true; m_namespace = std::move(value); }
51 inline void SetNamespace(const char* value) { m_namespaceHasBeenSet = true; m_namespace.assign(value); }
52 inline ListMetricsRequest& WithNamespace(const Aws::String& value) { SetNamespace(value); return *this;}
53 inline ListMetricsRequest& WithNamespace(Aws::String&& value) { SetNamespace(std::move(value)); return *this;}
54 inline ListMetricsRequest& WithNamespace(const char* value) { SetNamespace(value); return *this;}
56
58
62 inline const Aws::String& GetMetricName() const{ return m_metricName; }
63 inline bool MetricNameHasBeenSet() const { return m_metricNameHasBeenSet; }
64 inline void SetMetricName(const Aws::String& value) { m_metricNameHasBeenSet = true; m_metricName = value; }
65 inline void SetMetricName(Aws::String&& value) { m_metricNameHasBeenSet = true; m_metricName = std::move(value); }
66 inline void SetMetricName(const char* value) { m_metricNameHasBeenSet = true; m_metricName.assign(value); }
67 inline ListMetricsRequest& WithMetricName(const Aws::String& value) { SetMetricName(value); return *this;}
68 inline ListMetricsRequest& WithMetricName(Aws::String&& value) { SetMetricName(std::move(value)); return *this;}
69 inline ListMetricsRequest& WithMetricName(const char* value) { SetMetricName(value); return *this;}
71
73
77 inline const Aws::Vector<DimensionFilter>& GetDimensions() const{ return m_dimensions; }
78 inline bool DimensionsHasBeenSet() const { return m_dimensionsHasBeenSet; }
79 inline void SetDimensions(const Aws::Vector<DimensionFilter>& value) { m_dimensionsHasBeenSet = true; m_dimensions = value; }
80 inline void SetDimensions(Aws::Vector<DimensionFilter>&& value) { m_dimensionsHasBeenSet = true; m_dimensions = std::move(value); }
81 inline ListMetricsRequest& WithDimensions(const Aws::Vector<DimensionFilter>& value) { SetDimensions(value); return *this;}
82 inline ListMetricsRequest& WithDimensions(Aws::Vector<DimensionFilter>&& value) { SetDimensions(std::move(value)); return *this;}
83 inline ListMetricsRequest& AddDimensions(const DimensionFilter& value) { m_dimensionsHasBeenSet = true; m_dimensions.push_back(value); return *this; }
84 inline ListMetricsRequest& AddDimensions(DimensionFilter&& value) { m_dimensionsHasBeenSet = true; m_dimensions.push_back(std::move(value)); return *this; }
86
88
92 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
93 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
94 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
95 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
96 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
97 inline ListMetricsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
98 inline ListMetricsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
99 inline ListMetricsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
101
103
111 inline const RecentlyActive& GetRecentlyActive() const{ return m_recentlyActive; }
112 inline bool RecentlyActiveHasBeenSet() const { return m_recentlyActiveHasBeenSet; }
113 inline void SetRecentlyActive(const RecentlyActive& value) { m_recentlyActiveHasBeenSet = true; m_recentlyActive = value; }
114 inline void SetRecentlyActive(RecentlyActive&& value) { m_recentlyActiveHasBeenSet = true; m_recentlyActive = std::move(value); }
115 inline ListMetricsRequest& WithRecentlyActive(const RecentlyActive& value) { SetRecentlyActive(value); return *this;}
116 inline ListMetricsRequest& WithRecentlyActive(RecentlyActive&& value) { SetRecentlyActive(std::move(value)); return *this;}
118
120
125 inline bool GetIncludeLinkedAccounts() const{ return m_includeLinkedAccounts; }
126 inline bool IncludeLinkedAccountsHasBeenSet() const { return m_includeLinkedAccountsHasBeenSet; }
127 inline void SetIncludeLinkedAccounts(bool value) { m_includeLinkedAccountsHasBeenSet = true; m_includeLinkedAccounts = value; }
128 inline ListMetricsRequest& WithIncludeLinkedAccounts(bool value) { SetIncludeLinkedAccounts(value); return *this;}
130
132
138 inline const Aws::String& GetOwningAccount() const{ return m_owningAccount; }
139 inline bool OwningAccountHasBeenSet() const { return m_owningAccountHasBeenSet; }
140 inline void SetOwningAccount(const Aws::String& value) { m_owningAccountHasBeenSet = true; m_owningAccount = value; }
141 inline void SetOwningAccount(Aws::String&& value) { m_owningAccountHasBeenSet = true; m_owningAccount = std::move(value); }
142 inline void SetOwningAccount(const char* value) { m_owningAccountHasBeenSet = true; m_owningAccount.assign(value); }
143 inline ListMetricsRequest& WithOwningAccount(const Aws::String& value) { SetOwningAccount(value); return *this;}
144 inline ListMetricsRequest& WithOwningAccount(Aws::String&& value) { SetOwningAccount(std::move(value)); return *this;}
145 inline ListMetricsRequest& WithOwningAccount(const char* value) { SetOwningAccount(value); return *this;}
147 private:
148
149 Aws::String m_namespace;
150 bool m_namespaceHasBeenSet = false;
151
152 Aws::String m_metricName;
153 bool m_metricNameHasBeenSet = false;
154
155 Aws::Vector<DimensionFilter> m_dimensions;
156 bool m_dimensionsHasBeenSet = false;
157
158 Aws::String m_nextToken;
159 bool m_nextTokenHasBeenSet = false;
160
161 RecentlyActive m_recentlyActive;
162 bool m_recentlyActiveHasBeenSet = false;
163
164 bool m_includeLinkedAccounts;
165 bool m_includeLinkedAccountsHasBeenSet = false;
166
167 Aws::String m_owningAccount;
168 bool m_owningAccountHasBeenSet = false;
169 };
170
171} // namespace Model
172} // namespace CloudWatch
173} // namespace Aws
void SetOwningAccount(const Aws::String &value)
ListMetricsRequest & WithOwningAccount(const Aws::String &value)
void SetRecentlyActive(RecentlyActive &&value)
void SetMetricName(const Aws::String &value)
ListMetricsRequest & WithIncludeLinkedAccounts(bool value)
ListMetricsRequest & WithRecentlyActive(RecentlyActive &&value)
virtual const char * GetServiceRequestName() const override
void SetRecentlyActive(const RecentlyActive &value)
ListMetricsRequest & WithRecentlyActive(const RecentlyActive &value)
ListMetricsRequest & AddDimensions(DimensionFilter &&value)
ListMetricsRequest & WithDimensions(Aws::Vector< DimensionFilter > &&value)
const Aws::Vector< DimensionFilter > & GetDimensions() const
ListMetricsRequest & WithMetricName(const Aws::String &value)
void SetNamespace(const Aws::String &value)
ListMetricsRequest & WithMetricName(Aws::String &&value)
const RecentlyActive & GetRecentlyActive() const
ListMetricsRequest & WithMetricName(const char *value)
ListMetricsRequest & AddDimensions(const DimensionFilter &value)
ListMetricsRequest & WithOwningAccount(Aws::String &&value)
ListMetricsRequest & WithDimensions(const Aws::Vector< DimensionFilter > &value)
void SetDimensions(Aws::Vector< DimensionFilter > &&value)
ListMetricsRequest & WithNextToken(const char *value)
ListMetricsRequest & WithOwningAccount(const char *value)
ListMetricsRequest & WithNextToken(const Aws::String &value)
void SetNextToken(const Aws::String &value)
AWS_CLOUDWATCH_API Aws::String SerializePayload() const override
ListMetricsRequest & WithNamespace(const Aws::String &value)
void SetDimensions(const Aws::Vector< DimensionFilter > &value)
ListMetricsRequest & WithNamespace(const char *value)
ListMetricsRequest & WithNamespace(Aws::String &&value)
ListMetricsRequest & WithNextToken(Aws::String &&value)
AWS_CLOUDWATCH_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector