AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ListIndexesRequest.h
1
6#pragma once
7#include <aws/resource-explorer-2/ResourceExplorer2_EXPORTS.h>
8#include <aws/resource-explorer-2/ResourceExplorer2Request.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/resource-explorer-2/model/IndexType.h>
12#include <utility>
13
14namespace Aws
15{
16namespace ResourceExplorer2
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_RESOURCEEXPLORER2_API ListIndexesRequest();
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 "ListIndexes"; }
33
34 AWS_RESOURCEEXPLORER2_API Aws::String SerializePayload() const override;
35
36
38
50 inline int GetMaxResults() const{ return m_maxResults; }
51 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
52 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
53 inline ListIndexesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
55
57
65 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
66 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
67 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
68 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
69 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
70 inline ListIndexesRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
71 inline ListIndexesRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
72 inline ListIndexesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
74
76
80 inline const Aws::Vector<Aws::String>& GetRegions() const{ return m_regions; }
81 inline bool RegionsHasBeenSet() const { return m_regionsHasBeenSet; }
82 inline void SetRegions(const Aws::Vector<Aws::String>& value) { m_regionsHasBeenSet = true; m_regions = value; }
83 inline void SetRegions(Aws::Vector<Aws::String>&& value) { m_regionsHasBeenSet = true; m_regions = std::move(value); }
84 inline ListIndexesRequest& WithRegions(const Aws::Vector<Aws::String>& value) { SetRegions(value); return *this;}
85 inline ListIndexesRequest& WithRegions(Aws::Vector<Aws::String>&& value) { SetRegions(std::move(value)); return *this;}
86 inline ListIndexesRequest& AddRegions(const Aws::String& value) { m_regionsHasBeenSet = true; m_regions.push_back(value); return *this; }
87 inline ListIndexesRequest& AddRegions(Aws::String&& value) { m_regionsHasBeenSet = true; m_regions.push_back(std::move(value)); return *this; }
88 inline ListIndexesRequest& AddRegions(const char* value) { m_regionsHasBeenSet = true; m_regions.push_back(value); return *this; }
90
92
97 inline const IndexType& GetType() const{ return m_type; }
98 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
99 inline void SetType(const IndexType& value) { m_typeHasBeenSet = true; m_type = value; }
100 inline void SetType(IndexType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
101 inline ListIndexesRequest& WithType(const IndexType& value) { SetType(value); return *this;}
102 inline ListIndexesRequest& WithType(IndexType&& value) { SetType(std::move(value)); return *this;}
104 private:
105
106 int m_maxResults;
107 bool m_maxResultsHasBeenSet = false;
108
109 Aws::String m_nextToken;
110 bool m_nextTokenHasBeenSet = false;
111
112 Aws::Vector<Aws::String> m_regions;
113 bool m_regionsHasBeenSet = false;
114
115 IndexType m_type;
116 bool m_typeHasBeenSet = false;
117 };
118
119} // namespace Model
120} // namespace ResourceExplorer2
121} // namespace Aws
ListIndexesRequest & WithType(const IndexType &value)
void SetRegions(Aws::Vector< Aws::String > &&value)
ListIndexesRequest & WithNextToken(const Aws::String &value)
void SetRegions(const Aws::Vector< Aws::String > &value)
ListIndexesRequest & AddRegions(Aws::String &&value)
ListIndexesRequest & WithRegions(Aws::Vector< Aws::String > &&value)
const Aws::Vector< Aws::String > & GetRegions() const
virtual const char * GetServiceRequestName() const override
ListIndexesRequest & WithNextToken(const char *value)
ListIndexesRequest & AddRegions(const char *value)
AWS_RESOURCEEXPLORER2_API ListIndexesRequest()
ListIndexesRequest & WithType(IndexType &&value)
ListIndexesRequest & AddRegions(const Aws::String &value)
ListIndexesRequest & WithNextToken(Aws::String &&value)
ListIndexesRequest & WithRegions(const Aws::Vector< Aws::String > &value)
AWS_RESOURCEEXPLORER2_API Aws::String SerializePayload() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector