AWS SDK for C++  1.8.184
AWS SDK for C++
GetUsageStatisticsRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace GuardDuty
17 {
18 namespace Model
19 {
20 
24  {
25  public:
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::String SerializePayload() const override;
35 
36 
41  inline const Aws::String& GetDetectorId() const{ return m_detectorId; }
42 
47  inline bool DetectorIdHasBeenSet() const { return m_detectorIdHasBeenSet; }
48 
53  inline void SetDetectorId(const Aws::String& value) { m_detectorIdHasBeenSet = true; m_detectorId = value; }
54 
59  inline void SetDetectorId(Aws::String&& value) { m_detectorIdHasBeenSet = true; m_detectorId = std::move(value); }
60 
65  inline void SetDetectorId(const char* value) { m_detectorIdHasBeenSet = true; m_detectorId.assign(value); }
66 
71  inline GetUsageStatisticsRequest& WithDetectorId(const Aws::String& value) { SetDetectorId(value); return *this;}
72 
77  inline GetUsageStatisticsRequest& WithDetectorId(Aws::String&& value) { SetDetectorId(std::move(value)); return *this;}
78 
83  inline GetUsageStatisticsRequest& WithDetectorId(const char* value) { SetDetectorId(value); return *this;}
84 
85 
89  inline const UsageStatisticType& GetUsageStatisticType() const{ return m_usageStatisticType; }
90 
94  inline bool UsageStatisticTypeHasBeenSet() const { return m_usageStatisticTypeHasBeenSet; }
95 
99  inline void SetUsageStatisticType(const UsageStatisticType& value) { m_usageStatisticTypeHasBeenSet = true; m_usageStatisticType = value; }
100 
104  inline void SetUsageStatisticType(UsageStatisticType&& value) { m_usageStatisticTypeHasBeenSet = true; m_usageStatisticType = std::move(value); }
105 
109  inline GetUsageStatisticsRequest& WithUsageStatisticType(const UsageStatisticType& value) { SetUsageStatisticType(value); return *this;}
110 
114  inline GetUsageStatisticsRequest& WithUsageStatisticType(UsageStatisticType&& value) { SetUsageStatisticType(std::move(value)); return *this;}
115 
116 
120  inline const UsageCriteria& GetUsageCriteria() const{ return m_usageCriteria; }
121 
125  inline bool UsageCriteriaHasBeenSet() const { return m_usageCriteriaHasBeenSet; }
126 
130  inline void SetUsageCriteria(const UsageCriteria& value) { m_usageCriteriaHasBeenSet = true; m_usageCriteria = value; }
131 
135  inline void SetUsageCriteria(UsageCriteria&& value) { m_usageCriteriaHasBeenSet = true; m_usageCriteria = std::move(value); }
136 
140  inline GetUsageStatisticsRequest& WithUsageCriteria(const UsageCriteria& value) { SetUsageCriteria(value); return *this;}
141 
145  inline GetUsageStatisticsRequest& WithUsageCriteria(UsageCriteria&& value) { SetUsageCriteria(std::move(value)); return *this;}
146 
147 
152  inline const Aws::String& GetUnit() const{ return m_unit; }
153 
158  inline bool UnitHasBeenSet() const { return m_unitHasBeenSet; }
159 
164  inline void SetUnit(const Aws::String& value) { m_unitHasBeenSet = true; m_unit = value; }
165 
170  inline void SetUnit(Aws::String&& value) { m_unitHasBeenSet = true; m_unit = std::move(value); }
171 
176  inline void SetUnit(const char* value) { m_unitHasBeenSet = true; m_unit.assign(value); }
177 
182  inline GetUsageStatisticsRequest& WithUnit(const Aws::String& value) { SetUnit(value); return *this;}
183 
188  inline GetUsageStatisticsRequest& WithUnit(Aws::String&& value) { SetUnit(std::move(value)); return *this;}
189 
194  inline GetUsageStatisticsRequest& WithUnit(const char* value) { SetUnit(value); return *this;}
195 
196 
200  inline int GetMaxResults() const{ return m_maxResults; }
201 
205  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
206 
210  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
211 
215  inline GetUsageStatisticsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
216 
217 
224  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
225 
232  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
233 
240  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
241 
248  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
249 
256  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
257 
264  inline GetUsageStatisticsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
265 
272  inline GetUsageStatisticsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
273 
280  inline GetUsageStatisticsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
281 
282  private:
283 
284  Aws::String m_detectorId;
285  bool m_detectorIdHasBeenSet;
286 
287  UsageStatisticType m_usageStatisticType;
288  bool m_usageStatisticTypeHasBeenSet;
289 
290  UsageCriteria m_usageCriteria;
291  bool m_usageCriteriaHasBeenSet;
292 
293  Aws::String m_unit;
294  bool m_unitHasBeenSet;
295 
296  int m_maxResults;
297  bool m_maxResultsHasBeenSet;
298 
299  Aws::String m_nextToken;
300  bool m_nextTokenHasBeenSet;
301  };
302 
303 } // namespace Model
304 } // namespace GuardDuty
305 } // namespace Aws
Aws::GuardDuty::Model::GetUsageStatisticsRequest::GetUsageCriteria
const UsageCriteria & GetUsageCriteria() const
Definition: GetUsageStatisticsRequest.h:120
Aws::GuardDuty::Model::UsageCriteria
Definition: UsageCriteria.h:35
Aws::GuardDuty::Model::GetUsageStatisticsRequest::WithDetectorId
GetUsageStatisticsRequest & WithDetectorId(const Aws::String &value)
Definition: GetUsageStatisticsRequest.h:71
Aws::GuardDuty::Model::GetUsageStatisticsRequest::WithUsageCriteria
GetUsageStatisticsRequest & WithUsageCriteria(UsageCriteria &&value)
Definition: GetUsageStatisticsRequest.h:145
Aws::GuardDuty::Model::GetUsageStatisticsRequest::SetDetectorId
void SetDetectorId(Aws::String &&value)
Definition: GetUsageStatisticsRequest.h:59
Aws::GuardDuty::Model::GetUsageStatisticsRequest::GetUsageStatisticsRequest
GetUsageStatisticsRequest()
Aws::GuardDuty::Model::UsageStatisticType
UsageStatisticType
Definition: UsageStatisticType.h:17
Aws::GuardDuty::Model::GetUsageStatisticsRequest::SetMaxResults
void SetMaxResults(int value)
Definition: GetUsageStatisticsRequest.h:210
Aws::GuardDuty::Model::GetUsageStatisticsRequest::SetUsageStatisticType
void SetUsageStatisticType(const UsageStatisticType &value)
Definition: GetUsageStatisticsRequest.h:99
Aws::GuardDuty::Model::GetUsageStatisticsRequest::GetUsageStatisticType
const UsageStatisticType & GetUsageStatisticType() const
Definition: GetUsageStatisticsRequest.h:89
Aws::GuardDuty::Model::GetUsageStatisticsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: GetUsageStatisticsRequest.h:32
Aws::GuardDuty::Model::GetUsageStatisticsRequest::WithMaxResults
GetUsageStatisticsRequest & WithMaxResults(int value)
Definition: GetUsageStatisticsRequest.h:215
Aws::GuardDuty::Model::GetUsageStatisticsRequest::WithUsageStatisticType
GetUsageStatisticsRequest & WithUsageStatisticType(const UsageStatisticType &value)
Definition: GetUsageStatisticsRequest.h:109
Aws::GuardDuty::Model::GetUsageStatisticsRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: GetUsageStatisticsRequest.h:232
Aws::GuardDuty::Model::GetUsageStatisticsRequest
Definition: GetUsageStatisticsRequest.h:24
Aws::GuardDuty::Model::GetUsageStatisticsRequest::WithUsageStatisticType
GetUsageStatisticsRequest & WithUsageStatisticType(UsageStatisticType &&value)
Definition: GetUsageStatisticsRequest.h:114
Aws::GuardDuty::Model::GetUsageStatisticsRequest::WithUnit
GetUsageStatisticsRequest & WithUnit(const Aws::String &value)
Definition: GetUsageStatisticsRequest.h:182
Aws::GuardDuty::Model::GetUsageStatisticsRequest::WithNextToken
GetUsageStatisticsRequest & WithNextToken(const Aws::String &value)
Definition: GetUsageStatisticsRequest.h:264
GuardDuty_EXPORTS.h
Aws::GuardDuty::Model::GetUsageStatisticsRequest::WithNextToken
GetUsageStatisticsRequest & WithNextToken(Aws::String &&value)
Definition: GetUsageStatisticsRequest.h:272
Aws::GuardDuty::Model::GetUsageStatisticsRequest::WithUnit
GetUsageStatisticsRequest & WithUnit(Aws::String &&value)
Definition: GetUsageStatisticsRequest.h:188
Aws::GuardDuty::Model::GetUsageStatisticsRequest::GetMaxResults
int GetMaxResults() const
Definition: GetUsageStatisticsRequest.h:200
Aws::GuardDuty::Model::GetUsageStatisticsRequest::SetUsageStatisticType
void SetUsageStatisticType(UsageStatisticType &&value)
Definition: GetUsageStatisticsRequest.h:104
Aws::GuardDuty::Model::GetUsageStatisticsRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: GetUsageStatisticsRequest.h:224
Aws::GuardDuty::Model::GetUsageStatisticsRequest::SetUnit
void SetUnit(const Aws::String &value)
Definition: GetUsageStatisticsRequest.h:164
AWS_GUARDDUTY_API
#define AWS_GUARDDUTY_API
Definition: GuardDuty_EXPORTS.h:28
Aws::GuardDuty::Model::GetUsageStatisticsRequest::UnitHasBeenSet
bool UnitHasBeenSet() const
Definition: GetUsageStatisticsRequest.h:158
UsageStatisticType.h
UsageCriteria.h
AWSString.h
Aws::GuardDuty::Model::GetUsageStatisticsRequest::WithDetectorId
GetUsageStatisticsRequest & WithDetectorId(const char *value)
Definition: GetUsageStatisticsRequest.h:83
Aws::GuardDuty::Model::GetUsageStatisticsRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: GetUsageStatisticsRequest.h:248
Aws::GuardDuty::Model::GetUsageStatisticsRequest::SetDetectorId
void SetDetectorId(const Aws::String &value)
Definition: GetUsageStatisticsRequest.h:53
Aws::GuardDuty::Model::GetUsageStatisticsRequest::WithNextToken
GetUsageStatisticsRequest & WithNextToken(const char *value)
Definition: GetUsageStatisticsRequest.h:280
Aws::GuardDuty::Model::GetUsageStatisticsRequest::SetUsageCriteria
void SetUsageCriteria(const UsageCriteria &value)
Definition: GetUsageStatisticsRequest.h:130
Aws::GuardDuty::Model::GetUsageStatisticsRequest::DetectorIdHasBeenSet
bool DetectorIdHasBeenSet() const
Definition: GetUsageStatisticsRequest.h:47
Aws::GuardDuty::Model::GetUsageStatisticsRequest::SetUnit
void SetUnit(Aws::String &&value)
Definition: GetUsageStatisticsRequest.h:170
Aws::GuardDuty::Model::GetUsageStatisticsRequest::GetDetectorId
const Aws::String & GetDetectorId() const
Definition: GetUsageStatisticsRequest.h:41
Aws::GuardDuty::Model::GetUsageStatisticsRequest::UsageStatisticTypeHasBeenSet
bool UsageStatisticTypeHasBeenSet() const
Definition: GetUsageStatisticsRequest.h:94
Aws::GuardDuty::Model::GetUsageStatisticsRequest::UsageCriteriaHasBeenSet
bool UsageCriteriaHasBeenSet() const
Definition: GetUsageStatisticsRequest.h:125
Aws::GuardDuty::Model::GetUsageStatisticsRequest::SetDetectorId
void SetDetectorId(const char *value)
Definition: GetUsageStatisticsRequest.h:65
Aws::GuardDuty::Model::GetUsageStatisticsRequest::SetNextToken
void SetNextToken(const char *value)
Definition: GetUsageStatisticsRequest.h:256
Aws::GuardDuty::Model::GetUsageStatisticsRequest::SetUsageCriteria
void SetUsageCriteria(UsageCriteria &&value)
Definition: GetUsageStatisticsRequest.h:135
Aws::GuardDuty::Model::GetUsageStatisticsRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: GetUsageStatisticsRequest.h:205
Aws
Definition: AccessManagementClient.h:15
GuardDutyRequest.h
Aws::GuardDuty::Model::GetUsageStatisticsRequest::WithUnit
GetUsageStatisticsRequest & WithUnit(const char *value)
Definition: GetUsageStatisticsRequest.h:194
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::GuardDuty::Model::GetUsageStatisticsRequest::GetUnit
const Aws::String & GetUnit() const
Definition: GetUsageStatisticsRequest.h:152
Aws::GuardDuty::GuardDutyRequest
Definition: GuardDutyRequest.h:17
Aws::GuardDuty::Model::GetUsageStatisticsRequest::WithDetectorId
GetUsageStatisticsRequest & WithDetectorId(Aws::String &&value)
Definition: GetUsageStatisticsRequest.h:77
Aws::GuardDuty::Model::GetUsageStatisticsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::GuardDuty::Model::GetUsageStatisticsRequest::SetUnit
void SetUnit(const char *value)
Definition: GetUsageStatisticsRequest.h:176
Aws::GuardDuty::Model::GetUsageStatisticsRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: GetUsageStatisticsRequest.h:240
Aws::GuardDuty::Model::GetUsageStatisticsRequest::WithUsageCriteria
GetUsageStatisticsRequest & WithUsageCriteria(const UsageCriteria &value)
Definition: GetUsageStatisticsRequest.h:140