AWS SDK for C++

AWS SDK for C++ Version 1.11.714

Loading...
Searching...
No Matches
DiscountsBreakdown.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/DiscountsBreakdownAmount.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 DiscountsBreakdown() = default;
32 AWS_INVOICING_API DiscountsBreakdown(Aws::Utils::Json::JsonView jsonValue);
34 AWS_INVOICING_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::Vector<DiscountsBreakdownAmount>& GetBreakdown() const { return m_breakdown; }
41 inline bool BreakdownHasBeenSet() const { return m_breakdownHasBeenSet; }
42 template <typename BreakdownT = Aws::Vector<DiscountsBreakdownAmount>>
43 void SetBreakdown(BreakdownT&& value) {
44 m_breakdownHasBeenSet = true;
45 m_breakdown = std::forward<BreakdownT>(value);
46 }
47 template <typename BreakdownT = Aws::Vector<DiscountsBreakdownAmount>>
48 DiscountsBreakdown& WithBreakdown(BreakdownT&& value) {
49 SetBreakdown(std::forward<BreakdownT>(value));
50 return *this;
51 }
52 template <typename BreakdownT = DiscountsBreakdownAmount>
53 DiscountsBreakdown& 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 DiscountsBreakdown& 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
DiscountsBreakdown & WithBreakdown(BreakdownT &&value)
AWS_INVOICING_API DiscountsBreakdown & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_INVOICING_API DiscountsBreakdown()=default
const Aws::Vector< DiscountsBreakdownAmount > & GetBreakdown() const
AWS_INVOICING_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_INVOICING_API DiscountsBreakdown(Aws::Utils::Json::JsonView jsonValue)
DiscountsBreakdown & WithTotalAmount(TotalAmountT &&value)
DiscountsBreakdown & AddBreakdown(BreakdownT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue