AWS SDK for C++  1.8.71
AWS SDK for C++
GetFindingsStatisticsRequest.h
Go to the documentation of this file.
1 
6 #pragma once
13 #include <utility>
14 
15 namespace Aws
16 {
17 namespace GuardDuty
18 {
19 namespace Model
20 {
21 
25  {
26  public:
28 
29  // Service request name is the Operation name which will send this request out,
30  // each operation should has unique request name, so that we can get operation's name from this request.
31  // Note: this is not true for response, multiple operations may have the same response name,
32  // so we can not get operation's name from response.
33  inline virtual const char* GetServiceRequestName() const override { return "GetFindingsStatistics"; }
34 
35  Aws::String SerializePayload() const override;
36 
37 
42  inline const Aws::String& GetDetectorId() const{ return m_detectorId; }
43 
48  inline bool DetectorIdHasBeenSet() const { return m_detectorIdHasBeenSet; }
49 
54  inline void SetDetectorId(const Aws::String& value) { m_detectorIdHasBeenSet = true; m_detectorId = value; }
55 
60  inline void SetDetectorId(Aws::String&& value) { m_detectorIdHasBeenSet = true; m_detectorId = std::move(value); }
61 
66  inline void SetDetectorId(const char* value) { m_detectorIdHasBeenSet = true; m_detectorId.assign(value); }
67 
72  inline GetFindingsStatisticsRequest& WithDetectorId(const Aws::String& value) { SetDetectorId(value); return *this;}
73 
78  inline GetFindingsStatisticsRequest& WithDetectorId(Aws::String&& value) { SetDetectorId(std::move(value)); return *this;}
79 
84  inline GetFindingsStatisticsRequest& WithDetectorId(const char* value) { SetDetectorId(value); return *this;}
85 
86 
90  inline const Aws::Vector<FindingStatisticType>& GetFindingStatisticTypes() const{ return m_findingStatisticTypes; }
91 
95  inline bool FindingStatisticTypesHasBeenSet() const { return m_findingStatisticTypesHasBeenSet; }
96 
100  inline void SetFindingStatisticTypes(const Aws::Vector<FindingStatisticType>& value) { m_findingStatisticTypesHasBeenSet = true; m_findingStatisticTypes = value; }
101 
105  inline void SetFindingStatisticTypes(Aws::Vector<FindingStatisticType>&& value) { m_findingStatisticTypesHasBeenSet = true; m_findingStatisticTypes = std::move(value); }
106 
110  inline GetFindingsStatisticsRequest& WithFindingStatisticTypes(const Aws::Vector<FindingStatisticType>& value) { SetFindingStatisticTypes(value); return *this;}
111 
115  inline GetFindingsStatisticsRequest& WithFindingStatisticTypes(Aws::Vector<FindingStatisticType>&& value) { SetFindingStatisticTypes(std::move(value)); return *this;}
116 
120  inline GetFindingsStatisticsRequest& AddFindingStatisticTypes(const FindingStatisticType& value) { m_findingStatisticTypesHasBeenSet = true; m_findingStatisticTypes.push_back(value); return *this; }
121 
125  inline GetFindingsStatisticsRequest& AddFindingStatisticTypes(FindingStatisticType&& value) { m_findingStatisticTypesHasBeenSet = true; m_findingStatisticTypes.push_back(std::move(value)); return *this; }
126 
127 
131  inline const FindingCriteria& GetFindingCriteria() const{ return m_findingCriteria; }
132 
136  inline bool FindingCriteriaHasBeenSet() const { return m_findingCriteriaHasBeenSet; }
137 
141  inline void SetFindingCriteria(const FindingCriteria& value) { m_findingCriteriaHasBeenSet = true; m_findingCriteria = value; }
142 
146  inline void SetFindingCriteria(FindingCriteria&& value) { m_findingCriteriaHasBeenSet = true; m_findingCriteria = std::move(value); }
147 
151  inline GetFindingsStatisticsRequest& WithFindingCriteria(const FindingCriteria& value) { SetFindingCriteria(value); return *this;}
152 
156  inline GetFindingsStatisticsRequest& WithFindingCriteria(FindingCriteria&& value) { SetFindingCriteria(std::move(value)); return *this;}
157 
158  private:
159 
160  Aws::String m_detectorId;
161  bool m_detectorIdHasBeenSet;
162 
163  Aws::Vector<FindingStatisticType> m_findingStatisticTypes;
164  bool m_findingStatisticTypesHasBeenSet;
165 
166  FindingCriteria m_findingCriteria;
167  bool m_findingCriteriaHasBeenSet;
168  };
169 
170 } // namespace Model
171 } // namespace GuardDuty
172 } // namespace Aws
GetFindingsStatisticsRequest & WithDetectorId(const char *value)
GetFindingsStatisticsRequest & WithFindingCriteria(const FindingCriteria &value)
GetFindingsStatisticsRequest & WithFindingStatisticTypes(Aws::Vector< FindingStatisticType > &&value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
const Aws::Vector< FindingStatisticType > & GetFindingStatisticTypes() const
void SetFindingStatisticTypes(const Aws::Vector< FindingStatisticType > &value)
GetFindingsStatisticsRequest & WithFindingCriteria(FindingCriteria &&value)
#define AWS_GUARDDUTY_API
GetFindingsStatisticsRequest & WithDetectorId(Aws::String &&value)
void SetFindingStatisticTypes(Aws::Vector< FindingStatisticType > &&value)
GetFindingsStatisticsRequest & WithFindingStatisticTypes(const Aws::Vector< FindingStatisticType > &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
GetFindingsStatisticsRequest & WithDetectorId(const Aws::String &value)
GetFindingsStatisticsRequest & AddFindingStatisticTypes(const FindingStatisticType &value)
GetFindingsStatisticsRequest & AddFindingStatisticTypes(FindingStatisticType &&value)