AWS SDK for C++

AWS SDK for C++ Version 1.11.683

Loading...
Searching...
No Matches
SearchUsersByImageRequest.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#include <aws/rekognition/model/Image.h>
11#include <aws/rekognition/model/QualityFilter.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Rekognition {
17namespace Model {
18
22 public:
23 AWS_REKOGNITION_API SearchUsersByImageRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "SearchUsersByImage"; }
30
31 AWS_REKOGNITION_API Aws::String SerializePayload() const override;
32
33 AWS_REKOGNITION_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
34
36
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>
48 SetCollectionId(std::forward<CollectionIdT>(value));
49 return *this;
50 }
52
54
55 inline const Image& GetImage() const { return m_image; }
56 inline bool ImageHasBeenSet() const { return m_imageHasBeenSet; }
57 template <typename ImageT = Image>
58 void SetImage(ImageT&& value) {
59 m_imageHasBeenSet = true;
60 m_image = std::forward<ImageT>(value);
61 }
62 template <typename ImageT = Image>
64 SetImage(std::forward<ImageT>(value));
65 return *this;
66 }
68
70
74 inline double GetUserMatchThreshold() const { return m_userMatchThreshold; }
75 inline bool UserMatchThresholdHasBeenSet() const { return m_userMatchThresholdHasBeenSet; }
76 inline void SetUserMatchThreshold(double value) {
77 m_userMatchThresholdHasBeenSet = true;
78 m_userMatchThreshold = value;
79 }
82 return *this;
83 }
85
87
90 inline int GetMaxUsers() const { return m_maxUsers; }
91 inline bool MaxUsersHasBeenSet() const { return m_maxUsersHasBeenSet; }
92 inline void SetMaxUsers(int value) {
93 m_maxUsersHasBeenSet = true;
94 m_maxUsers = value;
95 }
97 SetMaxUsers(value);
98 return *this;
99 }
101
103
108 inline QualityFilter GetQualityFilter() const { return m_qualityFilter; }
109 inline bool QualityFilterHasBeenSet() const { return m_qualityFilterHasBeenSet; }
110 inline void SetQualityFilter(QualityFilter value) {
111 m_qualityFilterHasBeenSet = true;
112 m_qualityFilter = value;
113 }
115 SetQualityFilter(value);
116 return *this;
117 }
119 private:
120 Aws::String m_collectionId;
121 bool m_collectionIdHasBeenSet = false;
122
123 Image m_image;
124 bool m_imageHasBeenSet = false;
125
126 double m_userMatchThreshold{0.0};
127 bool m_userMatchThresholdHasBeenSet = false;
128
129 int m_maxUsers{0};
130 bool m_maxUsersHasBeenSet = false;
131
132 QualityFilter m_qualityFilter{QualityFilter::NOT_SET};
133 bool m_qualityFilterHasBeenSet = false;
134};
135
136} // namespace Model
137} // namespace Rekognition
138} // namespace Aws
SearchUsersByImageRequest & WithCollectionId(CollectionIdT &&value)
SearchUsersByImageRequest & WithUserMatchThreshold(double value)
SearchUsersByImageRequest & WithImage(ImageT &&value)
SearchUsersByImageRequest & WithQualityFilter(QualityFilter value)
AWS_REKOGNITION_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
virtual const char * GetServiceRequestName() const override
AWS_REKOGNITION_API Aws::String SerializePayload() const override
AWS_REKOGNITION_API SearchUsersByImageRequest()=default
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String