7#include <aws/ce/CostExplorer_EXPORTS.h>
8#include <aws/ce/model/ComparisonMetricValue.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
21namespace CostExplorer {
48 template <
typename TypeT = Aws::String>
50 m_typeHasBeenSet =
true;
51 m_type = std::forward<TypeT>(value);
53 template <
typename TypeT = Aws::String>
55 SetType(std::forward<TypeT>(value));
66 template <
typename NameT = Aws::String>
68 m_nameHasBeenSet =
true;
69 m_name = std::forward<NameT>(value);
71 template <
typename NameT = Aws::String>
73 SetName(std::forward<NameT>(value));
85 template <
typename MetricsT = Aws::Map<Aws::String, ComparisonMetricValue>>
87 m_metricsHasBeenSet =
true;
88 m_metrics = std::forward<MetricsT>(value);
90 template <
typename MetricsT = Aws::Map<Aws::String, ComparisonMetricValue>>
95 template <
typename MetricsKeyT = Aws::String,
typename MetricsValueT = ComparisonMetricValue>
97 m_metricsHasBeenSet =
true;
98 m_metrics.emplace(std::forward<MetricsKeyT>(key), std::forward<MetricsValueT>(value));
108 bool m_typeHasBeenSet =
false;
109 bool m_nameHasBeenSet =
false;
110 bool m_metricsHasBeenSet =
false;
AWS_COSTEXPLORER_API Aws::Utils::Json::JsonValue Jsonize() const
void SetName(NameT &&value)
void SetMetrics(MetricsT &&value)
AWS_COSTEXPLORER_API CostDriver(Aws::Utils::Json::JsonView jsonValue)
bool MetricsHasBeenSet() const
CostDriver & WithType(TypeT &&value)
CostDriver & WithMetrics(MetricsT &&value)
const Aws::String & GetName() const
AWS_COSTEXPLORER_API CostDriver()=default
bool NameHasBeenSet() const
const Aws::String & GetType() const
bool TypeHasBeenSet() const
AWS_COSTEXPLORER_API CostDriver & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetType(TypeT &&value)
CostDriver & AddMetrics(MetricsKeyT &&key, MetricsValueT &&value)
const Aws::Map< Aws::String, ComparisonMetricValue > & GetMetrics() const
CostDriver & WithName(NameT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue