AWS SDK for C++

AWS SDK for C++ Version 1.11.683

Loading...
Searching...
No Matches
ListMetricsRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/resiliencehub/ResilienceHubRequest.h>
10#include <aws/resiliencehub/ResilienceHub_EXPORTS.h>
11#include <aws/resiliencehub/model/Condition.h>
12#include <aws/resiliencehub/model/Field.h>
13#include <aws/resiliencehub/model/Sort.h>
14
15#include <utility>
16
17namespace Aws {
18namespace ResilienceHub {
19namespace Model {
20
24 public:
25 AWS_RESILIENCEHUB_API ListMetricsRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "ListMetrics"; }
32
33 AWS_RESILIENCEHUB_API Aws::String SerializePayload() const override;
34
36
40 inline const Aws::Vector<Condition>& GetConditions() const { return m_conditions; }
41 inline bool ConditionsHasBeenSet() const { return m_conditionsHasBeenSet; }
42 template <typename ConditionsT = Aws::Vector<Condition>>
43 void SetConditions(ConditionsT&& value) {
44 m_conditionsHasBeenSet = true;
45 m_conditions = std::forward<ConditionsT>(value);
46 }
47 template <typename ConditionsT = Aws::Vector<Condition>>
48 ListMetricsRequest& WithConditions(ConditionsT&& value) {
49 SetConditions(std::forward<ConditionsT>(value));
50 return *this;
51 }
52 template <typename ConditionsT = Condition>
53 ListMetricsRequest& AddConditions(ConditionsT&& value) {
54 m_conditionsHasBeenSet = true;
55 m_conditions.emplace_back(std::forward<ConditionsT>(value));
56 return *this;
57 }
59
61
64 inline const Aws::String& GetDataSource() const { return m_dataSource; }
65 inline bool DataSourceHasBeenSet() const { return m_dataSourceHasBeenSet; }
66 template <typename DataSourceT = Aws::String>
67 void SetDataSource(DataSourceT&& value) {
68 m_dataSourceHasBeenSet = true;
69 m_dataSource = std::forward<DataSourceT>(value);
70 }
71 template <typename DataSourceT = Aws::String>
72 ListMetricsRequest& WithDataSource(DataSourceT&& value) {
73 SetDataSource(std::forward<DataSourceT>(value));
74 return *this;
75 }
77
79
82 inline const Aws::Vector<Field>& GetFields() const { return m_fields; }
83 inline bool FieldsHasBeenSet() const { return m_fieldsHasBeenSet; }
84 template <typename FieldsT = Aws::Vector<Field>>
85 void SetFields(FieldsT&& value) {
86 m_fieldsHasBeenSet = true;
87 m_fields = std::forward<FieldsT>(value);
88 }
89 template <typename FieldsT = Aws::Vector<Field>>
90 ListMetricsRequest& WithFields(FieldsT&& value) {
91 SetFields(std::forward<FieldsT>(value));
92 return *this;
93 }
94 template <typename FieldsT = Field>
95 ListMetricsRequest& AddFields(FieldsT&& value) {
96 m_fieldsHasBeenSet = true;
97 m_fields.emplace_back(std::forward<FieldsT>(value));
98 return *this;
99 }
101
103
108 inline int GetMaxResults() const { return m_maxResults; }
109 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
110 inline void SetMaxResults(int value) {
111 m_maxResultsHasBeenSet = true;
112 m_maxResults = value;
113 }
115 SetMaxResults(value);
116 return *this;
117 }
119
121
124 inline const Aws::String& GetNextToken() const { return m_nextToken; }
125 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
126 template <typename NextTokenT = Aws::String>
127 void SetNextToken(NextTokenT&& value) {
128 m_nextTokenHasBeenSet = true;
129 m_nextToken = std::forward<NextTokenT>(value);
130 }
131 template <typename NextTokenT = Aws::String>
132 ListMetricsRequest& WithNextToken(NextTokenT&& value) {
133 SetNextToken(std::forward<NextTokenT>(value));
134 return *this;
135 }
137
139
143 inline const Aws::Vector<Sort>& GetSorts() const { return m_sorts; }
144 inline bool SortsHasBeenSet() const { return m_sortsHasBeenSet; }
145 template <typename SortsT = Aws::Vector<Sort>>
146 void SetSorts(SortsT&& value) {
147 m_sortsHasBeenSet = true;
148 m_sorts = std::forward<SortsT>(value);
149 }
150 template <typename SortsT = Aws::Vector<Sort>>
151 ListMetricsRequest& WithSorts(SortsT&& value) {
152 SetSorts(std::forward<SortsT>(value));
153 return *this;
154 }
155 template <typename SortsT = Sort>
156 ListMetricsRequest& AddSorts(SortsT&& value) {
157 m_sortsHasBeenSet = true;
158 m_sorts.emplace_back(std::forward<SortsT>(value));
159 return *this;
160 }
162 private:
163 Aws::Vector<Condition> m_conditions;
164 bool m_conditionsHasBeenSet = false;
165
166 Aws::String m_dataSource;
167 bool m_dataSourceHasBeenSet = false;
168
169 Aws::Vector<Field> m_fields;
170 bool m_fieldsHasBeenSet = false;
171
172 int m_maxResults{0};
173 bool m_maxResultsHasBeenSet = false;
174
175 Aws::String m_nextToken;
176 bool m_nextTokenHasBeenSet = false;
177
178 Aws::Vector<Sort> m_sorts;
179 bool m_sortsHasBeenSet = false;
180};
181
182} // namespace Model
183} // namespace ResilienceHub
184} // namespace Aws
const Aws::Vector< Sort > & GetSorts() const
ListMetricsRequest & WithSorts(SortsT &&value)
ListMetricsRequest & WithNextToken(NextTokenT &&value)
ListMetricsRequest & AddSorts(SortsT &&value)
virtual const char * GetServiceRequestName() const override
ListMetricsRequest & WithFields(FieldsT &&value)
ListMetricsRequest & WithMaxResults(int value)
const Aws::Vector< Field > & GetFields() const
ListMetricsRequest & WithConditions(ConditionsT &&value)
ListMetricsRequest & AddConditions(ConditionsT &&value)
ListMetricsRequest & AddFields(FieldsT &&value)
AWS_RESILIENCEHUB_API ListMetricsRequest()=default
ListMetricsRequest & WithDataSource(DataSourceT &&value)
const Aws::Vector< Condition > & GetConditions() const
AWS_RESILIENCEHUB_API Aws::String SerializePayload() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector