AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GetFindingsRequest.h
1
6#pragma once
7#include <aws/securityhub/SecurityHub_EXPORTS.h>
8#include <aws/securityhub/SecurityHubRequest.h>
9#include <aws/securityhub/model/AwsSecurityFindingFilters.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/securityhub/model/SortCriterion.h>
13#include <utility>
14
15namespace Aws
16{
17namespace SecurityHub
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_SECURITYHUB_API GetFindingsRequest();
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 "GetFindings"; }
34
35 AWS_SECURITYHUB_API Aws::String SerializePayload() const override;
36
37
39
46 inline const AwsSecurityFindingFilters& GetFilters() const{ return m_filters; }
47 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
48 inline void SetFilters(const AwsSecurityFindingFilters& value) { m_filtersHasBeenSet = true; m_filters = value; }
49 inline void SetFilters(AwsSecurityFindingFilters&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
50 inline GetFindingsRequest& WithFilters(const AwsSecurityFindingFilters& value) { SetFilters(value); return *this;}
51 inline GetFindingsRequest& WithFilters(AwsSecurityFindingFilters&& value) { SetFilters(std::move(value)); return *this;}
53
55
58 inline const Aws::Vector<SortCriterion>& GetSortCriteria() const{ return m_sortCriteria; }
59 inline bool SortCriteriaHasBeenSet() const { return m_sortCriteriaHasBeenSet; }
60 inline void SetSortCriteria(const Aws::Vector<SortCriterion>& value) { m_sortCriteriaHasBeenSet = true; m_sortCriteria = value; }
61 inline void SetSortCriteria(Aws::Vector<SortCriterion>&& value) { m_sortCriteriaHasBeenSet = true; m_sortCriteria = std::move(value); }
63 inline GetFindingsRequest& WithSortCriteria(Aws::Vector<SortCriterion>&& value) { SetSortCriteria(std::move(value)); return *this;}
64 inline GetFindingsRequest& AddSortCriteria(const SortCriterion& value) { m_sortCriteriaHasBeenSet = true; m_sortCriteria.push_back(value); return *this; }
65 inline GetFindingsRequest& AddSortCriteria(SortCriterion&& value) { m_sortCriteriaHasBeenSet = true; m_sortCriteria.push_back(std::move(value)); return *this; }
67
69
76 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
77 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
78 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
79 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
80 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
81 inline GetFindingsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
82 inline GetFindingsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
83 inline GetFindingsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
85
87
90 inline int GetMaxResults() const{ return m_maxResults; }
91 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
92 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
93 inline GetFindingsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
95 private:
96
98 bool m_filtersHasBeenSet = false;
99
100 Aws::Vector<SortCriterion> m_sortCriteria;
101 bool m_sortCriteriaHasBeenSet = false;
102
103 Aws::String m_nextToken;
104 bool m_nextTokenHasBeenSet = false;
105
106 int m_maxResults;
107 bool m_maxResultsHasBeenSet = false;
108 };
109
110} // namespace Model
111} // namespace SecurityHub
112} // namespace Aws
GetFindingsRequest & WithNextToken(Aws::String &&value)
GetFindingsRequest & WithFilters(const AwsSecurityFindingFilters &value)
GetFindingsRequest & AddSortCriteria(SortCriterion &&value)
void SetFilters(AwsSecurityFindingFilters &&value)
const Aws::Vector< SortCriterion > & GetSortCriteria() const
void SetFilters(const AwsSecurityFindingFilters &value)
void SetNextToken(const Aws::String &value)
GetFindingsRequest & AddSortCriteria(const SortCriterion &value)
GetFindingsRequest & WithSortCriteria(const Aws::Vector< SortCriterion > &value)
AWS_SECURITYHUB_API Aws::String SerializePayload() const override
const AwsSecurityFindingFilters & GetFilters() const
GetFindingsRequest & WithMaxResults(int value)
GetFindingsRequest & WithFilters(AwsSecurityFindingFilters &&value)
void SetSortCriteria(const Aws::Vector< SortCriterion > &value)
GetFindingsRequest & WithSortCriteria(Aws::Vector< SortCriterion > &&value)
void SetSortCriteria(Aws::Vector< SortCriterion > &&value)
virtual const char * GetServiceRequestName() const override
GetFindingsRequest & WithNextToken(const Aws::String &value)
GetFindingsRequest & WithNextToken(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector