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/guardduty/GuardDutyRequest.h>
9#include <aws/guardduty/GuardDuty_EXPORTS.h>
10#include <aws/guardduty/model/UsageCriteria.h>
11#include <aws/guardduty/model/UsageStatisticType.h>
12
13#include <utility>
14
15namespace Aws {
16namespace GuardDuty {
17namespace Model {
18
22 public:
23 AWS_GUARDDUTY_API GetUsageStatisticsRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "GetUsageStatistics"; }
30
31 AWS_GUARDDUTY_API Aws::String SerializePayload() const override;
32
34
42 inline const Aws::String& GetDetectorId() const { return m_detectorId; }
43 inline bool DetectorIdHasBeenSet() const { return m_detectorIdHasBeenSet; }
44 template <typename DetectorIdT = Aws::String>
45 void SetDetectorId(DetectorIdT&& value) {
46 m_detectorIdHasBeenSet = true;
47 m_detectorId = std::forward<DetectorIdT>(value);
48 }
49 template <typename DetectorIdT = Aws::String>
51 SetDetectorId(std::forward<DetectorIdT>(value));
52 return *this;
53 }
55
57
60 inline UsageStatisticType GetUsageStatisticType() const { return m_usageStatisticType; }
61 inline bool UsageStatisticTypeHasBeenSet() const { return m_usageStatisticTypeHasBeenSet; }
63 m_usageStatisticTypeHasBeenSet = true;
64 m_usageStatisticType = value;
65 }
68 return *this;
69 }
71
73
76 inline const UsageCriteria& GetUsageCriteria() const { return m_usageCriteria; }
77 inline bool UsageCriteriaHasBeenSet() const { return m_usageCriteriaHasBeenSet; }
78 template <typename UsageCriteriaT = UsageCriteria>
79 void SetUsageCriteria(UsageCriteriaT&& value) {
80 m_usageCriteriaHasBeenSet = true;
81 m_usageCriteria = std::forward<UsageCriteriaT>(value);
82 }
83 template <typename UsageCriteriaT = UsageCriteria>
85 SetUsageCriteria(std::forward<UsageCriteriaT>(value));
86 return *this;
87 }
89
91
95 inline const Aws::String& GetUnit() const { return m_unit; }
96 inline bool UnitHasBeenSet() const { return m_unitHasBeenSet; }
97 template <typename UnitT = Aws::String>
98 void SetUnit(UnitT&& value) {
99 m_unitHasBeenSet = true;
100 m_unit = std::forward<UnitT>(value);
101 }
102 template <typename UnitT = Aws::String>
104 SetUnit(std::forward<UnitT>(value));
105 return *this;
106 }
108
110
113 inline int GetMaxResults() const { return m_maxResults; }
114 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
115 inline void SetMaxResults(int value) {
116 m_maxResultsHasBeenSet = true;
117 m_maxResults = value;
118 }
120 SetMaxResults(value);
121 return *this;
122 }
124
126
132 inline const Aws::String& GetNextToken() const { return m_nextToken; }
133 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
134 template <typename NextTokenT = Aws::String>
135 void SetNextToken(NextTokenT&& value) {
136 m_nextTokenHasBeenSet = true;
137 m_nextToken = std::forward<NextTokenT>(value);
138 }
139 template <typename NextTokenT = Aws::String>
141 SetNextToken(std::forward<NextTokenT>(value));
142 return *this;
143 }
145 private:
146 Aws::String m_detectorId;
147
149
150 UsageCriteria m_usageCriteria;
151
152 Aws::String m_unit;
153
154 int m_maxResults{0};
155
156 Aws::String m_nextToken;
157 bool m_detectorIdHasBeenSet = false;
158 bool m_usageStatisticTypeHasBeenSet = false;
159 bool m_usageCriteriaHasBeenSet = false;
160 bool m_unitHasBeenSet = false;
161 bool m_maxResultsHasBeenSet = false;
162 bool m_nextTokenHasBeenSet = false;
163};
164
165} // namespace Model
166} // namespace GuardDuty
167} // namespace Aws
GetUsageStatisticsRequest & WithDetectorId(DetectorIdT &&value)
GetUsageStatisticsRequest & WithNextToken(NextTokenT &&value)
AWS_GUARDDUTY_API Aws::String SerializePayload() const override
GetUsageStatisticsRequest & WithUsageStatisticType(UsageStatisticType value)
GetUsageStatisticsRequest & WithUnit(UnitT &&value)
GetUsageStatisticsRequest & WithUsageCriteria(UsageCriteriaT &&value)
GetUsageStatisticsRequest & WithMaxResults(int value)
AWS_GUARDDUTY_API GetUsageStatisticsRequest()=default
virtual const char * GetServiceRequestName() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String