AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
AmountBreakdown.h
1
6#pragma once
7#include <aws/invoicing/Invoicing_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/invoicing/model/DiscountsBreakdown.h>
10#include <aws/invoicing/model/TaxesBreakdown.h>
11#include <aws/invoicing/model/FeesBreakdown.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace Invoicing
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_INVOICING_API AmountBreakdown() = default;
39 AWS_INVOICING_API AmountBreakdown(Aws::Utils::Json::JsonView jsonValue);
41 AWS_INVOICING_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetSubTotalAmount() const { return m_subTotalAmount; }
49 inline bool SubTotalAmountHasBeenSet() const { return m_subTotalAmountHasBeenSet; }
50 template<typename SubTotalAmountT = Aws::String>
51 void SetSubTotalAmount(SubTotalAmountT&& value) { m_subTotalAmountHasBeenSet = true; m_subTotalAmount = std::forward<SubTotalAmountT>(value); }
52 template<typename SubTotalAmountT = Aws::String>
53 AmountBreakdown& WithSubTotalAmount(SubTotalAmountT&& value) { SetSubTotalAmount(std::forward<SubTotalAmountT>(value)); return *this;}
55
57
60 inline const DiscountsBreakdown& GetDiscounts() const { return m_discounts; }
61 inline bool DiscountsHasBeenSet() const { return m_discountsHasBeenSet; }
62 template<typename DiscountsT = DiscountsBreakdown>
63 void SetDiscounts(DiscountsT&& value) { m_discountsHasBeenSet = true; m_discounts = std::forward<DiscountsT>(value); }
64 template<typename DiscountsT = DiscountsBreakdown>
65 AmountBreakdown& WithDiscounts(DiscountsT&& value) { SetDiscounts(std::forward<DiscountsT>(value)); return *this;}
67
69
72 inline const TaxesBreakdown& GetTaxes() const { return m_taxes; }
73 inline bool TaxesHasBeenSet() const { return m_taxesHasBeenSet; }
74 template<typename TaxesT = TaxesBreakdown>
75 void SetTaxes(TaxesT&& value) { m_taxesHasBeenSet = true; m_taxes = std::forward<TaxesT>(value); }
76 template<typename TaxesT = TaxesBreakdown>
77 AmountBreakdown& WithTaxes(TaxesT&& value) { SetTaxes(std::forward<TaxesT>(value)); return *this;}
79
81
84 inline const FeesBreakdown& GetFees() const { return m_fees; }
85 inline bool FeesHasBeenSet() const { return m_feesHasBeenSet; }
86 template<typename FeesT = FeesBreakdown>
87 void SetFees(FeesT&& value) { m_feesHasBeenSet = true; m_fees = std::forward<FeesT>(value); }
88 template<typename FeesT = FeesBreakdown>
89 AmountBreakdown& WithFees(FeesT&& value) { SetFees(std::forward<FeesT>(value)); return *this;}
91 private:
92
93 Aws::String m_subTotalAmount;
94 bool m_subTotalAmountHasBeenSet = false;
95
96 DiscountsBreakdown m_discounts;
97 bool m_discountsHasBeenSet = false;
98
99 TaxesBreakdown m_taxes;
100 bool m_taxesHasBeenSet = false;
101
102 FeesBreakdown m_fees;
103 bool m_feesHasBeenSet = false;
104 };
105
106} // namespace Model
107} // namespace Invoicing
108} // namespace Aws
AmountBreakdown & WithTaxes(TaxesT &&value)
const Aws::String & GetSubTotalAmount() const
AWS_INVOICING_API Aws::Utils::Json::JsonValue Jsonize() const
const DiscountsBreakdown & GetDiscounts() const
void SetDiscounts(DiscountsT &&value)
AmountBreakdown & WithSubTotalAmount(SubTotalAmountT &&value)
AWS_INVOICING_API AmountBreakdown(Aws::Utils::Json::JsonView jsonValue)
AmountBreakdown & WithFees(FeesT &&value)
AWS_INVOICING_API AmountBreakdown()=default
const TaxesBreakdown & GetTaxes() const
const FeesBreakdown & GetFees() const
void SetSubTotalAmount(SubTotalAmountT &&value)
AmountBreakdown & WithDiscounts(DiscountsT &&value)
AWS_INVOICING_API AmountBreakdown & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue