AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
GetInvoiceUnitRequest.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/core/utils/DateTime.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Invoicing
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_INVOICING_API GetInvoiceUnitRequest() = 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 "GetInvoiceUnit"; }
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 GetInvoiceUnitRequest& WithInvoiceUnitArn(InvoiceUnitArnT&& value) { SetInvoiceUnitArn(std::forward<InvoiceUnitArnT>(value)); return *this;}
50
52
58 inline const Aws::Utils::DateTime& GetAsOf() const { return m_asOf; }
59 inline bool AsOfHasBeenSet() const { return m_asOfHasBeenSet; }
60 template<typename AsOfT = Aws::Utils::DateTime>
61 void SetAsOf(AsOfT&& value) { m_asOfHasBeenSet = true; m_asOf = std::forward<AsOfT>(value); }
62 template<typename AsOfT = Aws::Utils::DateTime>
63 GetInvoiceUnitRequest& WithAsOf(AsOfT&& value) { SetAsOf(std::forward<AsOfT>(value)); return *this;}
65 private:
66
67 Aws::String m_invoiceUnitArn;
68 bool m_invoiceUnitArnHasBeenSet = false;
69
70 Aws::Utils::DateTime m_asOf{};
71 bool m_asOfHasBeenSet = false;
72 };
73
74} // namespace Model
75} // namespace Invoicing
76} // 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