AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetFilterBy(const Aws::Vector<UsageStatisticsFilter>& value) { m_filterByHasBeenSet = true; m_filterBy = value; }
48 inline void SetFilterBy(Aws::Vector<UsageStatisticsFilter>&& value) { m_filterByHasBeenSet = true; m_filterBy = std::move(value); }
50 inline GetUsageStatisticsRequest& WithFilterBy(Aws::Vector<UsageStatisticsFilter>&& value) { SetFilterBy(std::move(value)); return *this;}
51 inline GetUsageStatisticsRequest& AddFilterBy(const UsageStatisticsFilter& value) { m_filterByHasBeenSet = true; m_filterBy.push_back(value); return *this; }
52 inline GetUsageStatisticsRequest& AddFilterBy(UsageStatisticsFilter&& value) { m_filterByHasBeenSet = true; m_filterBy.push_back(std::move(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 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
73 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
74 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
75 inline GetUsageStatisticsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
76 inline GetUsageStatisticsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
77 inline GetUsageStatisticsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
79
81
84 inline const UsageStatisticsSortBy& GetSortBy() const{ return m_sortBy; }
85 inline bool SortByHasBeenSet() const { return m_sortByHasBeenSet; }
86 inline void SetSortBy(const UsageStatisticsSortBy& value) { m_sortByHasBeenSet = true; m_sortBy = value; }
87 inline void SetSortBy(UsageStatisticsSortBy&& value) { m_sortByHasBeenSet = true; m_sortBy = std::move(value); }
88 inline GetUsageStatisticsRequest& WithSortBy(const UsageStatisticsSortBy& value) { SetSortBy(value); return *this;}
89 inline GetUsageStatisticsRequest& WithSortBy(UsageStatisticsSortBy&& value) { SetSortBy(std::move(value)); return *this;}
91
93
99 inline const TimeRange& GetTimeRange() const{ return m_timeRange; }
100 inline bool TimeRangeHasBeenSet() const { return m_timeRangeHasBeenSet; }
101 inline void SetTimeRange(const TimeRange& value) { m_timeRangeHasBeenSet = true; m_timeRange = value; }
102 inline void SetTimeRange(TimeRange&& value) { m_timeRangeHasBeenSet = true; m_timeRange = std::move(value); }
103 inline GetUsageStatisticsRequest& WithTimeRange(const TimeRange& value) { SetTimeRange(value); return *this;}
104 inline GetUsageStatisticsRequest& WithTimeRange(TimeRange&& value) { SetTimeRange(std::move(value)); return *this;}
106 private:
107
109 bool m_filterByHasBeenSet = false;
110
111 int m_maxResults;
112 bool m_maxResultsHasBeenSet = false;
113
114 Aws::String m_nextToken;
115 bool m_nextTokenHasBeenSet = false;
116
117 UsageStatisticsSortBy m_sortBy;
118 bool m_sortByHasBeenSet = false;
119
120 TimeRange m_timeRange;
121 bool m_timeRangeHasBeenSet = false;
122 };
123
124} // namespace Model
125} // namespace Macie2
126} // namespace Aws
void SetSortBy(const UsageStatisticsSortBy &value)
GetUsageStatisticsRequest & AddFilterBy(const UsageStatisticsFilter &value)
GetUsageStatisticsRequest & WithNextToken(const char *value)
GetUsageStatisticsRequest & WithFilterBy(Aws::Vector< UsageStatisticsFilter > &&value)
GetUsageStatisticsRequest & AddFilterBy(UsageStatisticsFilter &&value)
GetUsageStatisticsRequest & WithNextToken(Aws::String &&value)
const UsageStatisticsSortBy & GetSortBy() const
void SetFilterBy(const Aws::Vector< UsageStatisticsFilter > &value)
GetUsageStatisticsRequest & WithFilterBy(const Aws::Vector< UsageStatisticsFilter > &value)
GetUsageStatisticsRequest & WithNextToken(const Aws::String &value)
GetUsageStatisticsRequest & WithTimeRange(const TimeRange &value)
virtual const char * GetServiceRequestName() const override
GetUsageStatisticsRequest & WithTimeRange(TimeRange &&value)
AWS_MACIE2_API Aws::String SerializePayload() const override
void SetFilterBy(Aws::Vector< UsageStatisticsFilter > &&value)
GetUsageStatisticsRequest & WithSortBy(UsageStatisticsSortBy &&value)
GetUsageStatisticsRequest & WithSortBy(const UsageStatisticsSortBy &value)
GetUsageStatisticsRequest & WithMaxResults(int 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