AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
InvoiceDetails.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/payments/Payments_EXPORTS.h>
10#include <aws/payments/model/BillingPeriod.h>
11#include <aws/payments/model/DueStatus.h>
12#include <aws/payments/model/InvoiceFrequency.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Payments {
24namespace Model {
25
34 public:
35 AWS_PAYMENTS_API InvoiceDetails() = default;
36 AWS_PAYMENTS_API InvoiceDetails(Aws::Utils::Json::JsonView jsonValue);
38 AWS_PAYMENTS_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
49 inline const Aws::String& GetInvoiceId() const { return m_invoiceId; }
50 inline bool InvoiceIdHasBeenSet() const { return m_invoiceIdHasBeenSet; }
51 template <typename InvoiceIdT = Aws::String>
52 void SetInvoiceId(InvoiceIdT&& value) {
53 m_invoiceIdHasBeenSet = true;
54 m_invoiceId = std::forward<InvoiceIdT>(value);
55 }
56 template <typename InvoiceIdT = Aws::String>
57 InvoiceDetails& WithInvoiceId(InvoiceIdT&& value) {
58 SetInvoiceId(std::forward<InvoiceIdT>(value));
59 return *this;
60 }
62
64
73 inline DueStatus GetDueStatus() const { return m_dueStatus; }
74 inline bool DueStatusHasBeenSet() const { return m_dueStatusHasBeenSet; }
75 inline void SetDueStatus(DueStatus value) {
76 m_dueStatusHasBeenSet = true;
77 m_dueStatus = value;
78 }
80 SetDueStatus(value);
81 return *this;
82 }
84
86
89 inline const BillingPeriod& GetBillingPeriod() const { return m_billingPeriod; }
90 inline bool BillingPeriodHasBeenSet() const { return m_billingPeriodHasBeenSet; }
91 template <typename BillingPeriodT = BillingPeriod>
92 void SetBillingPeriod(BillingPeriodT&& value) {
93 m_billingPeriodHasBeenSet = true;
94 m_billingPeriod = std::forward<BillingPeriodT>(value);
95 }
96 template <typename BillingPeriodT = BillingPeriod>
97 InvoiceDetails& WithBillingPeriod(BillingPeriodT&& value) {
98 SetBillingPeriod(std::forward<BillingPeriodT>(value));
99 return *this;
100 }
102
104
108 inline const Aws::Utils::DateTime& GetDueDate() const { return m_dueDate; }
109 inline bool DueDateHasBeenSet() const { return m_dueDateHasBeenSet; }
110 template <typename DueDateT = Aws::Utils::DateTime>
111 void SetDueDate(DueDateT&& value) {
112 m_dueDateHasBeenSet = true;
113 m_dueDate = std::forward<DueDateT>(value);
114 }
115 template <typename DueDateT = Aws::Utils::DateTime>
116 InvoiceDetails& WithDueDate(DueDateT&& value) {
117 SetDueDate(std::forward<DueDateT>(value));
118 return *this;
119 }
121
123
129 inline const Aws::String& GetPaymentTerms() const { return m_paymentTerms; }
130 inline bool PaymentTermsHasBeenSet() const { return m_paymentTermsHasBeenSet; }
131 template <typename PaymentTermsT = Aws::String>
132 void SetPaymentTerms(PaymentTermsT&& value) {
133 m_paymentTermsHasBeenSet = true;
134 m_paymentTerms = std::forward<PaymentTermsT>(value);
135 }
136 template <typename PaymentTermsT = Aws::String>
137 InvoiceDetails& WithPaymentTerms(PaymentTermsT&& value) {
138 SetPaymentTerms(std::forward<PaymentTermsT>(value));
139 return *this;
140 }
142
144
151 inline InvoiceFrequency GetInvoiceFrequency() const { return m_invoiceFrequency; }
152 inline bool InvoiceFrequencyHasBeenSet() const { return m_invoiceFrequencyHasBeenSet; }
154 m_invoiceFrequencyHasBeenSet = true;
155 m_invoiceFrequency = value;
156 }
158 SetInvoiceFrequency(value);
159 return *this;
160 }
162 private:
163 Aws::String m_invoiceId;
164
165 DueStatus m_dueStatus{DueStatus::NOT_SET};
166
167 BillingPeriod m_billingPeriod;
168
169 Aws::Utils::DateTime m_dueDate{};
170
171 Aws::String m_paymentTerms;
172
174 bool m_invoiceIdHasBeenSet = false;
175 bool m_dueStatusHasBeenSet = false;
176 bool m_billingPeriodHasBeenSet = false;
177 bool m_dueDateHasBeenSet = false;
178 bool m_paymentTermsHasBeenSet = false;
179 bool m_invoiceFrequencyHasBeenSet = false;
180};
181
182} // namespace Model
183} // namespace Payments
184} // namespace Aws
AWS_PAYMENTS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_PAYMENTS_API InvoiceDetails()=default
const Aws::Utils::DateTime & GetDueDate() const
const BillingPeriod & GetBillingPeriod() const
void SetBillingPeriod(BillingPeriodT &&value)
const Aws::String & GetInvoiceId() const
void SetInvoiceFrequency(InvoiceFrequency value)
InvoiceDetails & WithDueStatus(DueStatus value)
InvoiceDetails & WithInvoiceId(InvoiceIdT &&value)
AWS_PAYMENTS_API InvoiceDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
InvoiceDetails & WithPaymentTerms(PaymentTermsT &&value)
InvoiceDetails & WithInvoiceFrequency(InvoiceFrequency value)
void SetInvoiceId(InvoiceIdT &&value)
AWS_PAYMENTS_API InvoiceDetails(Aws::Utils::Json::JsonView jsonValue)
InvoiceFrequency GetInvoiceFrequency() const
const Aws::String & GetPaymentTerms() const
void SetPaymentTerms(PaymentTermsT &&value)
InvoiceDetails & WithDueDate(DueDateT &&value)
InvoiceDetails & WithBillingPeriod(BillingPeriodT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue