AWS SDK for C++

AWS SDK for C++ Version 1.11.767

Loading...
Searching...
No Matches
InvoicePDF.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/invoicing/Invoicing_EXPORTS.h>
11#include <aws/invoicing/model/SupplementalDocument.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Invoicing {
23namespace Model {
24
31 public:
32 AWS_INVOICING_API InvoicePDF() = default;
33 AWS_INVOICING_API InvoicePDF(Aws::Utils::Json::JsonView jsonValue);
34 AWS_INVOICING_API InvoicePDF& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_INVOICING_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetInvoiceId() const { return m_invoiceId; }
42 inline bool InvoiceIdHasBeenSet() const { return m_invoiceIdHasBeenSet; }
43 template <typename InvoiceIdT = Aws::String>
44 void SetInvoiceId(InvoiceIdT&& value) {
45 m_invoiceIdHasBeenSet = true;
46 m_invoiceId = std::forward<InvoiceIdT>(value);
47 }
48 template <typename InvoiceIdT = Aws::String>
49 InvoicePDF& WithInvoiceId(InvoiceIdT&& value) {
50 SetInvoiceId(std::forward<InvoiceIdT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetDocumentUrl() const { return m_documentUrl; }
60 inline bool DocumentUrlHasBeenSet() const { return m_documentUrlHasBeenSet; }
61 template <typename DocumentUrlT = Aws::String>
62 void SetDocumentUrl(DocumentUrlT&& value) {
63 m_documentUrlHasBeenSet = true;
64 m_documentUrl = std::forward<DocumentUrlT>(value);
65 }
66 template <typename DocumentUrlT = Aws::String>
67 InvoicePDF& WithDocumentUrl(DocumentUrlT&& value) {
68 SetDocumentUrl(std::forward<DocumentUrlT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::Utils::DateTime& GetDocumentUrlExpirationDate() const { return m_documentUrlExpirationDate; }
78 inline bool DocumentUrlExpirationDateHasBeenSet() const { return m_documentUrlExpirationDateHasBeenSet; }
79 template <typename DocumentUrlExpirationDateT = Aws::Utils::DateTime>
80 void SetDocumentUrlExpirationDate(DocumentUrlExpirationDateT&& value) {
81 m_documentUrlExpirationDateHasBeenSet = true;
82 m_documentUrlExpirationDate = std::forward<DocumentUrlExpirationDateT>(value);
83 }
84 template <typename DocumentUrlExpirationDateT = Aws::Utils::DateTime>
85 InvoicePDF& WithDocumentUrlExpirationDate(DocumentUrlExpirationDateT&& value) {
86 SetDocumentUrlExpirationDate(std::forward<DocumentUrlExpirationDateT>(value));
87 return *this;
88 }
90
92
95 inline const Aws::Vector<SupplementalDocument>& GetSupplementalDocuments() const { return m_supplementalDocuments; }
96 inline bool SupplementalDocumentsHasBeenSet() const { return m_supplementalDocumentsHasBeenSet; }
97 template <typename SupplementalDocumentsT = Aws::Vector<SupplementalDocument>>
98 void SetSupplementalDocuments(SupplementalDocumentsT&& value) {
99 m_supplementalDocumentsHasBeenSet = true;
100 m_supplementalDocuments = std::forward<SupplementalDocumentsT>(value);
101 }
102 template <typename SupplementalDocumentsT = Aws::Vector<SupplementalDocument>>
103 InvoicePDF& WithSupplementalDocuments(SupplementalDocumentsT&& value) {
104 SetSupplementalDocuments(std::forward<SupplementalDocumentsT>(value));
105 return *this;
106 }
107 template <typename SupplementalDocumentsT = SupplementalDocument>
108 InvoicePDF& AddSupplementalDocuments(SupplementalDocumentsT&& value) {
109 m_supplementalDocumentsHasBeenSet = true;
110 m_supplementalDocuments.emplace_back(std::forward<SupplementalDocumentsT>(value));
111 return *this;
112 }
114 private:
115 Aws::String m_invoiceId;
116
117 Aws::String m_documentUrl;
118
119 Aws::Utils::DateTime m_documentUrlExpirationDate{};
120
121 Aws::Vector<SupplementalDocument> m_supplementalDocuments;
122 bool m_invoiceIdHasBeenSet = false;
123 bool m_documentUrlHasBeenSet = false;
124 bool m_documentUrlExpirationDateHasBeenSet = false;
125 bool m_supplementalDocumentsHasBeenSet = false;
126};
127
128} // namespace Model
129} // namespace Invoicing
130} // namespace Aws
const Aws::Utils::DateTime & GetDocumentUrlExpirationDate() const
Definition InvoicePDF.h:77
const Aws::String & GetDocumentUrl() const
Definition InvoicePDF.h:59
AWS_INVOICING_API Aws::Utils::Json::JsonValue Jsonize() const
void SetInvoiceId(InvoiceIdT &&value)
Definition InvoicePDF.h:44
AWS_INVOICING_API InvoicePDF & operator=(Aws::Utils::Json::JsonView jsonValue)
InvoicePDF & AddSupplementalDocuments(SupplementalDocumentsT &&value)
Definition InvoicePDF.h:108
void SetDocumentUrl(DocumentUrlT &&value)
Definition InvoicePDF.h:62
AWS_INVOICING_API InvoicePDF(Aws::Utils::Json::JsonView jsonValue)
InvoicePDF & WithSupplementalDocuments(SupplementalDocumentsT &&value)
Definition InvoicePDF.h:103
InvoicePDF & WithDocumentUrl(DocumentUrlT &&value)
Definition InvoicePDF.h:67
bool DocumentUrlExpirationDateHasBeenSet() const
Definition InvoicePDF.h:78
InvoicePDF & WithInvoiceId(InvoiceIdT &&value)
Definition InvoicePDF.h:49
const Aws::String & GetInvoiceId() const
Definition InvoicePDF.h:41
bool SupplementalDocumentsHasBeenSet() const
Definition InvoicePDF.h:96
void SetDocumentUrlExpirationDate(DocumentUrlExpirationDateT &&value)
Definition InvoicePDF.h:80
InvoicePDF & WithDocumentUrlExpirationDate(DocumentUrlExpirationDateT &&value)
Definition InvoicePDF.h:85
AWS_INVOICING_API InvoicePDF()=default
const Aws::Vector< SupplementalDocument > & GetSupplementalDocuments() const
Definition InvoicePDF.h:95
void SetSupplementalDocuments(SupplementalDocumentsT &&value)
Definition InvoicePDF.h:98
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue