AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
DescribeBucketsRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/macie2/Macie2Request.h>
10#include <aws/macie2/Macie2_EXPORTS.h>
11#include <aws/macie2/model/BucketCriteriaAdditionalProperties.h>
12#include <aws/macie2/model/BucketSortCriteria.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Macie2 {
18namespace Model {
19
23 public:
24 AWS_MACIE2_API DescribeBucketsRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "DescribeBuckets"; }
31
32 AWS_MACIE2_API Aws::String SerializePayload() const override;
33
35
39 inline bool CriteriaHasBeenSet() const { return m_criteriaHasBeenSet; }
40 template <typename CriteriaT = Aws::Map<Aws::String, BucketCriteriaAdditionalProperties>>
41 void SetCriteria(CriteriaT&& value) {
42 m_criteriaHasBeenSet = true;
43 m_criteria = std::forward<CriteriaT>(value);
44 }
45 template <typename CriteriaT = Aws::Map<Aws::String, BucketCriteriaAdditionalProperties>>
47 SetCriteria(std::forward<CriteriaT>(value));
48 return *this;
49 }
50 template <typename CriteriaKeyT = Aws::String, typename CriteriaValueT = BucketCriteriaAdditionalProperties>
51 DescribeBucketsRequest& AddCriteria(CriteriaKeyT&& key, CriteriaValueT&& value) {
52 m_criteriaHasBeenSet = true;
53 m_criteria.emplace(std::forward<CriteriaKeyT>(key), std::forward<CriteriaValueT>(value));
54 return *this;
55 }
57
59
63 inline int GetMaxResults() const { return m_maxResults; }
64 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
65 inline void SetMaxResults(int value) {
66 m_maxResultsHasBeenSet = true;
67 m_maxResults = value;
68 }
70 SetMaxResults(value);
71 return *this;
72 }
74
76
80 inline const Aws::String& GetNextToken() const { return m_nextToken; }
81 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
82 template <typename NextTokenT = Aws::String>
83 void SetNextToken(NextTokenT&& value) {
84 m_nextTokenHasBeenSet = true;
85 m_nextToken = std::forward<NextTokenT>(value);
86 }
87 template <typename NextTokenT = Aws::String>
89 SetNextToken(std::forward<NextTokenT>(value));
90 return *this;
91 }
93
95
98 inline const BucketSortCriteria& GetSortCriteria() const { return m_sortCriteria; }
99 inline bool SortCriteriaHasBeenSet() const { return m_sortCriteriaHasBeenSet; }
100 template <typename SortCriteriaT = BucketSortCriteria>
101 void SetSortCriteria(SortCriteriaT&& value) {
102 m_sortCriteriaHasBeenSet = true;
103 m_sortCriteria = std::forward<SortCriteriaT>(value);
104 }
105 template <typename SortCriteriaT = BucketSortCriteria>
106 DescribeBucketsRequest& WithSortCriteria(SortCriteriaT&& value) {
107 SetSortCriteria(std::forward<SortCriteriaT>(value));
108 return *this;
109 }
111 private:
113
114 int m_maxResults{0};
115
116 Aws::String m_nextToken;
117
118 BucketSortCriteria m_sortCriteria;
119 bool m_criteriaHasBeenSet = false;
120 bool m_maxResultsHasBeenSet = false;
121 bool m_nextTokenHasBeenSet = false;
122 bool m_sortCriteriaHasBeenSet = false;
123};
124
125} // namespace Model
126} // namespace Macie2
127} // namespace Aws
DescribeBucketsRequest & AddCriteria(CriteriaKeyT &&key, CriteriaValueT &&value)
DescribeBucketsRequest & WithNextToken(NextTokenT &&value)
const BucketSortCriteria & GetSortCriteria() const
AWS_MACIE2_API Aws::String SerializePayload() const override
DescribeBucketsRequest & WithMaxResults(int value)
virtual const char * GetServiceRequestName() const override
DescribeBucketsRequest & WithSortCriteria(SortCriteriaT &&value)
const Aws::Map< Aws::String, BucketCriteriaAdditionalProperties > & GetCriteria() const
AWS_MACIE2_API DescribeBucketsRequest()=default
DescribeBucketsRequest & WithCriteria(CriteriaT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String