7#include <aws/monitoring/CloudWatch_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/monitoring/model/MetricStat.h>
78 template<
typename IdT = Aws::String>
79 void SetId(IdT&& value) { m_idHasBeenSet =
true; m_id = std::forward<IdT>(value); }
80 template<
typename IdT = Aws::String>
94 template<
typename MetricStatT = MetricStat>
95 void SetMetricStat(MetricStatT&& value) { m_metricStatHasBeenSet =
true; m_metricStat = std::forward<MetricStatT>(value); }
96 template<
typename MetricStatT = MetricStat>
118 template<
typename ExpressionT = Aws::String>
119 void SetExpression(ExpressionT&& value) { m_expressionHasBeenSet =
true; m_expression = std::forward<ExpressionT>(value); }
120 template<
typename ExpressionT = Aws::String>
137 template<
typename LabelT = Aws::String>
138 void SetLabel(LabelT&& value) { m_labelHasBeenSet =
true; m_label = std::forward<LabelT>(value); }
139 template<
typename LabelT = Aws::String>
156 inline void SetReturnData(
bool value) { m_returnDataHasBeenSet =
true; m_returnData = value; }
172 inline void SetPeriod(
int value) { m_periodHasBeenSet =
true; m_period = value; }
186 template<
typename AccountIdT = Aws::String>
187 void SetAccountId(AccountIdT&& value) { m_accountIdHasBeenSet =
true; m_accountId = std::forward<AccountIdT>(value); }
188 template<
typename AccountIdT = Aws::String>
194 bool m_idHasBeenSet =
false;
197 bool m_metricStatHasBeenSet =
false;
200 bool m_expressionHasBeenSet =
false;
203 bool m_labelHasBeenSet =
false;
205 bool m_returnData{
false};
206 bool m_returnDataHasBeenSet =
false;
209 bool m_periodHasBeenSet =
false;
212 bool m_accountIdHasBeenSet =
false;
const Aws::String & GetLabel() const
const MetricStat & GetMetricStat() const
void SetPeriod(int value)
bool ReturnDataHasBeenSet() const
bool IdHasBeenSet() const
AWS_CLOUDWATCH_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
MetricDataQuery & WithAccountId(AccountIdT &&value)
const Aws::String & GetExpression() const
void SetExpression(ExpressionT &&value)
void SetAccountId(AccountIdT &&value)
const Aws::String & GetAccountId() const
AWS_CLOUDWATCH_API MetricDataQuery()=default
MetricDataQuery & WithMetricStat(MetricStatT &&value)
bool LabelHasBeenSet() const
MetricDataQuery & WithExpression(ExpressionT &&value)
void SetMetricStat(MetricStatT &&value)
const Aws::String & GetId() const
void SetReturnData(bool value)
bool AccountIdHasBeenSet() const
bool ExpressionHasBeenSet() const
AWS_CLOUDWATCH_API void OutputToStream(Aws::OStream &oStream, const char *location) const
MetricDataQuery & WithReturnData(bool value)
bool MetricStatHasBeenSet() const
AWS_CLOUDWATCH_API MetricDataQuery(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetLabel(LabelT &&value)
AWS_CLOUDWATCH_API MetricDataQuery & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
bool PeriodHasBeenSet() const
MetricDataQuery & WithPeriod(int value)
MetricDataQuery & WithId(IdT &&value)
bool GetReturnData() const
MetricDataQuery & WithLabel(LabelT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream