AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
GetUsageStatisticsRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/macie2/Macie2Request.h>
10#include <aws/macie2/Macie2_EXPORTS.h>
11#include <aws/macie2/model/TimeRange.h>
12#include <aws/macie2/model/UsageStatisticsFilter.h>
13#include <aws/macie2/model/UsageStatisticsSortBy.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Macie2 {
19namespace Model {
20
24 public:
25 AWS_MACIE2_API GetUsageStatisticsRequest() = 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 "GetUsageStatistics"; }
32
33 AWS_MACIE2_API Aws::String SerializePayload() const override;
34
36
41 inline const Aws::Vector<UsageStatisticsFilter>& GetFilterBy() const { return m_filterBy; }
42 inline bool FilterByHasBeenSet() const { return m_filterByHasBeenSet; }
43 template <typename FilterByT = Aws::Vector<UsageStatisticsFilter>>
44 void SetFilterBy(FilterByT&& value) {
45 m_filterByHasBeenSet = true;
46 m_filterBy = std::forward<FilterByT>(value);
47 }
48 template <typename FilterByT = Aws::Vector<UsageStatisticsFilter>>
50 SetFilterBy(std::forward<FilterByT>(value));
51 return *this;
52 }
53 template <typename FilterByT = UsageStatisticsFilter>
55 m_filterByHasBeenSet = true;
56 m_filterBy.emplace_back(std::forward<FilterByT>(value));
57 return *this;
58 }
60
62
65 inline int GetMaxResults() const { return m_maxResults; }
66 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
67 inline void SetMaxResults(int value) {
68 m_maxResultsHasBeenSet = true;
69 m_maxResults = value;
70 }
72 SetMaxResults(value);
73 return *this;
74 }
76
78
82 inline const Aws::String& GetNextToken() const { return m_nextToken; }
83 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
84 template <typename NextTokenT = Aws::String>
85 void SetNextToken(NextTokenT&& value) {
86 m_nextTokenHasBeenSet = true;
87 m_nextToken = std::forward<NextTokenT>(value);
88 }
89 template <typename NextTokenT = Aws::String>
91 SetNextToken(std::forward<NextTokenT>(value));
92 return *this;
93 }
95
97
100 inline const UsageStatisticsSortBy& GetSortBy() const { return m_sortBy; }
101 inline bool SortByHasBeenSet() const { return m_sortByHasBeenSet; }
102 template <typename SortByT = UsageStatisticsSortBy>
103 void SetSortBy(SortByT&& value) {
104 m_sortByHasBeenSet = true;
105 m_sortBy = std::forward<SortByT>(value);
106 }
107 template <typename SortByT = UsageStatisticsSortBy>
109 SetSortBy(std::forward<SortByT>(value));
110 return *this;
111 }
113
115
121 inline TimeRange GetTimeRange() const { return m_timeRange; }
122 inline bool TimeRangeHasBeenSet() const { return m_timeRangeHasBeenSet; }
123 inline void SetTimeRange(TimeRange value) {
124 m_timeRangeHasBeenSet = true;
125 m_timeRange = value;
126 }
128 SetTimeRange(value);
129 return *this;
130 }
132 private:
134
135 int m_maxResults{0};
136
137 Aws::String m_nextToken;
138
139 UsageStatisticsSortBy m_sortBy;
140
141 TimeRange m_timeRange{TimeRange::NOT_SET};
142 bool m_filterByHasBeenSet = false;
143 bool m_maxResultsHasBeenSet = false;
144 bool m_nextTokenHasBeenSet = false;
145 bool m_sortByHasBeenSet = false;
146 bool m_timeRangeHasBeenSet = false;
147};
148
149} // namespace Model
150} // namespace Macie2
151} // namespace Aws
GetUsageStatisticsRequest & WithFilterBy(FilterByT &&value)
AWS_MACIE2_API GetUsageStatisticsRequest()=default
const UsageStatisticsSortBy & GetSortBy() const
virtual const char * GetServiceRequestName() const override
GetUsageStatisticsRequest & AddFilterBy(FilterByT &&value)
AWS_MACIE2_API Aws::String SerializePayload() const override
GetUsageStatisticsRequest & WithSortBy(SortByT &&value)
GetUsageStatisticsRequest & WithTimeRange(TimeRange value)
GetUsageStatisticsRequest & WithMaxResults(int value)
GetUsageStatisticsRequest & WithNextToken(NextTokenT &&value)
const Aws::Vector< UsageStatisticsFilter > & GetFilterBy() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector