AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateInvoiceUnitRequest.h
1
6#pragma once
7#include <aws/invoicing/Invoicing_EXPORTS.h>
8#include <aws/invoicing/InvoicingRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/invoicing/model/InvoiceUnitRule.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/invoicing/model/ResourceTag.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Invoicing
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_INVOICING_API CreateInvoiceUnitRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreateInvoiceUnit"; }
34
35 AWS_INVOICING_API Aws::String SerializePayload() const override;
36
38
39
41
46 inline const Aws::String& GetName() const { return m_name; }
47 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
48 template<typename NameT = Aws::String>
49 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
50 template<typename NameT = Aws::String>
51 CreateInvoiceUnitRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
53
55
60 inline const Aws::String& GetInvoiceReceiver() const { return m_invoiceReceiver; }
61 inline bool InvoiceReceiverHasBeenSet() const { return m_invoiceReceiverHasBeenSet; }
62 template<typename InvoiceReceiverT = Aws::String>
63 void SetInvoiceReceiver(InvoiceReceiverT&& value) { m_invoiceReceiverHasBeenSet = true; m_invoiceReceiver = std::forward<InvoiceReceiverT>(value); }
64 template<typename InvoiceReceiverT = Aws::String>
65 CreateInvoiceUnitRequest& WithInvoiceReceiver(InvoiceReceiverT&& value) { SetInvoiceReceiver(std::forward<InvoiceReceiverT>(value)); return *this;}
67
69
72 inline const Aws::String& GetDescription() const { return m_description; }
73 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
74 template<typename DescriptionT = Aws::String>
75 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
76 template<typename DescriptionT = Aws::String>
77 CreateInvoiceUnitRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
79
81
85 inline bool GetTaxInheritanceDisabled() const { return m_taxInheritanceDisabled; }
86 inline bool TaxInheritanceDisabledHasBeenSet() const { return m_taxInheritanceDisabledHasBeenSet; }
87 inline void SetTaxInheritanceDisabled(bool value) { m_taxInheritanceDisabledHasBeenSet = true; m_taxInheritanceDisabled = value; }
90
92
95 inline const InvoiceUnitRule& GetRule() const { return m_rule; }
96 inline bool RuleHasBeenSet() const { return m_ruleHasBeenSet; }
97 template<typename RuleT = InvoiceUnitRule>
98 void SetRule(RuleT&& value) { m_ruleHasBeenSet = true; m_rule = std::forward<RuleT>(value); }
99 template<typename RuleT = InvoiceUnitRule>
100 CreateInvoiceUnitRequest& WithRule(RuleT&& value) { SetRule(std::forward<RuleT>(value)); return *this;}
102
104
107 inline const Aws::Vector<ResourceTag>& GetResourceTags() const { return m_resourceTags; }
108 inline bool ResourceTagsHasBeenSet() const { return m_resourceTagsHasBeenSet; }
109 template<typename ResourceTagsT = Aws::Vector<ResourceTag>>
110 void SetResourceTags(ResourceTagsT&& value) { m_resourceTagsHasBeenSet = true; m_resourceTags = std::forward<ResourceTagsT>(value); }
111 template<typename ResourceTagsT = Aws::Vector<ResourceTag>>
112 CreateInvoiceUnitRequest& WithResourceTags(ResourceTagsT&& value) { SetResourceTags(std::forward<ResourceTagsT>(value)); return *this;}
113 template<typename ResourceTagsT = ResourceTag>
114 CreateInvoiceUnitRequest& AddResourceTags(ResourceTagsT&& value) { m_resourceTagsHasBeenSet = true; m_resourceTags.emplace_back(std::forward<ResourceTagsT>(value)); return *this; }
116 private:
117
118 Aws::String m_name;
119 bool m_nameHasBeenSet = false;
120
121 Aws::String m_invoiceReceiver;
122 bool m_invoiceReceiverHasBeenSet = false;
123
124 Aws::String m_description;
125 bool m_descriptionHasBeenSet = false;
126
127 bool m_taxInheritanceDisabled{false};
128 bool m_taxInheritanceDisabledHasBeenSet = false;
129
130 InvoiceUnitRule m_rule;
131 bool m_ruleHasBeenSet = false;
132
133 Aws::Vector<ResourceTag> m_resourceTags;
134 bool m_resourceTagsHasBeenSet = false;
135 };
136
137} // namespace Model
138} // namespace Invoicing
139} // namespace Aws
CreateInvoiceUnitRequest & WithInvoiceReceiver(InvoiceReceiverT &&value)
AWS_INVOICING_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateInvoiceUnitRequest & WithDescription(DescriptionT &&value)
CreateInvoiceUnitRequest & AddResourceTags(ResourceTagsT &&value)
AWS_INVOICING_API CreateInvoiceUnitRequest()=default
CreateInvoiceUnitRequest & WithTaxInheritanceDisabled(bool value)
AWS_INVOICING_API Aws::String SerializePayload() const override
CreateInvoiceUnitRequest & WithResourceTags(ResourceTagsT &&value)
const Aws::Vector< ResourceTag > & GetResourceTags() const
virtual const char * GetServiceRequestName() const override
CreateInvoiceUnitRequest & WithName(NameT &&value)
CreateInvoiceUnitRequest & WithRule(RuleT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector