AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DescribeBucketsRequest.h
1
6#pragma once
7#include <aws/macie2/Macie2_EXPORTS.h>
8#include <aws/macie2/Macie2Request.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/macie2/model/BucketSortCriteria.h>
12#include <aws/macie2/model/BucketCriteriaAdditionalProperties.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Macie2
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_MACIE2_API DescribeBucketsRequest();
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 "DescribeBuckets"; }
34
35 AWS_MACIE2_API Aws::String SerializePayload() const override;
36
37
39
43 inline bool CriteriaHasBeenSet() const { return m_criteriaHasBeenSet; }
44 inline void SetCriteria(const Aws::Map<Aws::String, BucketCriteriaAdditionalProperties>& value) { m_criteriaHasBeenSet = true; m_criteria = value; }
45 inline void SetCriteria(Aws::Map<Aws::String, BucketCriteriaAdditionalProperties>&& value) { m_criteriaHasBeenSet = true; m_criteria = std::move(value); }
48 inline DescribeBucketsRequest& AddCriteria(const Aws::String& key, const BucketCriteriaAdditionalProperties& value) { m_criteriaHasBeenSet = true; m_criteria.emplace(key, value); return *this; }
49 inline DescribeBucketsRequest& AddCriteria(Aws::String&& key, const BucketCriteriaAdditionalProperties& value) { m_criteriaHasBeenSet = true; m_criteria.emplace(std::move(key), value); return *this; }
50 inline DescribeBucketsRequest& AddCriteria(const Aws::String& key, BucketCriteriaAdditionalProperties&& value) { m_criteriaHasBeenSet = true; m_criteria.emplace(key, std::move(value)); return *this; }
51 inline DescribeBucketsRequest& AddCriteria(Aws::String&& key, BucketCriteriaAdditionalProperties&& value) { m_criteriaHasBeenSet = true; m_criteria.emplace(std::move(key), std::move(value)); return *this; }
52 inline DescribeBucketsRequest& AddCriteria(const char* key, BucketCriteriaAdditionalProperties&& value) { m_criteriaHasBeenSet = true; m_criteria.emplace(key, std::move(value)); return *this; }
53 inline DescribeBucketsRequest& AddCriteria(const char* key, const BucketCriteriaAdditionalProperties& value) { m_criteriaHasBeenSet = true; m_criteria.emplace(key, value); return *this; }
55
57
61 inline int GetMaxResults() const{ return m_maxResults; }
62 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
63 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
64 inline DescribeBucketsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
66
68
72 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
73 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
74 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
75 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
76 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
77 inline DescribeBucketsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
78 inline DescribeBucketsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
79 inline DescribeBucketsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
81
83
86 inline const BucketSortCriteria& GetSortCriteria() const{ return m_sortCriteria; }
87 inline bool SortCriteriaHasBeenSet() const { return m_sortCriteriaHasBeenSet; }
88 inline void SetSortCriteria(const BucketSortCriteria& value) { m_sortCriteriaHasBeenSet = true; m_sortCriteria = value; }
89 inline void SetSortCriteria(BucketSortCriteria&& value) { m_sortCriteriaHasBeenSet = true; m_sortCriteria = std::move(value); }
90 inline DescribeBucketsRequest& WithSortCriteria(const BucketSortCriteria& value) { SetSortCriteria(value); return *this;}
91 inline DescribeBucketsRequest& WithSortCriteria(BucketSortCriteria&& value) { SetSortCriteria(std::move(value)); return *this;}
93 private:
94
96 bool m_criteriaHasBeenSet = false;
97
98 int m_maxResults;
99 bool m_maxResultsHasBeenSet = false;
100
101 Aws::String m_nextToken;
102 bool m_nextTokenHasBeenSet = false;
103
104 BucketSortCriteria m_sortCriteria;
105 bool m_sortCriteriaHasBeenSet = false;
106 };
107
108} // namespace Model
109} // namespace Macie2
110} // namespace Aws
DescribeBucketsRequest & AddCriteria(const char *key, BucketCriteriaAdditionalProperties &&value)
DescribeBucketsRequest & WithNextToken(const Aws::String &value)
DescribeBucketsRequest & WithNextToken(const char *value)
void SetSortCriteria(const BucketSortCriteria &value)
DescribeBucketsRequest & AddCriteria(Aws::String &&key, const BucketCriteriaAdditionalProperties &value)
const BucketSortCriteria & GetSortCriteria() const
AWS_MACIE2_API Aws::String SerializePayload() const override
DescribeBucketsRequest & WithMaxResults(int value)
DescribeBucketsRequest & WithCriteria(Aws::Map< Aws::String, BucketCriteriaAdditionalProperties > &&value)
void SetSortCriteria(BucketSortCriteria &&value)
virtual const char * GetServiceRequestName() const override
DescribeBucketsRequest & WithSortCriteria(BucketSortCriteria &&value)
DescribeBucketsRequest & WithCriteria(const Aws::Map< Aws::String, BucketCriteriaAdditionalProperties > &value)
DescribeBucketsRequest & AddCriteria(const Aws::String &key, const BucketCriteriaAdditionalProperties &value)
void SetCriteria(const Aws::Map< Aws::String, BucketCriteriaAdditionalProperties > &value)
DescribeBucketsRequest & AddCriteria(const Aws::String &key, BucketCriteriaAdditionalProperties &&value)
const Aws::Map< Aws::String, BucketCriteriaAdditionalProperties > & GetCriteria() const
DescribeBucketsRequest & AddCriteria(const char *key, const BucketCriteriaAdditionalProperties &value)
DescribeBucketsRequest & WithSortCriteria(const BucketSortCriteria &value)
DescribeBucketsRequest & AddCriteria(Aws::String &&key, BucketCriteriaAdditionalProperties &&value)
DescribeBucketsRequest & WithNextToken(Aws::String &&value)
void SetCriteria(Aws::Map< Aws::String, BucketCriteriaAdditionalProperties > &&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