AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ListCollectionsRequest.h
1
6#pragma once
7#include <aws/opensearchserverless/OpenSearchServerless_EXPORTS.h>
8#include <aws/opensearchserverless/OpenSearchServerlessRequest.h>
9#include <aws/opensearchserverless/model/CollectionFilters.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <utility>
12
13namespace Aws
14{
15namespace OpenSearchServerless
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_OPENSEARCHSERVERLESS_API ListCollectionsRequest();
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "ListCollections"; }
32
33 AWS_OPENSEARCHSERVERLESS_API Aws::String SerializePayload() const override;
34
35 AWS_OPENSEARCHSERVERLESS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
36
37
39
42 inline const CollectionFilters& GetCollectionFilters() const{ return m_collectionFilters; }
43 inline bool CollectionFiltersHasBeenSet() const { return m_collectionFiltersHasBeenSet; }
44 inline void SetCollectionFilters(const CollectionFilters& value) { m_collectionFiltersHasBeenSet = true; m_collectionFilters = value; }
45 inline void SetCollectionFilters(CollectionFilters&& value) { m_collectionFiltersHasBeenSet = true; m_collectionFilters = std::move(value); }
47 inline ListCollectionsRequest& WithCollectionFilters(CollectionFilters&& value) { SetCollectionFilters(std::move(value)); return *this;}
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 ListCollectionsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
60
62
68 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
69 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
70 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
71 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
72 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
73 inline ListCollectionsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
74 inline ListCollectionsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
75 inline ListCollectionsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
77 private:
78
79 CollectionFilters m_collectionFilters;
80 bool m_collectionFiltersHasBeenSet = false;
81
82 int m_maxResults;
83 bool m_maxResultsHasBeenSet = false;
84
85 Aws::String m_nextToken;
86 bool m_nextTokenHasBeenSet = false;
87 };
88
89} // namespace Model
90} // namespace OpenSearchServerless
91} // namespace Aws
ListCollectionsRequest & WithNextToken(Aws::String &&value)
ListCollectionsRequest & WithCollectionFilters(const CollectionFilters &value)
AWS_OPENSEARCHSERVERLESS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
ListCollectionsRequest & WithNextToken(const Aws::String &value)
ListCollectionsRequest & WithNextToken(const char *value)
ListCollectionsRequest & WithCollectionFilters(CollectionFilters &&value)
AWS_OPENSEARCHSERVERLESS_API Aws::String SerializePayload() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String