AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
GetUsageStatisticsRequest.h
1
6#pragma once
7#include <aws/macie2/Macie2_EXPORTS.h>
8#include <aws/macie2/Macie2Request.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/macie2/model/UsageStatisticsSortBy.h>
12#include <aws/macie2/model/TimeRange.h>
13#include <aws/macie2/model/UsageStatisticsFilter.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Macie2
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_MACIE2_API GetUsageStatisticsRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "GetUsageStatistics"; }
35
36 AWS_MACIE2_API Aws::String SerializePayload() const override;
37
38
40
45 inline const Aws::Vector<UsageStatisticsFilter>& GetFilterBy() const { return m_filterBy; }
46 inline bool FilterByHasBeenSet() const { return m_filterByHasBeenSet; }
47 template<typename FilterByT = Aws::Vector<UsageStatisticsFilter>>
48 void SetFilterBy(FilterByT&& value) { m_filterByHasBeenSet = true; m_filterBy = std::forward<FilterByT>(value); }
49 template<typename FilterByT = Aws::Vector<UsageStatisticsFilter>>
50 GetUsageStatisticsRequest& WithFilterBy(FilterByT&& value) { SetFilterBy(std::forward<FilterByT>(value)); return *this;}
51 template<typename FilterByT = UsageStatisticsFilter>
52 GetUsageStatisticsRequest& AddFilterBy(FilterByT&& value) { m_filterByHasBeenSet = true; m_filterBy.emplace_back(std::forward<FilterByT>(value)); return *this; }
54
56
59 inline int GetMaxResults() const { return m_maxResults; }
60 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
61 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
62 inline GetUsageStatisticsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
64
66
70 inline const Aws::String& GetNextToken() const { return m_nextToken; }
71 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
72 template<typename NextTokenT = Aws::String>
73 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
74 template<typename NextTokenT = Aws::String>
75 GetUsageStatisticsRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
77
79
82 inline const UsageStatisticsSortBy& GetSortBy() const { return m_sortBy; }
83 inline bool SortByHasBeenSet() const { return m_sortByHasBeenSet; }
84 template<typename SortByT = UsageStatisticsSortBy>
85 void SetSortBy(SortByT&& value) { m_sortByHasBeenSet = true; m_sortBy = std::forward<SortByT>(value); }
86 template<typename SortByT = UsageStatisticsSortBy>
87 GetUsageStatisticsRequest& WithSortBy(SortByT&& value) { SetSortBy(std::forward<SortByT>(value)); return *this;}
89
91
97 inline TimeRange GetTimeRange() const { return m_timeRange; }
98 inline bool TimeRangeHasBeenSet() const { return m_timeRangeHasBeenSet; }
99 inline void SetTimeRange(TimeRange value) { m_timeRangeHasBeenSet = true; m_timeRange = value; }
100 inline GetUsageStatisticsRequest& WithTimeRange(TimeRange value) { SetTimeRange(value); return *this;}
102 private:
103
105 bool m_filterByHasBeenSet = false;
106
107 int m_maxResults{0};
108 bool m_maxResultsHasBeenSet = false;
109
110 Aws::String m_nextToken;
111 bool m_nextTokenHasBeenSet = false;
112
113 UsageStatisticsSortBy m_sortBy;
114 bool m_sortByHasBeenSet = false;
115
116 TimeRange m_timeRange{TimeRange::NOT_SET};
117 bool m_timeRangeHasBeenSet = false;
118 };
119
120} // namespace Model
121} // namespace Macie2
122} // 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