AWS SDK for C++

AWS SDK for C++ Version 1.11.820

Loading...
Searching...
No Matches
AssessmentCost.h
1
6#pragma once
7#include <aws/resiliencehubv2/Resiliencehubv2_EXPORTS.h>
8#include <aws/resiliencehubv2/model/CostCurrency.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace resiliencehubv2 {
20namespace Model {
21
29 public:
30 AWS_RESILIENCEHUBV2_API AssessmentCost() = default;
31 AWS_RESILIENCEHUBV2_API AssessmentCost(Aws::Utils::Json::JsonView jsonValue);
32 AWS_RESILIENCEHUBV2_API AssessmentCost& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_RESILIENCEHUBV2_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline double GetAmount() const { return m_amount; }
40 inline bool AmountHasBeenSet() const { return m_amountHasBeenSet; }
41 inline void SetAmount(double value) {
42 m_amountHasBeenSet = true;
43 m_amount = value;
44 }
45 inline AssessmentCost& WithAmount(double value) {
46 SetAmount(value);
47 return *this;
48 }
50
52
55 inline CostCurrency GetCurrency() const { return m_currency; }
56 inline bool CurrencyHasBeenSet() const { return m_currencyHasBeenSet; }
57 inline void SetCurrency(CostCurrency value) {
58 m_currencyHasBeenSet = true;
59 m_currency = value;
60 }
62 SetCurrency(value);
63 return *this;
64 }
66 private:
67 double m_amount{0.0};
68
70 bool m_amountHasBeenSet = false;
71 bool m_currencyHasBeenSet = false;
72};
73
74} // namespace Model
75} // namespace resiliencehubv2
76} // namespace Aws
AssessmentCost & WithAmount(double value)
AssessmentCost & WithCurrency(CostCurrency value)
AWS_RESILIENCEHUBV2_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_RESILIENCEHUBV2_API AssessmentCost(Aws::Utils::Json::JsonView jsonValue)
AWS_RESILIENCEHUBV2_API AssessmentCost()=default
AWS_RESILIENCEHUBV2_API AssessmentCost & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue