AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ListFindingsRequest.h
1
6#pragma once
7#include <aws/inspector/Inspector_EXPORTS.h>
8#include <aws/inspector/InspectorRequest.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/inspector/model/FindingFilter.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Inspector
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_INSPECTOR_API ListFindingsRequest();
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 "ListFindings"; }
33
34 AWS_INSPECTOR_API Aws::String SerializePayload() const override;
35
37
38
40
44 inline const Aws::Vector<Aws::String>& GetAssessmentRunArns() const{ return m_assessmentRunArns; }
45 inline bool AssessmentRunArnsHasBeenSet() const { return m_assessmentRunArnsHasBeenSet; }
46 inline void SetAssessmentRunArns(const Aws::Vector<Aws::String>& value) { m_assessmentRunArnsHasBeenSet = true; m_assessmentRunArns = value; }
47 inline void SetAssessmentRunArns(Aws::Vector<Aws::String>&& value) { m_assessmentRunArnsHasBeenSet = true; m_assessmentRunArns = std::move(value); }
50 inline ListFindingsRequest& AddAssessmentRunArns(const Aws::String& value) { m_assessmentRunArnsHasBeenSet = true; m_assessmentRunArns.push_back(value); return *this; }
51 inline ListFindingsRequest& AddAssessmentRunArns(Aws::String&& value) { m_assessmentRunArnsHasBeenSet = true; m_assessmentRunArns.push_back(std::move(value)); return *this; }
52 inline ListFindingsRequest& AddAssessmentRunArns(const char* value) { m_assessmentRunArnsHasBeenSet = true; m_assessmentRunArns.push_back(value); return *this; }
54
56
62 inline const FindingFilter& GetFilter() const{ return m_filter; }
63 inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; }
64 inline void SetFilter(const FindingFilter& value) { m_filterHasBeenSet = true; m_filter = value; }
65 inline void SetFilter(FindingFilter&& value) { m_filterHasBeenSet = true; m_filter = std::move(value); }
66 inline ListFindingsRequest& WithFilter(const FindingFilter& value) { SetFilter(value); return *this;}
67 inline ListFindingsRequest& WithFilter(FindingFilter&& value) { SetFilter(std::move(value)); return *this;}
69
71
78 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
79 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
80 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
81 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
82 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
83 inline ListFindingsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
84 inline ListFindingsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
85 inline ListFindingsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
87
89
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 ListFindingsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
98 private:
99
100 Aws::Vector<Aws::String> m_assessmentRunArns;
101 bool m_assessmentRunArnsHasBeenSet = false;
102
103 FindingFilter m_filter;
104 bool m_filterHasBeenSet = false;
105
106 Aws::String m_nextToken;
107 bool m_nextTokenHasBeenSet = false;
108
109 int m_maxResults;
110 bool m_maxResultsHasBeenSet = false;
111 };
112
113} // namespace Model
114} // namespace Inspector
115} // namespace Aws
AWS_INSPECTOR_API Aws::String SerializePayload() const override
void SetFilter(const FindingFilter &value)
ListFindingsRequest & AddAssessmentRunArns(const Aws::String &value)
ListFindingsRequest & WithMaxResults(int value)
ListFindingsRequest & AddAssessmentRunArns(const char *value)
ListFindingsRequest & AddAssessmentRunArns(Aws::String &&value)
ListFindingsRequest & WithNextToken(const char *value)
ListFindingsRequest & WithAssessmentRunArns(Aws::Vector< Aws::String > &&value)
ListFindingsRequest & WithNextToken(const Aws::String &value)
void SetAssessmentRunArns(Aws::Vector< Aws::String > &&value)
ListFindingsRequest & WithNextToken(Aws::String &&value)
ListFindingsRequest & WithAssessmentRunArns(const Aws::Vector< Aws::String > &value)
virtual const char * GetServiceRequestName() const override
void SetAssessmentRunArns(const Aws::Vector< Aws::String > &value)
ListFindingsRequest & WithFilter(FindingFilter &&value)
AWS_INSPECTOR_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const Aws::Vector< Aws::String > & GetAssessmentRunArns() const
void SetNextToken(const Aws::String &value)
ListFindingsRequest & WithFilter(const FindingFilter &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector