AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ListInvoiceUnitsRequest.h
1
6#pragma once
7#include <aws/invoicing/Invoicing_EXPORTS.h>
8#include <aws/invoicing/InvoicingRequest.h>
9#include <aws/invoicing/model/Filters.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/DateTime.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Invoicing
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_INVOICING_API ListInvoiceUnitsRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "ListInvoiceUnits"; }
33
34 AWS_INVOICING_API Aws::String SerializePayload() const override;
35
37
38
40
46 inline const Filters& GetFilters() const { return m_filters; }
47 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
48 template<typename FiltersT = Filters>
49 void SetFilters(FiltersT&& value) { m_filtersHasBeenSet = true; m_filters = std::forward<FiltersT>(value); }
50 template<typename FiltersT = Filters>
51 ListInvoiceUnitsRequest& WithFilters(FiltersT&& value) { SetFilters(std::forward<FiltersT>(value)); return *this;}
53
55
59 inline const Aws::String& GetNextToken() const { return m_nextToken; }
60 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
61 template<typename NextTokenT = Aws::String>
62 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
63 template<typename NextTokenT = Aws::String>
64 ListInvoiceUnitsRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
66
68
71 inline int GetMaxResults() const { return m_maxResults; }
72 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
73 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
74 inline ListInvoiceUnitsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
76
78
84 inline const Aws::Utils::DateTime& GetAsOf() const { return m_asOf; }
85 inline bool AsOfHasBeenSet() const { return m_asOfHasBeenSet; }
86 template<typename AsOfT = Aws::Utils::DateTime>
87 void SetAsOf(AsOfT&& value) { m_asOfHasBeenSet = true; m_asOf = std::forward<AsOfT>(value); }
88 template<typename AsOfT = Aws::Utils::DateTime>
89 ListInvoiceUnitsRequest& WithAsOf(AsOfT&& value) { SetAsOf(std::forward<AsOfT>(value)); return *this;}
91 private:
92
93 Filters m_filters;
94 bool m_filtersHasBeenSet = false;
95
96 Aws::String m_nextToken;
97 bool m_nextTokenHasBeenSet = false;
98
99 int m_maxResults{0};
100 bool m_maxResultsHasBeenSet = false;
101
102 Aws::Utils::DateTime m_asOf{};
103 bool m_asOfHasBeenSet = false;
104 };
105
106} // namespace Model
107} // namespace Invoicing
108} // namespace Aws
ListInvoiceUnitsRequest & WithMaxResults(int value)
AWS_INVOICING_API ListInvoiceUnitsRequest()=default
ListInvoiceUnitsRequest & WithNextToken(NextTokenT &&value)
virtual const char * GetServiceRequestName() const override
ListInvoiceUnitsRequest & WithAsOf(AsOfT &&value)
ListInvoiceUnitsRequest & WithFilters(FiltersT &&value)
AWS_INVOICING_API Aws::String SerializePayload() const override
AWS_INVOICING_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String