AWS SDK for C++

AWS SDK for C++ Version 1.11.685

Loading...
Searching...
No Matches
AssociateFacesRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/rekognition/RekognitionRequest.h>
11#include <aws/rekognition/Rekognition_EXPORTS.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Rekognition {
17namespace Model {
18
22 public:
23 AWS_REKOGNITION_API AssociateFacesRequest() = 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 "AssociateFaces"; }
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>
47 AssociateFacesRequest& 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>
66 SetUserId(std::forward<UserIdT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::Vector<Aws::String>& GetFaceIds() const { return m_faceIds; }
76 inline bool FaceIdsHasBeenSet() const { return m_faceIdsHasBeenSet; }
77 template <typename FaceIdsT = Aws::Vector<Aws::String>>
78 void SetFaceIds(FaceIdsT&& value) {
79 m_faceIdsHasBeenSet = true;
80 m_faceIds = std::forward<FaceIdsT>(value);
81 }
82 template <typename FaceIdsT = Aws::Vector<Aws::String>>
84 SetFaceIds(std::forward<FaceIdsT>(value));
85 return *this;
86 }
87 template <typename FaceIdsT = Aws::String>
88 AssociateFacesRequest& AddFaceIds(FaceIdsT&& value) {
89 m_faceIdsHasBeenSet = true;
90 m_faceIds.emplace_back(std::forward<FaceIdsT>(value));
91 return *this;
92 }
94
96
100 inline double GetUserMatchThreshold() const { return m_userMatchThreshold; }
101 inline bool UserMatchThresholdHasBeenSet() const { return m_userMatchThresholdHasBeenSet; }
102 inline void SetUserMatchThreshold(double value) {
103 m_userMatchThresholdHasBeenSet = true;
104 m_userMatchThreshold = value;
105 }
108 return *this;
109 }
111
113
119 inline const Aws::String& GetClientRequestToken() const { return m_clientRequestToken; }
120 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
121 template <typename ClientRequestTokenT = Aws::String>
122 void SetClientRequestToken(ClientRequestTokenT&& value) {
123 m_clientRequestTokenHasBeenSet = true;
124 m_clientRequestToken = std::forward<ClientRequestTokenT>(value);
125 }
126 template <typename ClientRequestTokenT = Aws::String>
127 AssociateFacesRequest& WithClientRequestToken(ClientRequestTokenT&& value) {
128 SetClientRequestToken(std::forward<ClientRequestTokenT>(value));
129 return *this;
130 }
132 private:
133 Aws::String m_collectionId;
134 bool m_collectionIdHasBeenSet = false;
135
136 Aws::String m_userId;
137 bool m_userIdHasBeenSet = false;
138
139 Aws::Vector<Aws::String> m_faceIds;
140 bool m_faceIdsHasBeenSet = false;
141
142 double m_userMatchThreshold{0.0};
143 bool m_userMatchThresholdHasBeenSet = false;
144
145 Aws::String m_clientRequestToken{Aws::Utils::UUID::PseudoRandomUUID()};
146 bool m_clientRequestTokenHasBeenSet = true;
147};
148
149} // namespace Model
150} // namespace Rekognition
151} // namespace Aws
AssociateFacesRequest & AddFaceIds(FaceIdsT &&value)
void SetClientRequestToken(ClientRequestTokenT &&value)
AssociateFacesRequest & WithUserMatchThreshold(double value)
AssociateFacesRequest & WithCollectionId(CollectionIdT &&value)
AWS_REKOGNITION_API AssociateFacesRequest()=default
AssociateFacesRequest & WithFaceIds(FaceIdsT &&value)
virtual const char * GetServiceRequestName() const override
AWS_REKOGNITION_API Aws::String SerializePayload() const override
AssociateFacesRequest & WithUserId(UserIdT &&value)
const Aws::Vector< Aws::String > & GetFaceIds() const
AWS_REKOGNITION_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AssociateFacesRequest & WithClientRequestToken(ClientRequestTokenT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
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