AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SearchResourcesRequest.h
1
6#pragma once
7#include <aws/macie2/Macie2_EXPORTS.h>
8#include <aws/macie2/Macie2Request.h>
9#include <aws/macie2/model/SearchResourcesBucketCriteria.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/macie2/model/SearchResourcesSortCriteria.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Macie2
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_MACIE2_API SearchResourcesRequest();
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 "SearchResources"; }
33
34 AWS_MACIE2_API Aws::String SerializePayload() const override;
35
36
38
42 inline const SearchResourcesBucketCriteria& GetBucketCriteria() const{ return m_bucketCriteria; }
43 inline bool BucketCriteriaHasBeenSet() const { return m_bucketCriteriaHasBeenSet; }
44 inline void SetBucketCriteria(const SearchResourcesBucketCriteria& value) { m_bucketCriteriaHasBeenSet = true; m_bucketCriteria = value; }
45 inline void SetBucketCriteria(SearchResourcesBucketCriteria&& value) { m_bucketCriteriaHasBeenSet = true; m_bucketCriteria = std::move(value); }
49
51
55 inline int GetMaxResults() const{ return m_maxResults; }
56 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
57 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
58 inline SearchResourcesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
60
62
66 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
67 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
68 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
69 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
70 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
71 inline SearchResourcesRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
72 inline SearchResourcesRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
73 inline SearchResourcesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
75
77
80 inline const SearchResourcesSortCriteria& GetSortCriteria() const{ return m_sortCriteria; }
81 inline bool SortCriteriaHasBeenSet() const { return m_sortCriteriaHasBeenSet; }
82 inline void SetSortCriteria(const SearchResourcesSortCriteria& value) { m_sortCriteriaHasBeenSet = true; m_sortCriteria = value; }
83 inline void SetSortCriteria(SearchResourcesSortCriteria&& value) { m_sortCriteriaHasBeenSet = true; m_sortCriteria = std::move(value); }
85 inline SearchResourcesRequest& WithSortCriteria(SearchResourcesSortCriteria&& value) { SetSortCriteria(std::move(value)); return *this;}
87 private:
88
89 SearchResourcesBucketCriteria m_bucketCriteria;
90 bool m_bucketCriteriaHasBeenSet = false;
91
92 int m_maxResults;
93 bool m_maxResultsHasBeenSet = false;
94
95 Aws::String m_nextToken;
96 bool m_nextTokenHasBeenSet = false;
97
98 SearchResourcesSortCriteria m_sortCriteria;
99 bool m_sortCriteriaHasBeenSet = false;
100 };
101
102} // namespace Model
103} // namespace Macie2
104} // namespace Aws
SearchResourcesRequest & WithBucketCriteria(SearchResourcesBucketCriteria &&value)
SearchResourcesRequest & WithMaxResults(int value)
virtual const char * GetServiceRequestName() const override
SearchResourcesRequest & WithNextToken(Aws::String &&value)
void SetBucketCriteria(SearchResourcesBucketCriteria &&value)
void SetSortCriteria(const SearchResourcesSortCriteria &value)
const SearchResourcesBucketCriteria & GetBucketCriteria() const
const SearchResourcesSortCriteria & GetSortCriteria() const
void SetSortCriteria(SearchResourcesSortCriteria &&value)
SearchResourcesRequest & WithBucketCriteria(const SearchResourcesBucketCriteria &value)
AWS_MACIE2_API Aws::String SerializePayload() const override
SearchResourcesRequest & WithNextToken(const char *value)
SearchResourcesRequest & WithSortCriteria(SearchResourcesSortCriteria &&value)
SearchResourcesRequest & WithSortCriteria(const SearchResourcesSortCriteria &value)
void SetBucketCriteria(const SearchResourcesBucketCriteria &value)
SearchResourcesRequest & WithNextToken(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String