AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ListIndexRequest.h
1
6#pragma once
7#include <aws/clouddirectory/CloudDirectory_EXPORTS.h>
8#include <aws/clouddirectory/CloudDirectoryRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/clouddirectory/model/ObjectReference.h>
12#include <aws/clouddirectory/model/ConsistencyLevel.h>
13#include <aws/clouddirectory/model/ObjectAttributeRange.h>
14#include <utility>
15
16namespace Aws
17{
18namespace CloudDirectory
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_CLOUDDIRECTORY_API ListIndexRequest();
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "ListIndex"; }
35
36 AWS_CLOUDDIRECTORY_API Aws::String SerializePayload() const override;
37
38 AWS_CLOUDDIRECTORY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
39
40
42
45 inline const Aws::String& GetDirectoryArn() const{ return m_directoryArn; }
46 inline bool DirectoryArnHasBeenSet() const { return m_directoryArnHasBeenSet; }
47 inline void SetDirectoryArn(const Aws::String& value) { m_directoryArnHasBeenSet = true; m_directoryArn = value; }
48 inline void SetDirectoryArn(Aws::String&& value) { m_directoryArnHasBeenSet = true; m_directoryArn = std::move(value); }
49 inline void SetDirectoryArn(const char* value) { m_directoryArnHasBeenSet = true; m_directoryArn.assign(value); }
50 inline ListIndexRequest& WithDirectoryArn(const Aws::String& value) { SetDirectoryArn(value); return *this;}
51 inline ListIndexRequest& WithDirectoryArn(Aws::String&& value) { SetDirectoryArn(std::move(value)); return *this;}
52 inline ListIndexRequest& WithDirectoryArn(const char* value) { SetDirectoryArn(value); return *this;}
54
56
59 inline const Aws::Vector<ObjectAttributeRange>& GetRangesOnIndexedValues() const{ return m_rangesOnIndexedValues; }
60 inline bool RangesOnIndexedValuesHasBeenSet() const { return m_rangesOnIndexedValuesHasBeenSet; }
61 inline void SetRangesOnIndexedValues(const Aws::Vector<ObjectAttributeRange>& value) { m_rangesOnIndexedValuesHasBeenSet = true; m_rangesOnIndexedValues = value; }
62 inline void SetRangesOnIndexedValues(Aws::Vector<ObjectAttributeRange>&& value) { m_rangesOnIndexedValuesHasBeenSet = true; m_rangesOnIndexedValues = std::move(value); }
65 inline ListIndexRequest& AddRangesOnIndexedValues(const ObjectAttributeRange& value) { m_rangesOnIndexedValuesHasBeenSet = true; m_rangesOnIndexedValues.push_back(value); return *this; }
66 inline ListIndexRequest& AddRangesOnIndexedValues(ObjectAttributeRange&& value) { m_rangesOnIndexedValuesHasBeenSet = true; m_rangesOnIndexedValues.push_back(std::move(value)); return *this; }
68
70
73 inline const ObjectReference& GetIndexReference() const{ return m_indexReference; }
74 inline bool IndexReferenceHasBeenSet() const { return m_indexReferenceHasBeenSet; }
75 inline void SetIndexReference(const ObjectReference& value) { m_indexReferenceHasBeenSet = true; m_indexReference = value; }
76 inline void SetIndexReference(ObjectReference&& value) { m_indexReferenceHasBeenSet = true; m_indexReference = std::move(value); }
77 inline ListIndexRequest& WithIndexReference(const ObjectReference& value) { SetIndexReference(value); return *this;}
78 inline ListIndexRequest& WithIndexReference(ObjectReference&& value) { SetIndexReference(std::move(value)); return *this;}
80
82
88 inline int GetMaxResults() const{ return m_maxResults; }
89 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
90 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
91 inline ListIndexRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
93
95
98 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
99 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
100 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
101 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
102 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
103 inline ListIndexRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
104 inline ListIndexRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
105 inline ListIndexRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
107
109
112 inline const ConsistencyLevel& GetConsistencyLevel() const{ return m_consistencyLevel; }
113 inline bool ConsistencyLevelHasBeenSet() const { return m_consistencyLevelHasBeenSet; }
114 inline void SetConsistencyLevel(const ConsistencyLevel& value) { m_consistencyLevelHasBeenSet = true; m_consistencyLevel = value; }
115 inline void SetConsistencyLevel(ConsistencyLevel&& value) { m_consistencyLevelHasBeenSet = true; m_consistencyLevel = std::move(value); }
116 inline ListIndexRequest& WithConsistencyLevel(const ConsistencyLevel& value) { SetConsistencyLevel(value); return *this;}
117 inline ListIndexRequest& WithConsistencyLevel(ConsistencyLevel&& value) { SetConsistencyLevel(std::move(value)); return *this;}
119 private:
120
121 Aws::String m_directoryArn;
122 bool m_directoryArnHasBeenSet = false;
123
124 Aws::Vector<ObjectAttributeRange> m_rangesOnIndexedValues;
125 bool m_rangesOnIndexedValuesHasBeenSet = false;
126
127 ObjectReference m_indexReference;
128 bool m_indexReferenceHasBeenSet = false;
129
130 int m_maxResults;
131 bool m_maxResultsHasBeenSet = false;
132
133 Aws::String m_nextToken;
134 bool m_nextTokenHasBeenSet = false;
135
136 ConsistencyLevel m_consistencyLevel;
137 bool m_consistencyLevelHasBeenSet = false;
138 };
139
140} // namespace Model
141} // namespace CloudDirectory
142} // namespace Aws
ListIndexRequest & WithNextToken(const Aws::String &value)
const ObjectReference & GetIndexReference() const
ListIndexRequest & WithDirectoryArn(const Aws::String &value)
ListIndexRequest & WithConsistencyLevel(ConsistencyLevel &&value)
ListIndexRequest & WithMaxResults(int value)
void SetDirectoryArn(const Aws::String &value)
void SetConsistencyLevel(const ConsistencyLevel &value)
void SetRangesOnIndexedValues(const Aws::Vector< ObjectAttributeRange > &value)
ListIndexRequest & WithNextToken(const char *value)
ListIndexRequest & WithDirectoryArn(Aws::String &&value)
ListIndexRequest & WithNextToken(Aws::String &&value)
void SetRangesOnIndexedValues(Aws::Vector< ObjectAttributeRange > &&value)
ListIndexRequest & AddRangesOnIndexedValues(const ObjectAttributeRange &value)
virtual const char * GetServiceRequestName() const override
ListIndexRequest & WithRangesOnIndexedValues(Aws::Vector< ObjectAttributeRange > &&value)
const ConsistencyLevel & GetConsistencyLevel() const
ListIndexRequest & WithIndexReference(ObjectReference &&value)
AWS_CLOUDDIRECTORY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetIndexReference(const ObjectReference &value)
ListIndexRequest & AddRangesOnIndexedValues(ObjectAttributeRange &&value)
AWS_CLOUDDIRECTORY_API Aws::String SerializePayload() const override
void SetIndexReference(ObjectReference &&value)
void SetConsistencyLevel(ConsistencyLevel &&value)
ListIndexRequest & WithRangesOnIndexedValues(const Aws::Vector< ObjectAttributeRange > &value)
void SetNextToken(const Aws::String &value)
ListIndexRequest & WithDirectoryArn(const char *value)
ListIndexRequest & WithConsistencyLevel(const ConsistencyLevel &value)
const Aws::Vector< ObjectAttributeRange > & GetRangesOnIndexedValues() const
ListIndexRequest & WithIndexReference(const ObjectReference &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector