AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename NextTokenT = Aws::String>
68 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
69 template<typename NextTokenT = Aws::String>
70 ListIndexesRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
72
74
78 inline const Aws::Vector<Aws::String>& GetRegions() const { return m_regions; }
79 inline bool RegionsHasBeenSet() const { return m_regionsHasBeenSet; }
80 template<typename RegionsT = Aws::Vector<Aws::String>>
81 void SetRegions(RegionsT&& value) { m_regionsHasBeenSet = true; m_regions = std::forward<RegionsT>(value); }
82 template<typename RegionsT = Aws::Vector<Aws::String>>
83 ListIndexesRequest& WithRegions(RegionsT&& value) { SetRegions(std::forward<RegionsT>(value)); return *this;}
84 template<typename RegionsT = Aws::String>
85 ListIndexesRequest& AddRegions(RegionsT&& value) { m_regionsHasBeenSet = true; m_regions.emplace_back(std::forward<RegionsT>(value)); return *this; }
87
89
94 inline IndexType GetType() const { return m_type; }
95 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
96 inline void SetType(IndexType value) { m_typeHasBeenSet = true; m_type = value; }
97 inline ListIndexesRequest& WithType(IndexType value) { SetType(value); return *this;}
99 private:
100
101 int m_maxResults{0};
102 bool m_maxResultsHasBeenSet = false;
103
104 Aws::String m_nextToken;
105 bool m_nextTokenHasBeenSet = false;
106
107 Aws::Vector<Aws::String> m_regions;
108 bool m_regionsHasBeenSet = false;
109
111 bool m_typeHasBeenSet = false;
112 };
113
114} // namespace Model
115} // namespace ResourceExplorer2
116} // namespace Aws
const Aws::Vector< Aws::String > & GetRegions() const
virtual const char * GetServiceRequestName() const override
ListIndexesRequest & WithNextToken(NextTokenT &&value)
ListIndexesRequest & WithRegions(RegionsT &&value)
AWS_RESOURCEEXPLORER2_API ListIndexesRequest()=default
ListIndexesRequest & AddRegions(RegionsT &&value)
ListIndexesRequest & WithType(IndexType 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