/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace CostExplorer { namespace Model { /** *

The aggregated value for a metric.

See Also:

AWS API * Reference

*/ class MetricValue { public: AWS_COSTEXPLORER_API MetricValue(); AWS_COSTEXPLORER_API MetricValue(Aws::Utils::Json::JsonView jsonValue); AWS_COSTEXPLORER_API MetricValue& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_COSTEXPLORER_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The actual number that represents the metric.

*/ inline const Aws::String& GetAmount() const{ return m_amount; } /** *

The actual number that represents the metric.

*/ inline bool AmountHasBeenSet() const { return m_amountHasBeenSet; } /** *

The actual number that represents the metric.

*/ inline void SetAmount(const Aws::String& value) { m_amountHasBeenSet = true; m_amount = value; } /** *

The actual number that represents the metric.

*/ inline void SetAmount(Aws::String&& value) { m_amountHasBeenSet = true; m_amount = std::move(value); } /** *

The actual number that represents the metric.

*/ inline void SetAmount(const char* value) { m_amountHasBeenSet = true; m_amount.assign(value); } /** *

The actual number that represents the metric.

*/ inline MetricValue& WithAmount(const Aws::String& value) { SetAmount(value); return *this;} /** *

The actual number that represents the metric.

*/ inline MetricValue& WithAmount(Aws::String&& value) { SetAmount(std::move(value)); return *this;} /** *

The actual number that represents the metric.

*/ inline MetricValue& WithAmount(const char* value) { SetAmount(value); return *this;} /** *

The unit that the metric is given in.

*/ inline const Aws::String& GetUnit() const{ return m_unit; } /** *

The unit that the metric is given in.

*/ inline bool UnitHasBeenSet() const { return m_unitHasBeenSet; } /** *

The unit that the metric is given in.

*/ inline void SetUnit(const Aws::String& value) { m_unitHasBeenSet = true; m_unit = value; } /** *

The unit that the metric is given in.

*/ inline void SetUnit(Aws::String&& value) { m_unitHasBeenSet = true; m_unit = std::move(value); } /** *

The unit that the metric is given in.

*/ inline void SetUnit(const char* value) { m_unitHasBeenSet = true; m_unit.assign(value); } /** *

The unit that the metric is given in.

*/ inline MetricValue& WithUnit(const Aws::String& value) { SetUnit(value); return *this;} /** *

The unit that the metric is given in.

*/ inline MetricValue& WithUnit(Aws::String&& value) { SetUnit(std::move(value)); return *this;} /** *

The unit that the metric is given in.

*/ inline MetricValue& WithUnit(const char* value) { SetUnit(value); return *this;} private: Aws::String m_amount; bool m_amountHasBeenSet = false; Aws::String m_unit; bool m_unitHasBeenSet = false; }; } // namespace Model } // namespace CostExplorer } // namespace Aws