AWS SDK for C++

AWS SDK for C++ Version 1.11.891

Loading...
Searching...
No Matches
InvoiceConfiguration.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/invoicing/Invoicing_EXPORTS.h>
9#include <aws/invoicing/model/EinvoiceDeliveryAttachmentType.h>
10#include <aws/invoicing/model/EinvoiceDeliveryDocumentType.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
31 public:
32 AWS_INVOICING_API InvoiceConfiguration() = default;
35 AWS_INVOICING_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::Vector<EinvoiceDeliveryDocumentType>& GetDocumentTypes() const { return m_documentTypes; }
42 inline bool DocumentTypesHasBeenSet() const { return m_documentTypesHasBeenSet; }
43 template <typename DocumentTypesT = Aws::Vector<EinvoiceDeliveryDocumentType>>
44 void SetDocumentTypes(DocumentTypesT&& value) {
45 m_documentTypesHasBeenSet = true;
46 m_documentTypes = std::forward<DocumentTypesT>(value);
47 }
48 template <typename DocumentTypesT = Aws::Vector<EinvoiceDeliveryDocumentType>>
49 InvoiceConfiguration& WithDocumentTypes(DocumentTypesT&& value) {
50 SetDocumentTypes(std::forward<DocumentTypesT>(value));
51 return *this;
52 }
54 m_documentTypesHasBeenSet = true;
55 m_documentTypes.push_back(value);
56 return *this;
57 }
59
61
65 inline const Aws::Vector<EinvoiceDeliveryAttachmentType>& GetAttachmentTypes() const { return m_attachmentTypes; }
66 inline bool AttachmentTypesHasBeenSet() const { return m_attachmentTypesHasBeenSet; }
67 template <typename AttachmentTypesT = Aws::Vector<EinvoiceDeliveryAttachmentType>>
68 void SetAttachmentTypes(AttachmentTypesT&& value) {
69 m_attachmentTypesHasBeenSet = true;
70 m_attachmentTypes = std::forward<AttachmentTypesT>(value);
71 }
72 template <typename AttachmentTypesT = Aws::Vector<EinvoiceDeliveryAttachmentType>>
73 InvoiceConfiguration& WithAttachmentTypes(AttachmentTypesT&& value) {
74 SetAttachmentTypes(std::forward<AttachmentTypesT>(value));
75 return *this;
76 }
78 m_attachmentTypesHasBeenSet = true;
79 m_attachmentTypes.push_back(value);
80 return *this;
81 }
83 private:
85
87 bool m_documentTypesHasBeenSet = false;
88 bool m_attachmentTypesHasBeenSet = false;
89};
90
91} // namespace Model
92} // namespace Invoicing
93} // namespace Aws
InvoiceConfiguration & WithAttachmentTypes(AttachmentTypesT &&value)
const Aws::Vector< EinvoiceDeliveryDocumentType > & GetDocumentTypes() const
void SetAttachmentTypes(AttachmentTypesT &&value)
InvoiceConfiguration & AddAttachmentTypes(EinvoiceDeliveryAttachmentType value)
AWS_INVOICING_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_INVOICING_API InvoiceConfiguration(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< EinvoiceDeliveryAttachmentType > & GetAttachmentTypes() const
InvoiceConfiguration & WithDocumentTypes(DocumentTypesT &&value)
AWS_INVOICING_API InvoiceConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_INVOICING_API InvoiceConfiguration()=default
InvoiceConfiguration & AddDocumentTypes(EinvoiceDeliveryDocumentType value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue