AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
UpdateInvoiceUnitRequest.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 <utility>
12
13namespace Aws
14{
15namespace Invoicing
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_INVOICING_API UpdateInvoiceUnitRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "UpdateInvoiceUnit"; }
32
33 AWS_INVOICING_API Aws::String SerializePayload() const override;
34
36
37
39
43 inline const Aws::String& GetInvoiceUnitArn() const { return m_invoiceUnitArn; }
44 inline bool InvoiceUnitArnHasBeenSet() const { return m_invoiceUnitArnHasBeenSet; }
45 template<typename InvoiceUnitArnT = Aws::String>
46 void SetInvoiceUnitArn(InvoiceUnitArnT&& value) { m_invoiceUnitArnHasBeenSet = true; m_invoiceUnitArn = std::forward<InvoiceUnitArnT>(value); }
47 template<typename InvoiceUnitArnT = Aws::String>
48 UpdateInvoiceUnitRequest& WithInvoiceUnitArn(InvoiceUnitArnT&& value) { SetInvoiceUnitArn(std::forward<InvoiceUnitArnT>(value)); return *this;}
50
52
56 inline const Aws::String& GetDescription() const { return m_description; }
57 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
58 template<typename DescriptionT = Aws::String>
59 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
60 template<typename DescriptionT = Aws::String>
61 UpdateInvoiceUnitRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
63
65
69 inline bool GetTaxInheritanceDisabled() const { return m_taxInheritanceDisabled; }
70 inline bool TaxInheritanceDisabledHasBeenSet() const { return m_taxInheritanceDisabledHasBeenSet; }
71 inline void SetTaxInheritanceDisabled(bool value) { m_taxInheritanceDisabledHasBeenSet = true; m_taxInheritanceDisabled = value; }
74
76
79 inline const InvoiceUnitRule& GetRule() const { return m_rule; }
80 inline bool RuleHasBeenSet() const { return m_ruleHasBeenSet; }
81 template<typename RuleT = InvoiceUnitRule>
82 void SetRule(RuleT&& value) { m_ruleHasBeenSet = true; m_rule = std::forward<RuleT>(value); }
83 template<typename RuleT = InvoiceUnitRule>
84 UpdateInvoiceUnitRequest& WithRule(RuleT&& value) { SetRule(std::forward<RuleT>(value)); return *this;}
86 private:
87
88 Aws::String m_invoiceUnitArn;
89 bool m_invoiceUnitArnHasBeenSet = false;
90
91 Aws::String m_description;
92 bool m_descriptionHasBeenSet = false;
93
94 bool m_taxInheritanceDisabled{false};
95 bool m_taxInheritanceDisabledHasBeenSet = false;
96
97 InvoiceUnitRule m_rule;
98 bool m_ruleHasBeenSet = false;
99 };
100
101} // namespace Model
102} // namespace Invoicing
103} // 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