AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetCollectionId(const Aws::String& value) { m_collectionIdHasBeenSet = true; m_collectionId = value; }
45 inline void SetCollectionId(Aws::String&& value) { m_collectionIdHasBeenSet = true; m_collectionId = std::move(value); }
46 inline void SetCollectionId(const char* value) { m_collectionIdHasBeenSet = true; m_collectionId.assign(value); }
47 inline ListFacesRequest& WithCollectionId(const Aws::String& value) { SetCollectionId(value); return *this;}
48 inline ListFacesRequest& WithCollectionId(Aws::String&& value) { SetCollectionId(std::move(value)); return *this;}
49 inline ListFacesRequest& WithCollectionId(const char* value) { SetCollectionId(value); return *this;}
51
53
58 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
59 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
60 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
61 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
62 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
63 inline ListFacesRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
64 inline ListFacesRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
65 inline ListFacesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
67
69
72 inline int GetMaxResults() const{ return m_maxResults; }
73 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
74 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
75 inline ListFacesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
77
79
83 inline const Aws::String& GetUserId() const{ return m_userId; }
84 inline bool UserIdHasBeenSet() const { return m_userIdHasBeenSet; }
85 inline void SetUserId(const Aws::String& value) { m_userIdHasBeenSet = true; m_userId = value; }
86 inline void SetUserId(Aws::String&& value) { m_userIdHasBeenSet = true; m_userId = std::move(value); }
87 inline void SetUserId(const char* value) { m_userIdHasBeenSet = true; m_userId.assign(value); }
88 inline ListFacesRequest& WithUserId(const Aws::String& value) { SetUserId(value); return *this;}
89 inline ListFacesRequest& WithUserId(Aws::String&& value) { SetUserId(std::move(value)); return *this;}
90 inline ListFacesRequest& WithUserId(const char* value) { SetUserId(value); return *this;}
92
94
98 inline const Aws::Vector<Aws::String>& GetFaceIds() const{ return m_faceIds; }
99 inline bool FaceIdsHasBeenSet() const { return m_faceIdsHasBeenSet; }
100 inline void SetFaceIds(const Aws::Vector<Aws::String>& value) { m_faceIdsHasBeenSet = true; m_faceIds = value; }
101 inline void SetFaceIds(Aws::Vector<Aws::String>&& value) { m_faceIdsHasBeenSet = true; m_faceIds = std::move(value); }
102 inline ListFacesRequest& WithFaceIds(const Aws::Vector<Aws::String>& value) { SetFaceIds(value); return *this;}
103 inline ListFacesRequest& WithFaceIds(Aws::Vector<Aws::String>&& value) { SetFaceIds(std::move(value)); return *this;}
104 inline ListFacesRequest& AddFaceIds(const Aws::String& value) { m_faceIdsHasBeenSet = true; m_faceIds.push_back(value); return *this; }
105 inline ListFacesRequest& AddFaceIds(Aws::String&& value) { m_faceIdsHasBeenSet = true; m_faceIds.push_back(std::move(value)); return *this; }
106 inline ListFacesRequest& AddFaceIds(const char* value) { m_faceIdsHasBeenSet = true; m_faceIds.push_back(value); return *this; }
108 private:
109
110 Aws::String m_collectionId;
111 bool m_collectionIdHasBeenSet = false;
112
113 Aws::String m_nextToken;
114 bool m_nextTokenHasBeenSet = false;
115
116 int m_maxResults;
117 bool m_maxResultsHasBeenSet = false;
118
119 Aws::String m_userId;
120 bool m_userIdHasBeenSet = false;
121
122 Aws::Vector<Aws::String> m_faceIds;
123 bool m_faceIdsHasBeenSet = false;
124 };
125
126} // namespace Model
127} // namespace Rekognition
128} // namespace Aws
ListFacesRequest & WithFaceIds(Aws::Vector< Aws::String > &&value)
ListFacesRequest & AddFaceIds(Aws::String &&value)
ListFacesRequest & WithUserId(const char *value)
virtual const char * GetServiceRequestName() const override
const Aws::String & GetNextToken() const
ListFacesRequest & WithNextToken(Aws::String &&value)
ListFacesRequest & WithNextToken(const Aws::String &value)
void SetNextToken(const Aws::String &value)
ListFacesRequest & WithCollectionId(const Aws::String &value)
ListFacesRequest & WithCollectionId(const char *value)
ListFacesRequest & WithCollectionId(Aws::String &&value)
const Aws::String & GetCollectionId() const
ListFacesRequest & WithUserId(Aws::String &&value)
AWS_REKOGNITION_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
ListFacesRequest & WithUserId(const Aws::String &value)
ListFacesRequest & AddFaceIds(const char *value)
const Aws::Vector< Aws::String > & GetFaceIds() const
ListFacesRequest & AddFaceIds(const Aws::String &value)
void SetFaceIds(Aws::Vector< Aws::String > &&value)
void SetCollectionId(const Aws::String &value)
ListFacesRequest & WithNextToken(const char *value)
ListFacesRequest & WithFaceIds(const Aws::Vector< Aws::String > &value)
void SetFaceIds(const Aws::Vector< Aws::String > &value)
AWS_REKOGNITION_API Aws::String SerializePayload() const override
ListFacesRequest & WithMaxResults(int value)
void SetUserId(const Aws::String &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