/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Defines a cost object.See Also:
AWS
* API Reference
The cost amount.
*/ inline double GetAmount() const{ return m_amount; } /** *The cost amount.
*/ inline bool AmountHasBeenSet() const { return m_amountHasBeenSet; } /** *The cost amount.
*/ inline void SetAmount(double value) { m_amountHasBeenSet = true; m_amount = value; } /** *The cost amount.
*/ inline Cost& WithAmount(double value) { SetAmount(value); return *this;} /** *The cost currency, for example USD
.
The cost currency, for example USD
.
The cost currency, for example USD
.
The cost currency, for example USD
.
The cost currency, for example USD
.
The cost currency, for example USD
.
The cost currency, for example USD
.
The cost currency, for example USD
.
The cost frequency.
*/ inline const CostFrequency& GetFrequency() const{ return m_frequency; } /** *The cost frequency.
*/ inline bool FrequencyHasBeenSet() const { return m_frequencyHasBeenSet; } /** *The cost frequency.
*/ inline void SetFrequency(const CostFrequency& value) { m_frequencyHasBeenSet = true; m_frequency = value; } /** *The cost frequency.
*/ inline void SetFrequency(CostFrequency&& value) { m_frequencyHasBeenSet = true; m_frequency = std::move(value); } /** *The cost frequency.
*/ inline Cost& WithFrequency(const CostFrequency& value) { SetFrequency(value); return *this;} /** *The cost frequency.
*/ inline Cost& WithFrequency(CostFrequency&& value) { SetFrequency(std::move(value)); return *this;} private: double m_amount; bool m_amountHasBeenSet = false; Aws::String m_currency; bool m_currencyHasBeenSet = false; CostFrequency m_frequency; bool m_frequencyHasBeenSet = false; }; } // namespace Model } // namespace ResilienceHub } // namespace Aws