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/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() = default;
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
46 inline const Aws::String& GetDetectorId() const { return m_detectorId; }
47 inline bool DetectorIdHasBeenSet() const { return m_detectorIdHasBeenSet; }
48 template<typename DetectorIdT = Aws::String>
49 void SetDetectorId(DetectorIdT&& value) { m_detectorIdHasBeenSet = true; m_detectorId = std::forward<DetectorIdT>(value); }
50 template<typename DetectorIdT = Aws::String>
51 GetUsageStatisticsRequest& WithDetectorId(DetectorIdT&& value) { SetDetectorId(std::forward<DetectorIdT>(value)); return *this;}
53
55
58 inline UsageStatisticType GetUsageStatisticType() const { return m_usageStatisticType; }
59 inline bool UsageStatisticTypeHasBeenSet() const { return m_usageStatisticTypeHasBeenSet; }
60 inline void SetUsageStatisticType(UsageStatisticType value) { m_usageStatisticTypeHasBeenSet = true; m_usageStatisticType = value; }
63
65
68 inline const UsageCriteria& GetUsageCriteria() const { return m_usageCriteria; }
69 inline bool UsageCriteriaHasBeenSet() const { return m_usageCriteriaHasBeenSet; }
70 template<typename UsageCriteriaT = UsageCriteria>
71 void SetUsageCriteria(UsageCriteriaT&& value) { m_usageCriteriaHasBeenSet = true; m_usageCriteria = std::forward<UsageCriteriaT>(value); }
72 template<typename UsageCriteriaT = UsageCriteria>
73 GetUsageStatisticsRequest& WithUsageCriteria(UsageCriteriaT&& value) { SetUsageCriteria(std::forward<UsageCriteriaT>(value)); return *this;}
75
77
81 inline const Aws::String& GetUnit() const { return m_unit; }
82 inline bool UnitHasBeenSet() const { return m_unitHasBeenSet; }
83 template<typename UnitT = Aws::String>
84 void SetUnit(UnitT&& value) { m_unitHasBeenSet = true; m_unit = std::forward<UnitT>(value); }
85 template<typename UnitT = Aws::String>
86 GetUsageStatisticsRequest& WithUnit(UnitT&& value) { SetUnit(std::forward<UnitT>(value)); return *this;}
88
90
93 inline int GetMaxResults() const { return m_maxResults; }
94 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
95 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
96 inline GetUsageStatisticsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
98
100
106 inline const Aws::String& GetNextToken() const { return m_nextToken; }
107 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
108 template<typename NextTokenT = Aws::String>
109 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
110 template<typename NextTokenT = Aws::String>
111 GetUsageStatisticsRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
113 private:
114
115 Aws::String m_detectorId;
116 bool m_detectorIdHasBeenSet = false;
117
119 bool m_usageStatisticTypeHasBeenSet = false;
120
121 UsageCriteria m_usageCriteria;
122 bool m_usageCriteriaHasBeenSet = false;
123
124 Aws::String m_unit;
125 bool m_unitHasBeenSet = false;
126
127 int m_maxResults{0};
128 bool m_maxResultsHasBeenSet = false;
129
130 Aws::String m_nextToken;
131 bool m_nextTokenHasBeenSet = false;
132 };
133
134} // namespace Model
135} // namespace GuardDuty
136} // 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