AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetCollectionId(const Aws::String& value) { m_collectionIdHasBeenSet = true; m_collectionId = value; }
46 inline void SetCollectionId(Aws::String&& value) { m_collectionIdHasBeenSet = true; m_collectionId = std::move(value); }
47 inline void SetCollectionId(const char* value) { m_collectionIdHasBeenSet = true; m_collectionId.assign(value); }
48 inline SearchUsersByImageRequest& WithCollectionId(const Aws::String& value) { SetCollectionId(value); return *this;}
49 inline SearchUsersByImageRequest& WithCollectionId(Aws::String&& value) { SetCollectionId(std::move(value)); return *this;}
50 inline SearchUsersByImageRequest& WithCollectionId(const char* value) { SetCollectionId(value); return *this;}
52
54
55 inline const Image& GetImage() const{ return m_image; }
56 inline bool ImageHasBeenSet() const { return m_imageHasBeenSet; }
57 inline void SetImage(const Image& value) { m_imageHasBeenSet = true; m_image = value; }
58 inline void SetImage(Image&& value) { m_imageHasBeenSet = true; m_image = std::move(value); }
59 inline SearchUsersByImageRequest& WithImage(const Image& value) { SetImage(value); return *this;}
60 inline SearchUsersByImageRequest& WithImage(Image&& value) { SetImage(std::move(value)); return *this;}
62
64
68 inline double GetUserMatchThreshold() const{ return m_userMatchThreshold; }
69 inline bool UserMatchThresholdHasBeenSet() const { return m_userMatchThresholdHasBeenSet; }
70 inline void SetUserMatchThreshold(double value) { m_userMatchThresholdHasBeenSet = true; m_userMatchThreshold = value; }
71 inline SearchUsersByImageRequest& WithUserMatchThreshold(double value) { SetUserMatchThreshold(value); return *this;}
73
75
78 inline int GetMaxUsers() const{ return m_maxUsers; }
79 inline bool MaxUsersHasBeenSet() const { return m_maxUsersHasBeenSet; }
80 inline void SetMaxUsers(int value) { m_maxUsersHasBeenSet = true; m_maxUsers = value; }
81 inline SearchUsersByImageRequest& WithMaxUsers(int value) { SetMaxUsers(value); return *this;}
83
85
90 inline const QualityFilter& GetQualityFilter() const{ return m_qualityFilter; }
91 inline bool QualityFilterHasBeenSet() const { return m_qualityFilterHasBeenSet; }
92 inline void SetQualityFilter(const QualityFilter& value) { m_qualityFilterHasBeenSet = true; m_qualityFilter = value; }
93 inline void SetQualityFilter(QualityFilter&& value) { m_qualityFilterHasBeenSet = true; m_qualityFilter = std::move(value); }
94 inline SearchUsersByImageRequest& WithQualityFilter(const QualityFilter& value) { SetQualityFilter(value); return *this;}
95 inline SearchUsersByImageRequest& WithQualityFilter(QualityFilter&& value) { SetQualityFilter(std::move(value)); return *this;}
97 private:
98
99 Aws::String m_collectionId;
100 bool m_collectionIdHasBeenSet = false;
101
102 Image m_image;
103 bool m_imageHasBeenSet = false;
104
105 double m_userMatchThreshold;
106 bool m_userMatchThresholdHasBeenSet = false;
107
108 int m_maxUsers;
109 bool m_maxUsersHasBeenSet = false;
110
111 QualityFilter m_qualityFilter;
112 bool m_qualityFilterHasBeenSet = false;
113 };
114
115} // namespace Model
116} // namespace Rekognition
117} // namespace Aws
SearchUsersByImageRequest & WithCollectionId(const Aws::String &value)
SearchUsersByImageRequest & WithImage(const Image &value)
SearchUsersByImageRequest & WithImage(Image &&value)
SearchUsersByImageRequest & WithCollectionId(Aws::String &&value)
SearchUsersByImageRequest & WithUserMatchThreshold(double value)
SearchUsersByImageRequest & WithQualityFilter(QualityFilter &&value)
SearchUsersByImageRequest & WithQualityFilter(const QualityFilter &value)
AWS_REKOGNITION_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
SearchUsersByImageRequest & WithCollectionId(const char *value)
virtual const char * GetServiceRequestName() const override
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