AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
Cost.h
1
6#pragma once
7#include <aws/resiliencehub/ResilienceHub_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/resiliencehub/model/CostFrequency.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace ResilienceHub
23{
24namespace Model
25{
26
32 class Cost
33 {
34 public:
35 AWS_RESILIENCEHUB_API Cost() = default;
36 AWS_RESILIENCEHUB_API Cost(Aws::Utils::Json::JsonView jsonValue);
37 AWS_RESILIENCEHUB_API Cost& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_RESILIENCEHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline double GetAmount() const { return m_amount; }
46 inline bool AmountHasBeenSet() const { return m_amountHasBeenSet; }
47 inline void SetAmount(double value) { m_amountHasBeenSet = true; m_amount = value; }
48 inline Cost& WithAmount(double value) { SetAmount(value); return *this;}
50
52
55 inline const Aws::String& GetCurrency() const { return m_currency; }
56 inline bool CurrencyHasBeenSet() const { return m_currencyHasBeenSet; }
57 template<typename CurrencyT = Aws::String>
58 void SetCurrency(CurrencyT&& value) { m_currencyHasBeenSet = true; m_currency = std::forward<CurrencyT>(value); }
59 template<typename CurrencyT = Aws::String>
60 Cost& WithCurrency(CurrencyT&& value) { SetCurrency(std::forward<CurrencyT>(value)); return *this;}
62
64
67 inline CostFrequency GetFrequency() const { return m_frequency; }
68 inline bool FrequencyHasBeenSet() const { return m_frequencyHasBeenSet; }
69 inline void SetFrequency(CostFrequency value) { m_frequencyHasBeenSet = true; m_frequency = value; }
70 inline Cost& WithFrequency(CostFrequency value) { SetFrequency(value); return *this;}
72 private:
73
74 double m_amount{0.0};
75 bool m_amountHasBeenSet = false;
76
77 Aws::String m_currency;
78 bool m_currencyHasBeenSet = false;
79
81 bool m_frequencyHasBeenSet = false;
82 };
83
84} // namespace Model
85} // namespace ResilienceHub
86} // namespace Aws
AWS_RESILIENCEHUB_API Cost & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetCurrency() const
Definition Cost.h:55
CostFrequency GetFrequency() const
Definition Cost.h:67
void SetCurrency(CurrencyT &&value)
Definition Cost.h:58
bool FrequencyHasBeenSet() const
Definition Cost.h:68
void SetAmount(double value)
Definition Cost.h:47
bool AmountHasBeenSet() const
Definition Cost.h:46
Cost & WithCurrency(CurrencyT &&value)
Definition Cost.h:60
bool CurrencyHasBeenSet() const
Definition Cost.h:56
Cost & WithAmount(double value)
Definition Cost.h:48
AWS_RESILIENCEHUB_API Cost()=default
Cost & WithFrequency(CostFrequency value)
Definition Cost.h:70
void SetFrequency(CostFrequency value)
Definition Cost.h:69
AWS_RESILIENCEHUB_API Cost(Aws::Utils::Json::JsonView jsonValue)
double GetAmount() const
Definition Cost.h:45
AWS_RESILIENCEHUB_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue