AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetCurrency(const Aws::String& value) { m_currencyHasBeenSet = true; m_currency = value; }
58 inline void SetCurrency(Aws::String&& value) { m_currencyHasBeenSet = true; m_currency = std::move(value); }
59 inline void SetCurrency(const char* value) { m_currencyHasBeenSet = true; m_currency.assign(value); }
60 inline Cost& WithCurrency(const Aws::String& value) { SetCurrency(value); return *this;}
61 inline Cost& WithCurrency(Aws::String&& value) { SetCurrency(std::move(value)); return *this;}
62 inline Cost& WithCurrency(const char* value) { SetCurrency(value); return *this;}
64
66
69 inline const CostFrequency& GetFrequency() const{ return m_frequency; }
70 inline bool FrequencyHasBeenSet() const { return m_frequencyHasBeenSet; }
71 inline void SetFrequency(const CostFrequency& value) { m_frequencyHasBeenSet = true; m_frequency = value; }
72 inline void SetFrequency(CostFrequency&& value) { m_frequencyHasBeenSet = true; m_frequency = std::move(value); }
73 inline Cost& WithFrequency(const CostFrequency& value) { SetFrequency(value); return *this;}
74 inline Cost& WithFrequency(CostFrequency&& value) { SetFrequency(std::move(value)); return *this;}
76 private:
77
78 double m_amount;
79 bool m_amountHasBeenSet = false;
80
81 Aws::String m_currency;
82 bool m_currencyHasBeenSet = false;
83
84 CostFrequency m_frequency;
85 bool m_frequencyHasBeenSet = false;
86 };
87
88} // namespace Model
89} // namespace ResilienceHub
90} // namespace Aws
AWS_RESILIENCEHUB_API Cost & operator=(Aws::Utils::Json::JsonView jsonValue)
Cost & WithCurrency(const char *value)
Definition Cost.h:62
const Aws::String & GetCurrency() const
Definition Cost.h:55
void SetCurrency(const char *value)
Definition Cost.h:59
Cost & WithFrequency(CostFrequency &&value)
Definition Cost.h:74
Cost & WithFrequency(const CostFrequency &value)
Definition Cost.h:73
void SetFrequency(CostFrequency &&value)
Definition Cost.h:72
const CostFrequency & GetFrequency() const
Definition Cost.h:69
bool FrequencyHasBeenSet() const
Definition Cost.h:70
void SetAmount(double value)
Definition Cost.h:47
Cost & WithCurrency(Aws::String &&value)
Definition Cost.h:61
bool AmountHasBeenSet() const
Definition Cost.h:46
AWS_RESILIENCEHUB_API Cost()
bool CurrencyHasBeenSet() const
Definition Cost.h:56
Cost & WithAmount(double value)
Definition Cost.h:48
void SetCurrency(const Aws::String &value)
Definition Cost.h:57
void SetCurrency(Aws::String &&value)
Definition Cost.h:58
AWS_RESILIENCEHUB_API Cost(Aws::Utils::Json::JsonView jsonValue)
void SetFrequency(const CostFrequency &value)
Definition Cost.h:71
double GetAmount() const
Definition Cost.h:45
Cost & WithCurrency(const Aws::String &value)
Definition Cost.h:60
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