AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
FeesBreakdown.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/invoicing/Invoicing_EXPORTS.h>
10#include <aws/invoicing/model/FeesBreakdownAmount.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Invoicing {
22namespace Model {
23
30 public:
31 AWS_INVOICING_API FeesBreakdown() = default;
32 AWS_INVOICING_API FeesBreakdown(Aws::Utils::Json::JsonView jsonValue);
33 AWS_INVOICING_API FeesBreakdown& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_INVOICING_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::Vector<FeesBreakdownAmount>& GetBreakdown() const { return m_breakdown; }
41 inline bool BreakdownHasBeenSet() const { return m_breakdownHasBeenSet; }
42 template <typename BreakdownT = Aws::Vector<FeesBreakdownAmount>>
43 void SetBreakdown(BreakdownT&& value) {
44 m_breakdownHasBeenSet = true;
45 m_breakdown = std::forward<BreakdownT>(value);
46 }
47 template <typename BreakdownT = Aws::Vector<FeesBreakdownAmount>>
48 FeesBreakdown& WithBreakdown(BreakdownT&& value) {
49 SetBreakdown(std::forward<BreakdownT>(value));
50 return *this;
51 }
52 template <typename BreakdownT = FeesBreakdownAmount>
53 FeesBreakdown& AddBreakdown(BreakdownT&& value) {
54 m_breakdownHasBeenSet = true;
55 m_breakdown.emplace_back(std::forward<BreakdownT>(value));
56 return *this;
57 }
59
61
64 inline const Aws::String& GetTotalAmount() const { return m_totalAmount; }
65 inline bool TotalAmountHasBeenSet() const { return m_totalAmountHasBeenSet; }
66 template <typename TotalAmountT = Aws::String>
67 void SetTotalAmount(TotalAmountT&& value) {
68 m_totalAmountHasBeenSet = true;
69 m_totalAmount = std::forward<TotalAmountT>(value);
70 }
71 template <typename TotalAmountT = Aws::String>
72 FeesBreakdown& WithTotalAmount(TotalAmountT&& value) {
73 SetTotalAmount(std::forward<TotalAmountT>(value));
74 return *this;
75 }
77 private:
79
80 Aws::String m_totalAmount;
81 bool m_breakdownHasBeenSet = false;
82 bool m_totalAmountHasBeenSet = false;
83};
84
85} // namespace Model
86} // namespace Invoicing
87} // namespace Aws
FeesBreakdown & WithTotalAmount(TotalAmountT &&value)
AWS_INVOICING_API FeesBreakdown & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetTotalAmount(TotalAmountT &&value)
const Aws::String & GetTotalAmount() const
void SetBreakdown(BreakdownT &&value)
FeesBreakdown & AddBreakdown(BreakdownT &&value)
AWS_INVOICING_API FeesBreakdown(Aws::Utils::Json::JsonView jsonValue)
AWS_INVOICING_API FeesBreakdown()=default
FeesBreakdown & WithBreakdown(BreakdownT &&value)
AWS_INVOICING_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< FeesBreakdownAmount > & GetBreakdown() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue