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/guardduty/GuardDuty_EXPORTS.h>
8#include <aws/guardduty/GuardDutyRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/guardduty/model/UsageStatisticType.h>
11#include <aws/guardduty/model/UsageCriteria.h>
12#include <utility>
13
14namespace Aws
15{
16namespace GuardDuty
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_GUARDDUTY_API GetUsageStatisticsRequest();
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 "GetUsageStatistics"; }
33
34 AWS_GUARDDUTY_API Aws::String SerializePayload() const override;
35
36
38
42 inline const Aws::String& GetDetectorId() const{ return m_detectorId; }
43 inline bool DetectorIdHasBeenSet() const { return m_detectorIdHasBeenSet; }
44 inline void SetDetectorId(const Aws::String& value) { m_detectorIdHasBeenSet = true; m_detectorId = value; }
45 inline void SetDetectorId(Aws::String&& value) { m_detectorIdHasBeenSet = true; m_detectorId = std::move(value); }
46 inline void SetDetectorId(const char* value) { m_detectorIdHasBeenSet = true; m_detectorId.assign(value); }
47 inline GetUsageStatisticsRequest& WithDetectorId(const Aws::String& value) { SetDetectorId(value); return *this;}
48 inline GetUsageStatisticsRequest& WithDetectorId(Aws::String&& value) { SetDetectorId(std::move(value)); return *this;}
49 inline GetUsageStatisticsRequest& WithDetectorId(const char* value) { SetDetectorId(value); return *this;}
51
53
56 inline const UsageStatisticType& GetUsageStatisticType() const{ return m_usageStatisticType; }
57 inline bool UsageStatisticTypeHasBeenSet() const { return m_usageStatisticTypeHasBeenSet; }
58 inline void SetUsageStatisticType(const UsageStatisticType& value) { m_usageStatisticTypeHasBeenSet = true; m_usageStatisticType = value; }
59 inline void SetUsageStatisticType(UsageStatisticType&& value) { m_usageStatisticTypeHasBeenSet = true; m_usageStatisticType = std::move(value); }
63
65
68 inline const UsageCriteria& GetUsageCriteria() const{ return m_usageCriteria; }
69 inline bool UsageCriteriaHasBeenSet() const { return m_usageCriteriaHasBeenSet; }
70 inline void SetUsageCriteria(const UsageCriteria& value) { m_usageCriteriaHasBeenSet = true; m_usageCriteria = value; }
71 inline void SetUsageCriteria(UsageCriteria&& value) { m_usageCriteriaHasBeenSet = true; m_usageCriteria = std::move(value); }
72 inline GetUsageStatisticsRequest& WithUsageCriteria(const UsageCriteria& value) { SetUsageCriteria(value); return *this;}
73 inline GetUsageStatisticsRequest& WithUsageCriteria(UsageCriteria&& value) { SetUsageCriteria(std::move(value)); return *this;}
75
77
81 inline const Aws::String& GetUnit() const{ return m_unit; }
82 inline bool UnitHasBeenSet() const { return m_unitHasBeenSet; }
83 inline void SetUnit(const Aws::String& value) { m_unitHasBeenSet = true; m_unit = value; }
84 inline void SetUnit(Aws::String&& value) { m_unitHasBeenSet = true; m_unit = std::move(value); }
85 inline void SetUnit(const char* value) { m_unitHasBeenSet = true; m_unit.assign(value); }
86 inline GetUsageStatisticsRequest& WithUnit(const Aws::String& value) { SetUnit(value); return *this;}
87 inline GetUsageStatisticsRequest& WithUnit(Aws::String&& value) { SetUnit(std::move(value)); return *this;}
88 inline GetUsageStatisticsRequest& WithUnit(const char* value) { SetUnit(value); return *this;}
90
92
95 inline int GetMaxResults() const{ return m_maxResults; }
96 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
97 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
98 inline GetUsageStatisticsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
100
102
108 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
109 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
110 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
111 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
112 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
113 inline GetUsageStatisticsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
114 inline GetUsageStatisticsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
115 inline GetUsageStatisticsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
117 private:
118
119 Aws::String m_detectorId;
120 bool m_detectorIdHasBeenSet = false;
121
122 UsageStatisticType m_usageStatisticType;
123 bool m_usageStatisticTypeHasBeenSet = false;
124
125 UsageCriteria m_usageCriteria;
126 bool m_usageCriteriaHasBeenSet = false;
127
128 Aws::String m_unit;
129 bool m_unitHasBeenSet = false;
130
131 int m_maxResults;
132 bool m_maxResultsHasBeenSet = false;
133
134 Aws::String m_nextToken;
135 bool m_nextTokenHasBeenSet = false;
136 };
137
138} // namespace Model
139} // namespace GuardDuty
140} // namespace Aws
GetUsageStatisticsRequest & WithDetectorId(const char *value)
GetUsageStatisticsRequest & WithUnit(const Aws::String &value)
GetUsageStatisticsRequest & WithNextToken(Aws::String &&value)
GetUsageStatisticsRequest & WithNextToken(const char *value)
AWS_GUARDDUTY_API Aws::String SerializePayload() const override
GetUsageStatisticsRequest & WithUsageStatisticType(UsageStatisticType &&value)
GetUsageStatisticsRequest & WithUsageCriteria(UsageCriteria &&value)
GetUsageStatisticsRequest & WithDetectorId(Aws::String &&value)
void SetUsageStatisticType(const UsageStatisticType &value)
GetUsageStatisticsRequest & WithUsageStatisticType(const UsageStatisticType &value)
GetUsageStatisticsRequest & WithDetectorId(const Aws::String &value)
GetUsageStatisticsRequest & WithUnit(Aws::String &&value)
GetUsageStatisticsRequest & WithUsageCriteria(const UsageCriteria &value)
GetUsageStatisticsRequest & WithMaxResults(int value)
GetUsageStatisticsRequest & WithUnit(const char *value)
GetUsageStatisticsRequest & WithNextToken(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String