AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
GetFindingsRequest.h
1
6#pragma once
7#include <aws/codeguru-security/CodeGuruSecurityRequest.h>
8#include <aws/codeguru-security/CodeGuruSecurity_EXPORTS.h>
9#include <aws/codeguru-security/model/Status.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Http {
16class URI;
17} // namespace Http
18namespace CodeGuruSecurity {
19namespace Model {
20
24 public:
25 AWS_CODEGURUSECURITY_API GetFindingsRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "GetFindings"; }
32
33 AWS_CODEGURUSECURITY_API Aws::String SerializePayload() const override;
34
35 AWS_CODEGURUSECURITY_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
36
38
41 inline const Aws::String& GetScanName() const { return m_scanName; }
42 inline bool ScanNameHasBeenSet() const { return m_scanNameHasBeenSet; }
43 template <typename ScanNameT = Aws::String>
44 void SetScanName(ScanNameT&& value) {
45 m_scanNameHasBeenSet = true;
46 m_scanName = std::forward<ScanNameT>(value);
47 }
48 template <typename ScanNameT = Aws::String>
49 GetFindingsRequest& WithScanName(ScanNameT&& value) {
50 SetScanName(std::forward<ScanNameT>(value));
51 return *this;
52 }
54
56
62 inline const Aws::String& GetNextToken() const { return m_nextToken; }
63 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
64 template <typename NextTokenT = Aws::String>
65 void SetNextToken(NextTokenT&& value) {
66 m_nextTokenHasBeenSet = true;
67 m_nextToken = std::forward<NextTokenT>(value);
68 }
69 template <typename NextTokenT = Aws::String>
70 GetFindingsRequest& WithNextToken(NextTokenT&& value) {
71 SetNextToken(std::forward<NextTokenT>(value));
72 return *this;
73 }
75
77
84 inline int GetMaxResults() const { return m_maxResults; }
85 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
86 inline void SetMaxResults(int value) {
87 m_maxResultsHasBeenSet = true;
88 m_maxResults = value;
89 }
91 SetMaxResults(value);
92 return *this;
93 }
95
97
101 inline Status GetStatus() const { return m_status; }
102 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
103 inline void SetStatus(Status value) {
104 m_statusHasBeenSet = true;
105 m_status = value;
106 }
108 SetStatus(value);
109 return *this;
110 }
112 private:
113 Aws::String m_scanName;
114
115 Aws::String m_nextToken;
116
117 int m_maxResults{0};
118
119 Status m_status{Status::NOT_SET};
120 bool m_scanNameHasBeenSet = false;
121 bool m_nextTokenHasBeenSet = false;
122 bool m_maxResultsHasBeenSet = false;
123 bool m_statusHasBeenSet = false;
124};
125
126} // namespace Model
127} // namespace CodeGuruSecurity
128} // namespace Aws
GetFindingsRequest & WithScanName(ScanNameT &&value)
AWS_CODEGURUSECURITY_API GetFindingsRequest()=default
AWS_CODEGURUSECURITY_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
AWS_CODEGURUSECURITY_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
GetFindingsRequest & WithStatus(Status value)
GetFindingsRequest & WithNextToken(NextTokenT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String