7#include <aws/application-signals/ApplicationSignals_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/application-signals/model/Dimension.h>
23namespace ApplicationSignals
51 template<
typename NamespaceT = Aws::String>
52 void SetNamespace(NamespaceT&& value) { m_namespaceHasBeenSet =
true; m_namespace = std::forward<NamespaceT>(value); }
53 template<
typename NamespaceT = Aws::String>
63 template<
typename MetricTypeT = Aws::String>
64 void SetMetricType(MetricTypeT&& value) { m_metricTypeHasBeenSet =
true; m_metricType = std::forward<MetricTypeT>(value); }
65 template<
typename MetricTypeT = Aws::String>
77 template<
typename DimensionsT = Aws::Vector<Dimension>>
78 void SetDimensions(DimensionsT&& value) { m_dimensionsHasBeenSet =
true; m_dimensions = std::forward<DimensionsT>(value); }
79 template<
typename DimensionsT = Aws::Vector<Dimension>>
81 template<
typename DimensionsT = Dimension>
82 MetricReference&
AddDimensions(DimensionsT&& value) { m_dimensionsHasBeenSet =
true; m_dimensions.emplace_back(std::forward<DimensionsT>(value));
return *
this; }
91 template<
typename MetricNameT = Aws::String>
92 void SetMetricName(MetricNameT&& value) { m_metricNameHasBeenSet =
true; m_metricName = std::forward<MetricNameT>(value); }
93 template<
typename MetricNameT = Aws::String>
103 template<
typename AccountIdT = Aws::String>
104 void SetAccountId(AccountIdT&& value) { m_accountIdHasBeenSet =
true; m_accountId = std::forward<AccountIdT>(value); }
105 template<
typename AccountIdT = Aws::String>
111 bool m_namespaceHasBeenSet =
false;
114 bool m_metricTypeHasBeenSet =
false;
117 bool m_dimensionsHasBeenSet =
false;
120 bool m_metricNameHasBeenSet =
false;
123 bool m_accountIdHasBeenSet =
false;
const Aws::String & GetNamespace() const
MetricReference & WithNamespace(NamespaceT &&value)
const Aws::String & GetAccountId() const
bool DimensionsHasBeenSet() const
const Aws::String & GetMetricName() const
const Aws::String & GetMetricType() const
bool NamespaceHasBeenSet() const
void SetMetricName(MetricNameT &&value)
MetricReference & WithDimensions(DimensionsT &&value)
bool MetricNameHasBeenSet() const
const Aws::Vector< Dimension > & GetDimensions() const
AWS_APPLICATIONSIGNALS_API MetricReference & operator=(Aws::Utils::Json::JsonView jsonValue)
bool AccountIdHasBeenSet() const
MetricReference & WithAccountId(AccountIdT &&value)
AWS_APPLICATIONSIGNALS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetAccountId(AccountIdT &&value)
void SetNamespace(NamespaceT &&value)
AWS_APPLICATIONSIGNALS_API MetricReference()=default
AWS_APPLICATIONSIGNALS_API MetricReference(Aws::Utils::Json::JsonView jsonValue)
MetricReference & WithMetricName(MetricNameT &&value)
MetricReference & AddDimensions(DimensionsT &&value)
void SetDimensions(DimensionsT &&value)
MetricReference & WithMetricType(MetricTypeT &&value)
bool MetricTypeHasBeenSet() const
void SetMetricType(MetricTypeT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue