AWS SDK for C++

AWS SDK for C++ Version 1.11.685

Loading...
Searching...
No Matches
SearchUsersRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/rekognition/RekognitionRequest.h>
9#include <aws/rekognition/Rekognition_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Rekognition {
15namespace Model {
16
20 public:
21 AWS_REKOGNITION_API SearchUsersRequest() = default;
22
23 // Service request name is the Operation name which will send this request out,
24 // each operation should has unique request name, so that we can get operation's name from this request.
25 // Note: this is not true for response, multiple operations may have the same response name,
26 // so we can not get operation's name from response.
27 inline virtual const char* GetServiceRequestName() const override { return "SearchUsers"; }
28
29 AWS_REKOGNITION_API Aws::String SerializePayload() const override;
30
31 AWS_REKOGNITION_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
32
34
39 inline const Aws::String& GetCollectionId() const { return m_collectionId; }
40 inline bool CollectionIdHasBeenSet() const { return m_collectionIdHasBeenSet; }
41 template <typename CollectionIdT = Aws::String>
42 void SetCollectionId(CollectionIdT&& value) {
43 m_collectionIdHasBeenSet = true;
44 m_collectionId = std::forward<CollectionIdT>(value);
45 }
46 template <typename CollectionIdT = Aws::String>
47 SearchUsersRequest& WithCollectionId(CollectionIdT&& value) {
48 SetCollectionId(std::forward<CollectionIdT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetUserId() const { return m_userId; }
58 inline bool UserIdHasBeenSet() const { return m_userIdHasBeenSet; }
59 template <typename UserIdT = Aws::String>
60 void SetUserId(UserIdT&& value) {
61 m_userIdHasBeenSet = true;
62 m_userId = std::forward<UserIdT>(value);
63 }
64 template <typename UserIdT = Aws::String>
65 SearchUsersRequest& WithUserId(UserIdT&& value) {
66 SetUserId(std::forward<UserIdT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::String& GetFaceId() const { return m_faceId; }
76 inline bool FaceIdHasBeenSet() const { return m_faceIdHasBeenSet; }
77 template <typename FaceIdT = Aws::String>
78 void SetFaceId(FaceIdT&& value) {
79 m_faceIdHasBeenSet = true;
80 m_faceId = std::forward<FaceIdT>(value);
81 }
82 template <typename FaceIdT = Aws::String>
83 SearchUsersRequest& WithFaceId(FaceIdT&& value) {
84 SetFaceId(std::forward<FaceIdT>(value));
85 return *this;
86 }
88
90
94 inline double GetUserMatchThreshold() const { return m_userMatchThreshold; }
95 inline bool UserMatchThresholdHasBeenSet() const { return m_userMatchThresholdHasBeenSet; }
96 inline void SetUserMatchThreshold(double value) {
97 m_userMatchThresholdHasBeenSet = true;
98 m_userMatchThreshold = value;
99 }
102 return *this;
103 }
105
107
110 inline int GetMaxUsers() const { return m_maxUsers; }
111 inline bool MaxUsersHasBeenSet() const { return m_maxUsersHasBeenSet; }
112 inline void SetMaxUsers(int value) {
113 m_maxUsersHasBeenSet = true;
114 m_maxUsers = value;
115 }
116 inline SearchUsersRequest& WithMaxUsers(int value) {
117 SetMaxUsers(value);
118 return *this;
119 }
121 private:
122 Aws::String m_collectionId;
123 bool m_collectionIdHasBeenSet = false;
124
125 Aws::String m_userId;
126 bool m_userIdHasBeenSet = false;
127
128 Aws::String m_faceId;
129 bool m_faceIdHasBeenSet = false;
130
131 double m_userMatchThreshold{0.0};
132 bool m_userMatchThresholdHasBeenSet = false;
133
134 int m_maxUsers{0};
135 bool m_maxUsersHasBeenSet = false;
136};
137
138} // namespace Model
139} // namespace Rekognition
140} // namespace Aws
AWS_REKOGNITION_API SearchUsersRequest()=default
SearchUsersRequest & WithUserMatchThreshold(double value)
SearchUsersRequest & WithCollectionId(CollectionIdT &&value)
SearchUsersRequest & WithMaxUsers(int value)
SearchUsersRequest & WithUserId(UserIdT &&value)
virtual const char * GetServiceRequestName() const override
AWS_REKOGNITION_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
SearchUsersRequest & WithFaceId(FaceIdT &&value)
AWS_REKOGNITION_API Aws::String SerializePayload() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String