/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include The amount of cost or usage that's measured for a budget. For example,
* a An A Spend
for 3 GB
of S3 usage has the following
* parameters:
Amount
of 3
unit
of GB
See
* Also:
AWS API
* Reference
The cost or usage amount that's associated with a budget forecast, actual * spend, or budget threshold.
*/ inline const Aws::String& GetAmount() const{ return m_amount; } /** *The cost or usage amount that's associated with a budget forecast, actual * spend, or budget threshold.
*/ inline bool AmountHasBeenSet() const { return m_amountHasBeenSet; } /** *The cost or usage amount that's associated with a budget forecast, actual * spend, or budget threshold.
*/ inline void SetAmount(const Aws::String& value) { m_amountHasBeenSet = true; m_amount = value; } /** *The cost or usage amount that's associated with a budget forecast, actual * spend, or budget threshold.
*/ inline void SetAmount(Aws::String&& value) { m_amountHasBeenSet = true; m_amount = std::move(value); } /** *The cost or usage amount that's associated with a budget forecast, actual * spend, or budget threshold.
*/ inline void SetAmount(const char* value) { m_amountHasBeenSet = true; m_amount.assign(value); } /** *The cost or usage amount that's associated with a budget forecast, actual * spend, or budget threshold.
*/ inline Spend& WithAmount(const Aws::String& value) { SetAmount(value); return *this;} /** *The cost or usage amount that's associated with a budget forecast, actual * spend, or budget threshold.
*/ inline Spend& WithAmount(Aws::String&& value) { SetAmount(std::move(value)); return *this;} /** *The cost or usage amount that's associated with a budget forecast, actual * spend, or budget threshold.
*/ inline Spend& WithAmount(const char* value) { SetAmount(value); return *this;} /** *The unit of measurement that's used for the budget forecast, actual spend, or * budget threshold, such as USD or GBP.
*/ inline const Aws::String& GetUnit() const{ return m_unit; } /** *The unit of measurement that's used for the budget forecast, actual spend, or * budget threshold, such as USD or GBP.
*/ inline bool UnitHasBeenSet() const { return m_unitHasBeenSet; } /** *The unit of measurement that's used for the budget forecast, actual spend, or * budget threshold, such as USD or GBP.
*/ inline void SetUnit(const Aws::String& value) { m_unitHasBeenSet = true; m_unit = value; } /** *The unit of measurement that's used for the budget forecast, actual spend, or * budget threshold, such as USD or GBP.
*/ inline void SetUnit(Aws::String&& value) { m_unitHasBeenSet = true; m_unit = std::move(value); } /** *The unit of measurement that's used for the budget forecast, actual spend, or * budget threshold, such as USD or GBP.
*/ inline void SetUnit(const char* value) { m_unitHasBeenSet = true; m_unit.assign(value); } /** *The unit of measurement that's used for the budget forecast, actual spend, or * budget threshold, such as USD or GBP.
*/ inline Spend& WithUnit(const Aws::String& value) { SetUnit(value); return *this;} /** *The unit of measurement that's used for the budget forecast, actual spend, or * budget threshold, such as USD or GBP.
*/ inline Spend& WithUnit(Aws::String&& value) { SetUnit(std::move(value)); return *this;} /** *The unit of measurement that's used for the budget forecast, actual spend, or * budget threshold, such as USD or GBP.
*/ inline Spend& 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 Budgets } // namespace Aws