AWS SDK for C++

AWS SDK for C++ Version 1.11.852

Loading...
Searching...
No Matches
CreditAllocationHistoryEntry.h
1
6#pragma once
7#include <aws/billing/Billing_EXPORTS.h>
8#include <aws/billing/model/Amount.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Billing {
21namespace Model {
22
31 public:
32 AWS_BILLING_API CreditAllocationHistoryEntry() = default;
35 AWS_BILLING_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetCreditId() const { return m_creditId; }
42 inline bool CreditIdHasBeenSet() const { return m_creditIdHasBeenSet; }
43 template <typename CreditIdT = Aws::String>
44 void SetCreditId(CreditIdT&& value) {
45 m_creditIdHasBeenSet = true;
46 m_creditId = std::forward<CreditIdT>(value);
47 }
48 template <typename CreditIdT = Aws::String>
50 SetCreditId(std::forward<CreditIdT>(value));
51 return *this;
52 }
54
56
60 inline const Amount& GetCreditAmount() const { return m_creditAmount; }
61 inline bool CreditAmountHasBeenSet() const { return m_creditAmountHasBeenSet; }
62 template <typename CreditAmountT = Amount>
63 void SetCreditAmount(CreditAmountT&& value) {
64 m_creditAmountHasBeenSet = true;
65 m_creditAmount = std::forward<CreditAmountT>(value);
66 }
67 template <typename CreditAmountT = Amount>
69 SetCreditAmount(std::forward<CreditAmountT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetDescription() const { return m_description; }
79 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
80 template <typename DescriptionT = Aws::String>
81 void SetDescription(DescriptionT&& value) {
82 m_descriptionHasBeenSet = true;
83 m_description = std::forward<DescriptionT>(value);
84 }
85 template <typename DescriptionT = Aws::String>
87 SetDescription(std::forward<DescriptionT>(value));
88 return *this;
89 }
91
93
96 inline const Aws::String& GetAccountId() const { return m_accountId; }
97 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
98 template <typename AccountIdT = Aws::String>
99 void SetAccountId(AccountIdT&& value) {
100 m_accountIdHasBeenSet = true;
101 m_accountId = std::forward<AccountIdT>(value);
102 }
103 template <typename AccountIdT = Aws::String>
105 SetAccountId(std::forward<AccountIdT>(value));
106 return *this;
107 }
109
111
114 inline const Aws::String& GetAppliedServiceName() const { return m_appliedServiceName; }
115 inline bool AppliedServiceNameHasBeenSet() const { return m_appliedServiceNameHasBeenSet; }
116 template <typename AppliedServiceNameT = Aws::String>
117 void SetAppliedServiceName(AppliedServiceNameT&& value) {
118 m_appliedServiceNameHasBeenSet = true;
119 m_appliedServiceName = std::forward<AppliedServiceNameT>(value);
120 }
121 template <typename AppliedServiceNameT = Aws::String>
123 SetAppliedServiceName(std::forward<AppliedServiceNameT>(value));
124 return *this;
125 }
127
129
132 inline const Aws::String& GetBillingMonth() const { return m_billingMonth; }
133 inline bool BillingMonthHasBeenSet() const { return m_billingMonthHasBeenSet; }
134 template <typename BillingMonthT = Aws::String>
135 void SetBillingMonth(BillingMonthT&& value) {
136 m_billingMonthHasBeenSet = true;
137 m_billingMonth = std::forward<BillingMonthT>(value);
138 }
139 template <typename BillingMonthT = Aws::String>
141 SetBillingMonth(std::forward<BillingMonthT>(value));
142 return *this;
143 }
145
147
151 inline bool GetIsEstimatedBill() const { return m_isEstimatedBill; }
152 inline bool IsEstimatedBillHasBeenSet() const { return m_isEstimatedBillHasBeenSet; }
153 inline void SetIsEstimatedBill(bool value) {
154 m_isEstimatedBillHasBeenSet = true;
155 m_isEstimatedBill = value;
156 }
158 SetIsEstimatedBill(value);
159 return *this;
160 }
162 private:
163 Aws::String m_creditId;
164
165 Amount m_creditAmount;
166
167 Aws::String m_description;
168
169 Aws::String m_accountId;
170
171 Aws::String m_appliedServiceName;
172
173 Aws::String m_billingMonth;
174
175 bool m_isEstimatedBill{false};
176 bool m_creditIdHasBeenSet = false;
177 bool m_creditAmountHasBeenSet = false;
178 bool m_descriptionHasBeenSet = false;
179 bool m_accountIdHasBeenSet = false;
180 bool m_appliedServiceNameHasBeenSet = false;
181 bool m_billingMonthHasBeenSet = false;
182 bool m_isEstimatedBillHasBeenSet = false;
183};
184
185} // namespace Model
186} // namespace Billing
187} // namespace Aws
const Aws::String & GetAccountId() const
bool AppliedServiceNameHasBeenSet() const
const Amount & GetCreditAmount() const
void SetCreditAmount(CreditAmountT &&value)
void SetCreditId(CreditIdT &&value)
void SetAccountId(AccountIdT &&value)
CreditAllocationHistoryEntry & WithAccountId(AccountIdT &&value)
CreditAllocationHistoryEntry & WithIsEstimatedBill(bool value)
const Aws::String & GetAppliedServiceName() const
CreditAllocationHistoryEntry & WithDescription(DescriptionT &&value)
CreditAllocationHistoryEntry & WithCreditId(CreditIdT &&value)
AWS_BILLING_API CreditAllocationHistoryEntry()=default
void SetDescription(DescriptionT &&value)
const Aws::String & GetBillingMonth() const
bool AccountIdHasBeenSet() const
bool BillingMonthHasBeenSet() const
bool IsEstimatedBillHasBeenSet() const
CreditAllocationHistoryEntry & WithBillingMonth(BillingMonthT &&value)
CreditAllocationHistoryEntry & WithCreditAmount(CreditAmountT &&value)
CreditAllocationHistoryEntry & WithAppliedServiceName(AppliedServiceNameT &&value)
bool CreditIdHasBeenSet() const
void SetBillingMonth(BillingMonthT &&value)
bool CreditAmountHasBeenSet() const
bool GetIsEstimatedBill() const
bool DescriptionHasBeenSet() const
AWS_BILLING_API CreditAllocationHistoryEntry & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_BILLING_API CreditAllocationHistoryEntry(Aws::Utils::Json::JsonView jsonValue)
AWS_BILLING_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetDescription() const
const Aws::String & GetCreditId() const
void SetAppliedServiceName(AppliedServiceNameT &&value)
void SetIsEstimatedBill(bool value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue