AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ListFacesRequest.h
1
6#pragma once
7#include <aws/rekognition/Rekognition_EXPORTS.h>
8#include <aws/rekognition/RekognitionRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Rekognition
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_REKOGNITION_API ListFacesRequest() = default;
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 "ListFaces"; }
32
33 AWS_REKOGNITION_API Aws::String SerializePayload() const override;
34
35 AWS_REKOGNITION_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
36
37
39
42 inline const Aws::String& GetCollectionId() const { return m_collectionId; }
43 inline bool CollectionIdHasBeenSet() const { return m_collectionIdHasBeenSet; }
44 template<typename CollectionIdT = Aws::String>
45 void SetCollectionId(CollectionIdT&& value) { m_collectionIdHasBeenSet = true; m_collectionId = std::forward<CollectionIdT>(value); }
46 template<typename CollectionIdT = Aws::String>
47 ListFacesRequest& WithCollectionId(CollectionIdT&& value) { SetCollectionId(std::forward<CollectionIdT>(value)); return *this;}
49
51
56 inline const Aws::String& GetNextToken() const { return m_nextToken; }
57 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
58 template<typename NextTokenT = Aws::String>
59 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
60 template<typename NextTokenT = Aws::String>
61 ListFacesRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
63
65
68 inline int GetMaxResults() const { return m_maxResults; }
69 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
70 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
71 inline ListFacesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
73
75
79 inline const Aws::String& GetUserId() const { return m_userId; }
80 inline bool UserIdHasBeenSet() const { return m_userIdHasBeenSet; }
81 template<typename UserIdT = Aws::String>
82 void SetUserId(UserIdT&& value) { m_userIdHasBeenSet = true; m_userId = std::forward<UserIdT>(value); }
83 template<typename UserIdT = Aws::String>
84 ListFacesRequest& WithUserId(UserIdT&& value) { SetUserId(std::forward<UserIdT>(value)); return *this;}
86
88
92 inline const Aws::Vector<Aws::String>& GetFaceIds() const { return m_faceIds; }
93 inline bool FaceIdsHasBeenSet() const { return m_faceIdsHasBeenSet; }
94 template<typename FaceIdsT = Aws::Vector<Aws::String>>
95 void SetFaceIds(FaceIdsT&& value) { m_faceIdsHasBeenSet = true; m_faceIds = std::forward<FaceIdsT>(value); }
96 template<typename FaceIdsT = Aws::Vector<Aws::String>>
97 ListFacesRequest& WithFaceIds(FaceIdsT&& value) { SetFaceIds(std::forward<FaceIdsT>(value)); return *this;}
98 template<typename FaceIdsT = Aws::String>
99 ListFacesRequest& AddFaceIds(FaceIdsT&& value) { m_faceIdsHasBeenSet = true; m_faceIds.emplace_back(std::forward<FaceIdsT>(value)); return *this; }
101 private:
102
103 Aws::String m_collectionId;
104 bool m_collectionIdHasBeenSet = false;
105
106 Aws::String m_nextToken;
107 bool m_nextTokenHasBeenSet = false;
108
109 int m_maxResults{0};
110 bool m_maxResultsHasBeenSet = false;
111
112 Aws::String m_userId;
113 bool m_userIdHasBeenSet = false;
114
115 Aws::Vector<Aws::String> m_faceIds;
116 bool m_faceIdsHasBeenSet = false;
117 };
118
119} // namespace Model
120} // namespace Rekognition
121} // 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