AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
UpdateInvoiceUnitRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/invoicing/InvoicingRequest.h>
9#include <aws/invoicing/Invoicing_EXPORTS.h>
10#include <aws/invoicing/model/InvoiceUnitRule.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Invoicing {
16namespace Model {
17
21 public:
22 AWS_INVOICING_API UpdateInvoiceUnitRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "UpdateInvoiceUnit"; }
29
30 AWS_INVOICING_API Aws::String SerializePayload() const override;
31
33
35
39 inline const Aws::String& GetInvoiceUnitArn() const { return m_invoiceUnitArn; }
40 inline bool InvoiceUnitArnHasBeenSet() const { return m_invoiceUnitArnHasBeenSet; }
41 template <typename InvoiceUnitArnT = Aws::String>
42 void SetInvoiceUnitArn(InvoiceUnitArnT&& value) {
43 m_invoiceUnitArnHasBeenSet = true;
44 m_invoiceUnitArn = std::forward<InvoiceUnitArnT>(value);
45 }
46 template <typename InvoiceUnitArnT = Aws::String>
47 UpdateInvoiceUnitRequest& WithInvoiceUnitArn(InvoiceUnitArnT&& value) {
48 SetInvoiceUnitArn(std::forward<InvoiceUnitArnT>(value));
49 return *this;
50 }
52
54
58 inline const Aws::String& GetDescription() const { return m_description; }
59 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
60 template <typename DescriptionT = Aws::String>
61 void SetDescription(DescriptionT&& value) {
62 m_descriptionHasBeenSet = true;
63 m_description = std::forward<DescriptionT>(value);
64 }
65 template <typename DescriptionT = Aws::String>
67 SetDescription(std::forward<DescriptionT>(value));
68 return *this;
69 }
71
73
77 inline bool GetTaxInheritanceDisabled() const { return m_taxInheritanceDisabled; }
78 inline bool TaxInheritanceDisabledHasBeenSet() const { return m_taxInheritanceDisabledHasBeenSet; }
79 inline void SetTaxInheritanceDisabled(bool value) {
80 m_taxInheritanceDisabledHasBeenSet = true;
81 m_taxInheritanceDisabled = value;
82 }
85 return *this;
86 }
88
90
93 inline const InvoiceUnitRule& GetRule() const { return m_rule; }
94 inline bool RuleHasBeenSet() const { return m_ruleHasBeenSet; }
95 template <typename RuleT = InvoiceUnitRule>
96 void SetRule(RuleT&& value) {
97 m_ruleHasBeenSet = true;
98 m_rule = std::forward<RuleT>(value);
99 }
100 template <typename RuleT = InvoiceUnitRule>
102 SetRule(std::forward<RuleT>(value));
103 return *this;
104 }
106 private:
107 Aws::String m_invoiceUnitArn;
108
109 Aws::String m_description;
110
111 bool m_taxInheritanceDisabled{false};
112
113 InvoiceUnitRule m_rule;
114 bool m_invoiceUnitArnHasBeenSet = false;
115 bool m_descriptionHasBeenSet = false;
116 bool m_taxInheritanceDisabledHasBeenSet = false;
117 bool m_ruleHasBeenSet = false;
118};
119
120} // namespace Model
121} // namespace Invoicing
122} // namespace Aws
AWS_INVOICING_API Aws::String SerializePayload() const override
UpdateInvoiceUnitRequest & WithInvoiceUnitArn(InvoiceUnitArnT &&value)
UpdateInvoiceUnitRequest & WithRule(RuleT &&value)
UpdateInvoiceUnitRequest & WithDescription(DescriptionT &&value)
virtual const char * GetServiceRequestName() const override
AWS_INVOICING_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateInvoiceUnitRequest & WithTaxInheritanceDisabled(bool value)
AWS_INVOICING_API UpdateInvoiceUnitRequest()=default
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String