7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/cost-optimization-hub/CostOptimizationHub_EXPORTS.h>
19namespace CostOptimizationHub {
42 inline double GetScore()
const {
return m_score; }
45 m_scoreHasBeenSet =
true;
62 m_savingsHasBeenSet =
true;
75 inline double GetSpend()
const {
return m_spend; }
78 m_spendHasBeenSet =
true;
94 template <
typename TimestampT = Aws::String>
96 m_timestampHasBeenSet =
true;
97 m_timestamp = std::forward<TimestampT>(value);
99 template <
typename TimestampT = Aws::String>
108 double m_savings{0.0};
113 bool m_scoreHasBeenSet =
false;
114 bool m_savingsHasBeenSet =
false;
115 bool m_spendHasBeenSet =
false;
116 bool m_timestampHasBeenSet =
false;
double GetSavings() const
MetricsByTime & WithSpend(double value)
bool ScoreHasBeenSet() const
AWS_COSTOPTIMIZATIONHUB_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetTimestamp() const
AWS_COSTOPTIMIZATIONHUB_API MetricsByTime(Aws::Utils::Json::JsonView jsonValue)
void SetScore(double value)
AWS_COSTOPTIMIZATIONHUB_API MetricsByTime & operator=(Aws::Utils::Json::JsonView jsonValue)
MetricsByTime & WithScore(double value)
MetricsByTime & WithSavings(double value)
void SetTimestamp(TimestampT &&value)
AWS_COSTOPTIMIZATIONHUB_API MetricsByTime()=default
MetricsByTime & WithTimestamp(TimestampT &&value)
bool SpendHasBeenSet() const
void SetSpend(double value)
void SetSavings(double value)
bool TimestampHasBeenSet() const
bool SavingsHasBeenSet() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue