7#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/rds/RDS_EXPORTS.h>
11#include <aws/rds/model/MetricQuery.h>
12#include <aws/rds/model/MetricReference.h>
45 template <
typename NameT = Aws::String>
47 m_nameHasBeenSet =
true;
48 m_name = std::forward<NameT>(value);
50 template <
typename NameT = Aws::String>
52 SetName(std::forward<NameT>(value));
63 template <
typename ReferencesT = Aws::Vector<MetricReference>>
65 m_referencesHasBeenSet =
true;
66 m_references = std::forward<ReferencesT>(value);
68 template <
typename ReferencesT = Aws::Vector<MetricReference>>
73 template <
typename ReferencesT = MetricReference>
75 m_referencesHasBeenSet =
true;
76 m_references.emplace_back(std::forward<ReferencesT>(value));
88 template <
typename StatisticsDetailsT = Aws::String>
90 m_statisticsDetailsHasBeenSet =
true;
91 m_statisticsDetails = std::forward<StatisticsDetailsT>(value);
93 template <
typename StatisticsDetailsT = Aws::String>
106 template <
typename MetricQueryT = MetricQuery>
108 m_metricQueryHasBeenSet =
true;
109 m_metricQuery = std::forward<MetricQueryT>(value);
111 template <
typename MetricQueryT = MetricQuery>
125 bool m_nameHasBeenSet =
false;
126 bool m_referencesHasBeenSet =
false;
127 bool m_statisticsDetailsHasBeenSet =
false;
128 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