7#include <aws/application-signals/ApplicationSignals_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/application-signals/model/ServiceLevelIndicatorMetricType.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/application-signals/model/DependencyConfig.h>
13#include <aws/application-signals/model/MetricDataQuery.h>
26namespace ApplicationSignals
68 template<
typename KeyAttributesT = Aws::Map<Aws::String, Aws::String>>
69 void SetKeyAttributes(KeyAttributesT&& value) { m_keyAttributesHasBeenSet =
true; m_keyAttributes = std::forward<KeyAttributesT>(value); }
70 template<
typename KeyAttributesT = Aws::Map<Aws::String, Aws::String>>
72 template<
typename KeyAttributesKeyT = Aws::String,
typename KeyAttributesValueT = Aws::String>
74 m_keyAttributesHasBeenSet =
true; m_keyAttributes.emplace(std::forward<KeyAttributesKeyT>(key), std::forward<KeyAttributesValueT>(value));
return *
this;
85 template<
typename OperationNameT = Aws::String>
86 void SetOperationName(OperationNameT&& value) { m_operationNameHasBeenSet =
true; m_operationName = std::forward<OperationNameT>(value); }
87 template<
typename OperationNameT = Aws::String>
113 template<
typename StatisticT = Aws::String>
114 void SetStatistic(StatisticT&& value) { m_statisticHasBeenSet =
true; m_statistic = std::forward<StatisticT>(value); }
115 template<
typename StatisticT = Aws::String>
128 inline void SetPeriodSeconds(
int value) { m_periodSecondsHasBeenSet =
true; m_periodSeconds = value; }
139 template<
typename MetricDataQueriesT = Aws::Vector<MetricDataQuery>>
140 void SetMetricDataQueries(MetricDataQueriesT&& value) { m_metricDataQueriesHasBeenSet =
true; m_metricDataQueries = std::forward<MetricDataQueriesT>(value); }
141 template<
typename MetricDataQueriesT = Aws::Vector<MetricDataQuery>>
143 template<
typename MetricDataQueriesT = MetricDataQuery>
154 template<
typename DependencyConfigT = DependencyConfig>
155 void SetDependencyConfig(DependencyConfigT&& value) { m_dependencyConfigHasBeenSet =
true; m_dependencyConfig = std::forward<DependencyConfigT>(value); }
156 template<
typename DependencyConfigT = DependencyConfig>
162 bool m_keyAttributesHasBeenSet =
false;
165 bool m_operationNameHasBeenSet =
false;
168 bool m_metricTypeHasBeenSet =
false;
171 bool m_statisticHasBeenSet =
false;
173 int m_periodSeconds{0};
174 bool m_periodSecondsHasBeenSet =
false;
177 bool m_metricDataQueriesHasBeenSet =
false;
179 DependencyConfig m_dependencyConfig;
180 bool m_dependencyConfigHasBeenSet =
false;
ServiceLevelIndicatorMetricConfig & WithPeriodSeconds(int value)
ServiceLevelIndicatorMetricConfig & WithMetricType(ServiceLevelIndicatorMetricType value)
ServiceLevelIndicatorMetricConfig & WithStatistic(StatisticT &&value)
AWS_APPLICATIONSIGNALS_API ServiceLevelIndicatorMetricConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetKeyAttributes(KeyAttributesT &&value)
void SetStatistic(StatisticT &&value)
AWS_APPLICATIONSIGNALS_API ServiceLevelIndicatorMetricConfig(Aws::Utils::Json::JsonView jsonValue)
ServiceLevelIndicatorMetricConfig & WithMetricDataQueries(MetricDataQueriesT &&value)
ServiceLevelIndicatorMetricConfig & WithKeyAttributes(KeyAttributesT &&value)
void SetOperationName(OperationNameT &&value)
const DependencyConfig & GetDependencyConfig() const
AWS_APPLICATIONSIGNALS_API ServiceLevelIndicatorMetricConfig()=default
bool MetricTypeHasBeenSet() const
const Aws::Vector< MetricDataQuery > & GetMetricDataQueries() const
ServiceLevelIndicatorMetricConfig & WithDependencyConfig(DependencyConfigT &&value)
ServiceLevelIndicatorMetricConfig & WithOperationName(OperationNameT &&value)
bool PeriodSecondsHasBeenSet() const
bool OperationNameHasBeenSet() const
const Aws::Map< Aws::String, Aws::String > & GetKeyAttributes() const
void SetMetricDataQueries(MetricDataQueriesT &&value)
bool DependencyConfigHasBeenSet() const
ServiceLevelIndicatorMetricConfig & AddMetricDataQueries(MetricDataQueriesT &&value)
const Aws::String & GetStatistic() const
int GetPeriodSeconds() const
bool StatisticHasBeenSet() const
void SetPeriodSeconds(int value)
void SetDependencyConfig(DependencyConfigT &&value)
ServiceLevelIndicatorMetricType GetMetricType() const
const Aws::String & GetOperationName() const
bool KeyAttributesHasBeenSet() const
ServiceLevelIndicatorMetricConfig & AddKeyAttributes(KeyAttributesKeyT &&key, KeyAttributesValueT &&value)
AWS_APPLICATIONSIGNALS_API Aws::Utils::Json::JsonValue Jsonize() const
bool MetricDataQueriesHasBeenSet() const
void SetMetricType(ServiceLevelIndicatorMetricType value)
ServiceLevelIndicatorMetricType
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue