AWS SDK for C++

AWS SDK for C++ Version 1.11.904

Loading...
Searching...
No Matches
BusinessSupportAccountCharge.h
1
6#pragma once
7#include <aws/billing/Billing_EXPORTS.h>
8#include <aws/billing/model/BusinessSupportDiscount.h>
9#include <aws/billing/model/BusinessSupportServiceSpend.h>
10#include <aws/billing/model/BusinessSupportTierCharge.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Billing {
24namespace Model {
25
32 public:
33 AWS_BILLING_API BusinessSupportAccountCharge() = default;
36 AWS_BILLING_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetAccountId() const { return m_accountId; }
43 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
44 template <typename AccountIdT = Aws::String>
45 void SetAccountId(AccountIdT&& value) {
46 m_accountIdHasBeenSet = true;
47 m_accountId = std::forward<AccountIdT>(value);
48 }
49 template <typename AccountIdT = Aws::String>
51 SetAccountId(std::forward<AccountIdT>(value));
52 return *this;
53 }
55
57
63 inline const Aws::String& GetSupportPlanName() const { return m_supportPlanName; }
64 inline bool SupportPlanNameHasBeenSet() const { return m_supportPlanNameHasBeenSet; }
65 template <typename SupportPlanNameT = Aws::String>
66 void SetSupportPlanName(SupportPlanNameT&& value) {
67 m_supportPlanNameHasBeenSet = true;
68 m_supportPlanName = std::forward<SupportPlanNameT>(value);
69 }
70 template <typename SupportPlanNameT = Aws::String>
72 SetSupportPlanName(std::forward<SupportPlanNameT>(value));
73 return *this;
74 }
76
78
82 inline const Aws::String& GetTotalCharge() const { return m_totalCharge; }
83 inline bool TotalChargeHasBeenSet() const { return m_totalChargeHasBeenSet; }
84 template <typename TotalChargeT = Aws::String>
85 void SetTotalCharge(TotalChargeT&& value) {
86 m_totalChargeHasBeenSet = true;
87 m_totalCharge = std::forward<TotalChargeT>(value);
88 }
89 template <typename TotalChargeT = Aws::String>
91 SetTotalCharge(std::forward<TotalChargeT>(value));
92 return *this;
93 }
95
97
101 inline const Aws::String& GetTotalUsageBasis() const { return m_totalUsageBasis; }
102 inline bool TotalUsageBasisHasBeenSet() const { return m_totalUsageBasisHasBeenSet; }
103 template <typename TotalUsageBasisT = Aws::String>
104 void SetTotalUsageBasis(TotalUsageBasisT&& value) {
105 m_totalUsageBasisHasBeenSet = true;
106 m_totalUsageBasis = std::forward<TotalUsageBasisT>(value);
107 }
108 template <typename TotalUsageBasisT = Aws::String>
110 SetTotalUsageBasis(std::forward<TotalUsageBasisT>(value));
111 return *this;
112 }
114
116
120 inline const Aws::Vector<BusinessSupportTierCharge>& GetTierCharges() const { return m_tierCharges; }
121 inline bool TierChargesHasBeenSet() const { return m_tierChargesHasBeenSet; }
122 template <typename TierChargesT = Aws::Vector<BusinessSupportTierCharge>>
123 void SetTierCharges(TierChargesT&& value) {
124 m_tierChargesHasBeenSet = true;
125 m_tierCharges = std::forward<TierChargesT>(value);
126 }
127 template <typename TierChargesT = Aws::Vector<BusinessSupportTierCharge>>
129 SetTierCharges(std::forward<TierChargesT>(value));
130 return *this;
131 }
132 template <typename TierChargesT = BusinessSupportTierCharge>
134 m_tierChargesHasBeenSet = true;
135 m_tierCharges.emplace_back(std::forward<TierChargesT>(value));
136 return *this;
137 }
139
141
145 inline const BusinessSupportDiscount& GetSupportDiscount() const { return m_supportDiscount; }
146 inline bool SupportDiscountHasBeenSet() const { return m_supportDiscountHasBeenSet; }
147 template <typename SupportDiscountT = BusinessSupportDiscount>
148 void SetSupportDiscount(SupportDiscountT&& value) {
149 m_supportDiscountHasBeenSet = true;
150 m_supportDiscount = std::forward<SupportDiscountT>(value);
151 }
152 template <typename SupportDiscountT = BusinessSupportDiscount>
154 SetSupportDiscount(std::forward<SupportDiscountT>(value));
155 return *this;
156 }
158
160
165 return m_supportEligibleSpendByService;
166 }
167 inline bool SupportEligibleSpendByServiceHasBeenSet() const { return m_supportEligibleSpendByServiceHasBeenSet; }
168 template <typename SupportEligibleSpendByServiceT = Aws::Vector<BusinessSupportServiceSpend>>
169 void SetSupportEligibleSpendByService(SupportEligibleSpendByServiceT&& value) {
170 m_supportEligibleSpendByServiceHasBeenSet = true;
171 m_supportEligibleSpendByService = std::forward<SupportEligibleSpendByServiceT>(value);
172 }
173 template <typename SupportEligibleSpendByServiceT = Aws::Vector<BusinessSupportServiceSpend>>
174 BusinessSupportAccountCharge& WithSupportEligibleSpendByService(SupportEligibleSpendByServiceT&& value) {
175 SetSupportEligibleSpendByService(std::forward<SupportEligibleSpendByServiceT>(value));
176 return *this;
177 }
178 template <typename SupportEligibleSpendByServiceT = BusinessSupportServiceSpend>
179 BusinessSupportAccountCharge& AddSupportEligibleSpendByService(SupportEligibleSpendByServiceT&& value) {
180 m_supportEligibleSpendByServiceHasBeenSet = true;
181 m_supportEligibleSpendByService.emplace_back(std::forward<SupportEligibleSpendByServiceT>(value));
182 return *this;
183 }
185 private:
186 Aws::String m_accountId;
187
188 Aws::String m_supportPlanName;
189
190 Aws::String m_totalCharge;
191
192 Aws::String m_totalUsageBasis;
193
195
196 BusinessSupportDiscount m_supportDiscount;
197
198 Aws::Vector<BusinessSupportServiceSpend> m_supportEligibleSpendByService;
199 bool m_accountIdHasBeenSet = false;
200 bool m_supportPlanNameHasBeenSet = false;
201 bool m_totalChargeHasBeenSet = false;
202 bool m_totalUsageBasisHasBeenSet = false;
203 bool m_tierChargesHasBeenSet = false;
204 bool m_supportDiscountHasBeenSet = false;
205 bool m_supportEligibleSpendByServiceHasBeenSet = false;
206};
207
208} // namespace Model
209} // namespace Billing
210} // namespace Aws
AWS_BILLING_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< BusinessSupportTierCharge > & GetTierCharges() const
void SetSupportEligibleSpendByService(SupportEligibleSpendByServiceT &&value)
BusinessSupportAccountCharge & WithTotalCharge(TotalChargeT &&value)
BusinessSupportAccountCharge & WithAccountId(AccountIdT &&value)
BusinessSupportAccountCharge & WithSupportDiscount(SupportDiscountT &&value)
BusinessSupportAccountCharge & WithSupportPlanName(SupportPlanNameT &&value)
const BusinessSupportDiscount & GetSupportDiscount() const
AWS_BILLING_API BusinessSupportAccountCharge()=default
BusinessSupportAccountCharge & AddTierCharges(TierChargesT &&value)
BusinessSupportAccountCharge & WithSupportEligibleSpendByService(SupportEligibleSpendByServiceT &&value)
BusinessSupportAccountCharge & WithTierCharges(TierChargesT &&value)
AWS_BILLING_API BusinessSupportAccountCharge & operator=(Aws::Utils::Json::JsonView jsonValue)
BusinessSupportAccountCharge & AddSupportEligibleSpendByService(SupportEligibleSpendByServiceT &&value)
BusinessSupportAccountCharge & WithTotalUsageBasis(TotalUsageBasisT &&value)
const Aws::Vector< BusinessSupportServiceSpend > & GetSupportEligibleSpendByService() const
AWS_BILLING_API BusinessSupportAccountCharge(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue