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>
18namespace ResilienceHub
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>>
50 template<
typename ConditionsT = Condition>
51 ListMetricsRequest&
AddConditions(ConditionsT&& value) { m_conditionsHasBeenSet =
true; m_conditions.emplace_back(std::forward<ConditionsT>(value));
return *
this; }
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>
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>>
76 template<
typename FieldsT = Field>
77 ListMetricsRequest&
AddFields(FieldsT&& value) { m_fieldsHasBeenSet =
true; m_fields.emplace_back(std::forward<FieldsT>(value));
return *
this; }
88 inline void SetMaxResults(
int value) { m_maxResultsHasBeenSet =
true; m_maxResults = value; }
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>
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>>
115 template<
typename SortsT = Sort>
121 bool m_conditionsHasBeenSet =
false;
124 bool m_dataSourceHasBeenSet =
false;
127 bool m_fieldsHasBeenSet =
false;
130 bool m_maxResultsHasBeenSet =
false;
133 bool m_nextTokenHasBeenSet =
false;
136 bool m_sortsHasBeenSet =
false;
const Aws::String & GetNextToken() const
bool ConditionsHasBeenSet() const
const Aws::Vector< Sort > & GetSorts() const
ListMetricsRequest & WithSorts(SortsT &&value)
ListMetricsRequest & WithNextToken(NextTokenT &&value)
ListMetricsRequest & AddSorts(SortsT &&value)
virtual const char * GetServiceRequestName() const override
bool DataSourceHasBeenSet() const
ListMetricsRequest & WithFields(FieldsT &&value)
void SetDataSource(DataSourceT &&value)
ListMetricsRequest & WithMaxResults(int value)
const Aws::Vector< Field > & GetFields() const
bool SortsHasBeenSet() const
void SetNextToken(NextTokenT &&value)
const Aws::String & GetDataSource() const
void SetMaxResults(int value)
ListMetricsRequest & WithConditions(ConditionsT &&value)
void SetSorts(SortsT &&value)
ListMetricsRequest & AddConditions(ConditionsT &&value)
bool FieldsHasBeenSet() const
ListMetricsRequest & AddFields(FieldsT &&value)
bool MaxResultsHasBeenSet() const
AWS_RESILIENCEHUB_API ListMetricsRequest()=default
ListMetricsRequest & WithDataSource(DataSourceT &&value)
void SetConditions(ConditionsT &&value)
const Aws::Vector< Condition > & GetConditions() const
void SetFields(FieldsT &&value)
bool NextTokenHasBeenSet() const
int GetMaxResults() 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