AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
ListMetricsRequest.h
1
6#pragma once
7#include <aws/resiliencehub/ResilienceHub_EXPORTS.h>
8#include <aws/resiliencehub/ResilienceHubRequest.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/resiliencehub/model/Condition.h>
12#include <aws/resiliencehub/model/Field.h>
13#include <aws/resiliencehub/model/Sort.h>
14#include <utility>
15
16namespace Aws
17{
18namespace ResilienceHub
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_RESILIENCEHUB_API ListMetricsRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "ListMetrics"; }
35
36 AWS_RESILIENCEHUB_API Aws::String SerializePayload() const override;
37
38
40
44 inline const Aws::Vector<Condition>& GetConditions() const { return m_conditions; }
45 inline bool ConditionsHasBeenSet() const { return m_conditionsHasBeenSet; }
46 template<typename ConditionsT = Aws::Vector<Condition>>
47 void SetConditions(ConditionsT&& value) { m_conditionsHasBeenSet = true; m_conditions = std::forward<ConditionsT>(value); }
48 template<typename ConditionsT = Aws::Vector<Condition>>
49 ListMetricsRequest& WithConditions(ConditionsT&& value) { SetConditions(std::forward<ConditionsT>(value)); return *this;}
50 template<typename ConditionsT = Condition>
51 ListMetricsRequest& AddConditions(ConditionsT&& value) { m_conditionsHasBeenSet = true; m_conditions.emplace_back(std::forward<ConditionsT>(value)); return *this; }
53
55
58 inline const Aws::String& GetDataSource() const { return m_dataSource; }
59 inline bool DataSourceHasBeenSet() const { return m_dataSourceHasBeenSet; }
60 template<typename DataSourceT = Aws::String>
61 void SetDataSource(DataSourceT&& value) { m_dataSourceHasBeenSet = true; m_dataSource = std::forward<DataSourceT>(value); }
62 template<typename DataSourceT = Aws::String>
63 ListMetricsRequest& WithDataSource(DataSourceT&& value) { SetDataSource(std::forward<DataSourceT>(value)); return *this;}
65
67
70 inline const Aws::Vector<Field>& GetFields() const { return m_fields; }
71 inline bool FieldsHasBeenSet() const { return m_fieldsHasBeenSet; }
72 template<typename FieldsT = Aws::Vector<Field>>
73 void SetFields(FieldsT&& value) { m_fieldsHasBeenSet = true; m_fields = std::forward<FieldsT>(value); }
74 template<typename FieldsT = Aws::Vector<Field>>
75 ListMetricsRequest& WithFields(FieldsT&& value) { SetFields(std::forward<FieldsT>(value)); return *this;}
76 template<typename FieldsT = Field>
77 ListMetricsRequest& AddFields(FieldsT&& value) { m_fieldsHasBeenSet = true; m_fields.emplace_back(std::forward<FieldsT>(value)); return *this; }
79
81
86 inline int GetMaxResults() const { return m_maxResults; }
87 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
88 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
89 inline ListMetricsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
91
93
96 inline const Aws::String& GetNextToken() const { return m_nextToken; }
97 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
98 template<typename NextTokenT = Aws::String>
99 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
100 template<typename NextTokenT = Aws::String>
101 ListMetricsRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
103
105
109 inline const Aws::Vector<Sort>& GetSorts() const { return m_sorts; }
110 inline bool SortsHasBeenSet() const { return m_sortsHasBeenSet; }
111 template<typename SortsT = Aws::Vector<Sort>>
112 void SetSorts(SortsT&& value) { m_sortsHasBeenSet = true; m_sorts = std::forward<SortsT>(value); }
113 template<typename SortsT = Aws::Vector<Sort>>
114 ListMetricsRequest& WithSorts(SortsT&& value) { SetSorts(std::forward<SortsT>(value)); return *this;}
115 template<typename SortsT = Sort>
116 ListMetricsRequest& AddSorts(SortsT&& value) { m_sortsHasBeenSet = true; m_sorts.emplace_back(std::forward<SortsT>(value)); return *this; }
118 private:
119
120 Aws::Vector<Condition> m_conditions;
121 bool m_conditionsHasBeenSet = false;
122
123 Aws::String m_dataSource;
124 bool m_dataSourceHasBeenSet = false;
125
126 Aws::Vector<Field> m_fields;
127 bool m_fieldsHasBeenSet = false;
128
129 int m_maxResults{0};
130 bool m_maxResultsHasBeenSet = false;
131
132 Aws::String m_nextToken;
133 bool m_nextTokenHasBeenSet = false;
134
135 Aws::Vector<Sort> m_sorts;
136 bool m_sortsHasBeenSet = false;
137 };
138
139} // namespace Model
140} // namespace ResilienceHub
141} // 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