AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
FeesBreakdown.h
1
6#pragma once
7#include <aws/invoicing/Invoicing_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/invoicing/model/FeesBreakdownAmount.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Invoicing
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_INVOICING_API FeesBreakdown() = default;
37 AWS_INVOICING_API FeesBreakdown(Aws::Utils::Json::JsonView jsonValue);
38 AWS_INVOICING_API FeesBreakdown& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_INVOICING_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::Vector<FeesBreakdownAmount>& GetBreakdown() const { return m_breakdown; }
47 inline bool BreakdownHasBeenSet() const { return m_breakdownHasBeenSet; }
48 template<typename BreakdownT = Aws::Vector<FeesBreakdownAmount>>
49 void SetBreakdown(BreakdownT&& value) { m_breakdownHasBeenSet = true; m_breakdown = std::forward<BreakdownT>(value); }
50 template<typename BreakdownT = Aws::Vector<FeesBreakdownAmount>>
51 FeesBreakdown& WithBreakdown(BreakdownT&& value) { SetBreakdown(std::forward<BreakdownT>(value)); return *this;}
52 template<typename BreakdownT = FeesBreakdownAmount>
53 FeesBreakdown& AddBreakdown(BreakdownT&& value) { m_breakdownHasBeenSet = true; m_breakdown.emplace_back(std::forward<BreakdownT>(value)); return *this; }
55
57
60 inline const Aws::String& GetTotalAmount() const { return m_totalAmount; }
61 inline bool TotalAmountHasBeenSet() const { return m_totalAmountHasBeenSet; }
62 template<typename TotalAmountT = Aws::String>
63 void SetTotalAmount(TotalAmountT&& value) { m_totalAmountHasBeenSet = true; m_totalAmount = std::forward<TotalAmountT>(value); }
64 template<typename TotalAmountT = Aws::String>
65 FeesBreakdown& WithTotalAmount(TotalAmountT&& value) { SetTotalAmount(std::forward<TotalAmountT>(value)); return *this;}
67 private:
68
70 bool m_breakdownHasBeenSet = false;
71
72 Aws::String m_totalAmount;
73 bool m_totalAmountHasBeenSet = false;
74 };
75
76} // namespace Model
77} // namespace Invoicing
78} // 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