7#include <aws/rds/RDS_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/rds/model/MetricQuery.h>
12#include <aws/rds/model/MetricReference.h>
51 template<
typename NameT = Aws::String>
52 void SetName(NameT&& value) { m_nameHasBeenSet =
true; m_name = std::forward<NameT>(value); }
53 template<
typename NameT = Aws::String>
63 template<
typename ReferencesT = Aws::Vector<MetricReference>>
64 void SetReferences(ReferencesT&& value) { m_referencesHasBeenSet =
true; m_references = std::forward<ReferencesT>(value); }
65 template<
typename ReferencesT = Aws::Vector<MetricReference>>
67 template<
typename ReferencesT = MetricReference>
68 Metric&
AddReferences(ReferencesT&& value) { m_referencesHasBeenSet =
true; m_references.emplace_back(std::forward<ReferencesT>(value));
return *
this; }
78 template<
typename StatisticsDetailsT = Aws::String>
79 void SetStatisticsDetails(StatisticsDetailsT&& value) { m_statisticsDetailsHasBeenSet =
true; m_statisticsDetails = std::forward<StatisticsDetailsT>(value); }
80 template<
typename StatisticsDetailsT = Aws::String>
90 template<
typename MetricQueryT = MetricQuery>
91 void SetMetricQuery(MetricQueryT&& value) { m_metricQueryHasBeenSet =
true; m_metricQuery = std::forward<MetricQueryT>(value); }
92 template<
typename MetricQueryT = MetricQuery>
98 bool m_nameHasBeenSet =
false;
101 bool m_referencesHasBeenSet =
false;
104 bool m_statisticsDetailsHasBeenSet =
false;
107 bool m_metricQueryHasBeenSet =
false;
Metric & WithReferences(ReferencesT &&value)
bool NameHasBeenSet() const
Metric & WithMetricQuery(MetricQueryT &&value)
Metric & WithStatisticsDetails(StatisticsDetailsT &&value)
const Aws::String & GetStatisticsDetails() const
const MetricQuery & GetMetricQuery() const
const Aws::Vector< MetricReference > & GetReferences() const
void SetStatisticsDetails(StatisticsDetailsT &&value)
Metric & AddReferences(ReferencesT &&value)
const Aws::String & GetName() const
void SetName(NameT &&value)
bool StatisticsDetailsHasBeenSet() const
AWS_RDS_API Metric & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_RDS_API Metric()=default
AWS_RDS_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
bool MetricQueryHasBeenSet() const
AWS_RDS_API Metric(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_RDS_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetReferences(ReferencesT &&value)
Metric & WithName(NameT &&value)
bool ReferencesHasBeenSet() const
void SetMetricQuery(MetricQueryT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream