AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
GetInvoiceUnitRequest.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/invoicing/InvoicingRequest.h>
10#include <aws/invoicing/Invoicing_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Invoicing {
16namespace Model {
17
21 public:
22 AWS_INVOICING_API GetInvoiceUnitRequest() = 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 "GetInvoiceUnit"; }
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 GetInvoiceUnitRequest& WithInvoiceUnitArn(InvoiceUnitArnT&& value) {
48 SetInvoiceUnitArn(std::forward<InvoiceUnitArnT>(value));
49 return *this;
50 }
52
54
60 inline const Aws::Utils::DateTime& GetAsOf() const { return m_asOf; }
61 inline bool AsOfHasBeenSet() const { return m_asOfHasBeenSet; }
62 template <typename AsOfT = Aws::Utils::DateTime>
63 void SetAsOf(AsOfT&& value) {
64 m_asOfHasBeenSet = true;
65 m_asOf = std::forward<AsOfT>(value);
66 }
67 template <typename AsOfT = Aws::Utils::DateTime>
69 SetAsOf(std::forward<AsOfT>(value));
70 return *this;
71 }
73 private:
74 Aws::String m_invoiceUnitArn;
75
76 Aws::Utils::DateTime m_asOf{};
77 bool m_invoiceUnitArnHasBeenSet = false;
78 bool m_asOfHasBeenSet = false;
79};
80
81} // namespace Model
82} // namespace Invoicing
83} // namespace Aws
virtual const char * GetServiceRequestName() const override
GetInvoiceUnitRequest & WithInvoiceUnitArn(InvoiceUnitArnT &&value)
AWS_INVOICING_API GetInvoiceUnitRequest()=default
AWS_INVOICING_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
GetInvoiceUnitRequest & WithAsOf(AsOfT &&value)
const Aws::Utils::DateTime & GetAsOf() const
AWS_INVOICING_API Aws::String SerializePayload() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String