AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
SearchUsersByImageRequest.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/rekognition/model/Image.h>
11#include <aws/rekognition/model/QualityFilter.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Rekognition
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_REKOGNITION_API SearchUsersByImageRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "SearchUsersByImage"; }
33
34 AWS_REKOGNITION_API Aws::String SerializePayload() const override;
35
36 AWS_REKOGNITION_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
37
38
40
43 inline const Aws::String& GetCollectionId() const { return m_collectionId; }
44 inline bool CollectionIdHasBeenSet() const { return m_collectionIdHasBeenSet; }
45 template<typename CollectionIdT = Aws::String>
46 void SetCollectionId(CollectionIdT&& value) { m_collectionIdHasBeenSet = true; m_collectionId = std::forward<CollectionIdT>(value); }
47 template<typename CollectionIdT = Aws::String>
48 SearchUsersByImageRequest& WithCollectionId(CollectionIdT&& value) { SetCollectionId(std::forward<CollectionIdT>(value)); return *this;}
50
52
53 inline const Image& GetImage() const { return m_image; }
54 inline bool ImageHasBeenSet() const { return m_imageHasBeenSet; }
55 template<typename ImageT = Image>
56 void SetImage(ImageT&& value) { m_imageHasBeenSet = true; m_image = std::forward<ImageT>(value); }
57 template<typename ImageT = Image>
58 SearchUsersByImageRequest& WithImage(ImageT&& value) { SetImage(std::forward<ImageT>(value)); return *this;}
60
62
66 inline double GetUserMatchThreshold() const { return m_userMatchThreshold; }
67 inline bool UserMatchThresholdHasBeenSet() const { return m_userMatchThresholdHasBeenSet; }
68 inline void SetUserMatchThreshold(double value) { m_userMatchThresholdHasBeenSet = true; m_userMatchThreshold = value; }
69 inline SearchUsersByImageRequest& WithUserMatchThreshold(double value) { SetUserMatchThreshold(value); return *this;}
71
73
76 inline int GetMaxUsers() const { return m_maxUsers; }
77 inline bool MaxUsersHasBeenSet() const { return m_maxUsersHasBeenSet; }
78 inline void SetMaxUsers(int value) { m_maxUsersHasBeenSet = true; m_maxUsers = value; }
79 inline SearchUsersByImageRequest& WithMaxUsers(int value) { SetMaxUsers(value); return *this;}
81
83
88 inline QualityFilter GetQualityFilter() const { return m_qualityFilter; }
89 inline bool QualityFilterHasBeenSet() const { return m_qualityFilterHasBeenSet; }
90 inline void SetQualityFilter(QualityFilter value) { m_qualityFilterHasBeenSet = true; m_qualityFilter = value; }
93 private:
94
95 Aws::String m_collectionId;
96 bool m_collectionIdHasBeenSet = false;
97
98 Image m_image;
99 bool m_imageHasBeenSet = false;
100
101 double m_userMatchThreshold{0.0};
102 bool m_userMatchThresholdHasBeenSet = false;
103
104 int m_maxUsers{0};
105 bool m_maxUsersHasBeenSet = false;
106
107 QualityFilter m_qualityFilter{QualityFilter::NOT_SET};
108 bool m_qualityFilterHasBeenSet = false;
109 };
110
111} // namespace Model
112} // namespace Rekognition
113} // 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