AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
ListFacesRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/rekognition/RekognitionRequest.h>
10#include <aws/rekognition/Rekognition_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Rekognition {
16namespace Model {
17
21 public:
22 AWS_REKOGNITION_API ListFacesRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "ListFaces"; }
29
30 AWS_REKOGNITION_API Aws::String SerializePayload() const override;
31
32 AWS_REKOGNITION_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
33
35
38 inline const Aws::String& GetCollectionId() const { return m_collectionId; }
39 inline bool CollectionIdHasBeenSet() const { return m_collectionIdHasBeenSet; }
40 template <typename CollectionIdT = Aws::String>
41 void SetCollectionId(CollectionIdT&& value) {
42 m_collectionIdHasBeenSet = true;
43 m_collectionId = std::forward<CollectionIdT>(value);
44 }
45 template <typename CollectionIdT = Aws::String>
46 ListFacesRequest& WithCollectionId(CollectionIdT&& value) {
47 SetCollectionId(std::forward<CollectionIdT>(value));
48 return *this;
49 }
51
53
58 inline const Aws::String& GetNextToken() const { return m_nextToken; }
59 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
60 template <typename NextTokenT = Aws::String>
61 void SetNextToken(NextTokenT&& value) {
62 m_nextTokenHasBeenSet = true;
63 m_nextToken = std::forward<NextTokenT>(value);
64 }
65 template <typename NextTokenT = Aws::String>
66 ListFacesRequest& WithNextToken(NextTokenT&& value) {
67 SetNextToken(std::forward<NextTokenT>(value));
68 return *this;
69 }
71
73
76 inline int GetMaxResults() const { return m_maxResults; }
77 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
78 inline void SetMaxResults(int value) {
79 m_maxResultsHasBeenSet = true;
80 m_maxResults = value;
81 }
82 inline ListFacesRequest& WithMaxResults(int value) {
83 SetMaxResults(value);
84 return *this;
85 }
87
89
93 inline const Aws::String& GetUserId() const { return m_userId; }
94 inline bool UserIdHasBeenSet() const { return m_userIdHasBeenSet; }
95 template <typename UserIdT = Aws::String>
96 void SetUserId(UserIdT&& value) {
97 m_userIdHasBeenSet = true;
98 m_userId = std::forward<UserIdT>(value);
99 }
100 template <typename UserIdT = Aws::String>
101 ListFacesRequest& WithUserId(UserIdT&& value) {
102 SetUserId(std::forward<UserIdT>(value));
103 return *this;
104 }
106
108
112 inline const Aws::Vector<Aws::String>& GetFaceIds() const { return m_faceIds; }
113 inline bool FaceIdsHasBeenSet() const { return m_faceIdsHasBeenSet; }
114 template <typename FaceIdsT = Aws::Vector<Aws::String>>
115 void SetFaceIds(FaceIdsT&& value) {
116 m_faceIdsHasBeenSet = true;
117 m_faceIds = std::forward<FaceIdsT>(value);
118 }
119 template <typename FaceIdsT = Aws::Vector<Aws::String>>
120 ListFacesRequest& WithFaceIds(FaceIdsT&& value) {
121 SetFaceIds(std::forward<FaceIdsT>(value));
122 return *this;
123 }
124 template <typename FaceIdsT = Aws::String>
125 ListFacesRequest& AddFaceIds(FaceIdsT&& value) {
126 m_faceIdsHasBeenSet = true;
127 m_faceIds.emplace_back(std::forward<FaceIdsT>(value));
128 return *this;
129 }
131 private:
132 Aws::String m_collectionId;
133
134 Aws::String m_nextToken;
135
136 int m_maxResults{0};
137
138 Aws::String m_userId;
139
140 Aws::Vector<Aws::String> m_faceIds;
141 bool m_collectionIdHasBeenSet = false;
142 bool m_nextTokenHasBeenSet = false;
143 bool m_maxResultsHasBeenSet = false;
144 bool m_userIdHasBeenSet = false;
145 bool m_faceIdsHasBeenSet = false;
146};
147
148} // namespace Model
149} // namespace Rekognition
150} // namespace Aws
virtual const char * GetServiceRequestName() const override
const Aws::String & GetNextToken() const
void SetCollectionId(CollectionIdT &&value)
ListFacesRequest & AddFaceIds(FaceIdsT &&value)
const Aws::String & GetCollectionId() const
ListFacesRequest & WithUserId(UserIdT &&value)
AWS_REKOGNITION_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const Aws::Vector< Aws::String > & GetFaceIds() const
ListFacesRequest & WithCollectionId(CollectionIdT &&value)
ListFacesRequest & WithFaceIds(FaceIdsT &&value)
AWS_REKOGNITION_API Aws::String SerializePayload() const override
ListFacesRequest & WithMaxResults(int value)
AWS_REKOGNITION_API ListFacesRequest()=default
ListFacesRequest & WithNextToken(NextTokenT &&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