AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Spend.h
1
6#pragma once
7#include <aws/budgets/Budgets_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Budgets
22{
23namespace Model
24{
25
38 class Spend
39 {
40 public:
41 AWS_BUDGETS_API Spend();
42 AWS_BUDGETS_API Spend(Aws::Utils::Json::JsonView jsonValue);
43 AWS_BUDGETS_API Spend& operator=(Aws::Utils::Json::JsonView jsonValue);
44 AWS_BUDGETS_API Aws::Utils::Json::JsonValue Jsonize() const;
45
46
48
52 inline const Aws::String& GetAmount() const{ return m_amount; }
53 inline bool AmountHasBeenSet() const { return m_amountHasBeenSet; }
54 inline void SetAmount(const Aws::String& value) { m_amountHasBeenSet = true; m_amount = value; }
55 inline void SetAmount(Aws::String&& value) { m_amountHasBeenSet = true; m_amount = std::move(value); }
56 inline void SetAmount(const char* value) { m_amountHasBeenSet = true; m_amount.assign(value); }
57 inline Spend& WithAmount(const Aws::String& value) { SetAmount(value); return *this;}
58 inline Spend& WithAmount(Aws::String&& value) { SetAmount(std::move(value)); return *this;}
59 inline Spend& WithAmount(const char* value) { SetAmount(value); return *this;}
61
63
67 inline const Aws::String& GetUnit() const{ return m_unit; }
68 inline bool UnitHasBeenSet() const { return m_unitHasBeenSet; }
69 inline void SetUnit(const Aws::String& value) { m_unitHasBeenSet = true; m_unit = value; }
70 inline void SetUnit(Aws::String&& value) { m_unitHasBeenSet = true; m_unit = std::move(value); }
71 inline void SetUnit(const char* value) { m_unitHasBeenSet = true; m_unit.assign(value); }
72 inline Spend& WithUnit(const Aws::String& value) { SetUnit(value); return *this;}
73 inline Spend& WithUnit(Aws::String&& value) { SetUnit(std::move(value)); return *this;}
74 inline Spend& WithUnit(const char* value) { SetUnit(value); return *this;}
76 private:
77
78 Aws::String m_amount;
79 bool m_amountHasBeenSet = false;
80
81 Aws::String m_unit;
82 bool m_unitHasBeenSet = false;
83 };
84
85} // namespace Model
86} // namespace Budgets
87} // namespace Aws
void SetAmount(const Aws::String &value)
Definition Spend.h:54
bool UnitHasBeenSet() const
Definition Spend.h:68
bool AmountHasBeenSet() const
Definition Spend.h:53
void SetUnit(const char *value)
Definition Spend.h:71
AWS_BUDGETS_API Spend & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_BUDGETS_API Spend()
Spend & WithUnit(const Aws::String &value)
Definition Spend.h:72
void SetAmount(Aws::String &&value)
Definition Spend.h:55
void SetAmount(const char *value)
Definition Spend.h:56
Spend & WithAmount(const Aws::String &value)
Definition Spend.h:57
Spend & WithAmount(const char *value)
Definition Spend.h:59
void SetUnit(const Aws::String &value)
Definition Spend.h:69
Spend & WithUnit(const char *value)
Definition Spend.h:74
Spend & WithAmount(Aws::String &&value)
Definition Spend.h:58
Spend & WithUnit(Aws::String &&value)
Definition Spend.h:73
AWS_BUDGETS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_BUDGETS_API Spend(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetAmount() const
Definition Spend.h:52
void SetUnit(Aws::String &&value)
Definition Spend.h:70
const Aws::String & GetUnit() const
Definition Spend.h:67
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue