AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AssociateFacesRequest.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/core/utils/memory/stl/AWSVector.h>
11#include <utility>
12#include <aws/core/utils/UUID.h>
13
14namespace Aws
15{
16namespace Rekognition
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_REKOGNITION_API AssociateFacesRequest();
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 "AssociateFaces"; }
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 AssociateFacesRequest& WithCollectionId(const Aws::String& value) { SetCollectionId(value); return *this;}
49 inline AssociateFacesRequest& WithCollectionId(Aws::String&& value) { SetCollectionId(std::move(value)); return *this;}
50 inline AssociateFacesRequest& WithCollectionId(const char* value) { SetCollectionId(value); return *this;}
52
54
57 inline const Aws::String& GetUserId() const{ return m_userId; }
58 inline bool UserIdHasBeenSet() const { return m_userIdHasBeenSet; }
59 inline void SetUserId(const Aws::String& value) { m_userIdHasBeenSet = true; m_userId = value; }
60 inline void SetUserId(Aws::String&& value) { m_userIdHasBeenSet = true; m_userId = std::move(value); }
61 inline void SetUserId(const char* value) { m_userIdHasBeenSet = true; m_userId.assign(value); }
62 inline AssociateFacesRequest& WithUserId(const Aws::String& value) { SetUserId(value); return *this;}
63 inline AssociateFacesRequest& WithUserId(Aws::String&& value) { SetUserId(std::move(value)); return *this;}
64 inline AssociateFacesRequest& WithUserId(const char* value) { SetUserId(value); return *this;}
66
68
71 inline const Aws::Vector<Aws::String>& GetFaceIds() const{ return m_faceIds; }
72 inline bool FaceIdsHasBeenSet() const { return m_faceIdsHasBeenSet; }
73 inline void SetFaceIds(const Aws::Vector<Aws::String>& value) { m_faceIdsHasBeenSet = true; m_faceIds = value; }
74 inline void SetFaceIds(Aws::Vector<Aws::String>&& value) { m_faceIdsHasBeenSet = true; m_faceIds = std::move(value); }
75 inline AssociateFacesRequest& WithFaceIds(const Aws::Vector<Aws::String>& value) { SetFaceIds(value); return *this;}
76 inline AssociateFacesRequest& WithFaceIds(Aws::Vector<Aws::String>&& value) { SetFaceIds(std::move(value)); return *this;}
77 inline AssociateFacesRequest& AddFaceIds(const Aws::String& value) { m_faceIdsHasBeenSet = true; m_faceIds.push_back(value); return *this; }
78 inline AssociateFacesRequest& AddFaceIds(Aws::String&& value) { m_faceIdsHasBeenSet = true; m_faceIds.push_back(std::move(value)); return *this; }
79 inline AssociateFacesRequest& AddFaceIds(const char* value) { m_faceIdsHasBeenSet = true; m_faceIds.push_back(value); return *this; }
81
83
87 inline double GetUserMatchThreshold() const{ return m_userMatchThreshold; }
88 inline bool UserMatchThresholdHasBeenSet() const { return m_userMatchThresholdHasBeenSet; }
89 inline void SetUserMatchThreshold(double value) { m_userMatchThresholdHasBeenSet = true; m_userMatchThreshold = value; }
90 inline AssociateFacesRequest& WithUserMatchThreshold(double value) { SetUserMatchThreshold(value); return *this;}
92
94
100 inline const Aws::String& GetClientRequestToken() const{ return m_clientRequestToken; }
101 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
102 inline void SetClientRequestToken(const Aws::String& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = value; }
103 inline void SetClientRequestToken(Aws::String&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::move(value); }
104 inline void SetClientRequestToken(const char* value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken.assign(value); }
106 inline AssociateFacesRequest& WithClientRequestToken(Aws::String&& value) { SetClientRequestToken(std::move(value)); return *this;}
107 inline AssociateFacesRequest& WithClientRequestToken(const char* value) { SetClientRequestToken(value); return *this;}
109 private:
110
111 Aws::String m_collectionId;
112 bool m_collectionIdHasBeenSet = false;
113
114 Aws::String m_userId;
115 bool m_userIdHasBeenSet = false;
116
117 Aws::Vector<Aws::String> m_faceIds;
118 bool m_faceIdsHasBeenSet = false;
119
120 double m_userMatchThreshold;
121 bool m_userMatchThresholdHasBeenSet = false;
122
123 Aws::String m_clientRequestToken;
124 bool m_clientRequestTokenHasBeenSet = false;
125 };
126
127} // namespace Model
128} // namespace Rekognition
129} // namespace Aws
AssociateFacesRequest & WithCollectionId(const Aws::String &value)
AssociateFacesRequest & WithClientRequestToken(const char *value)
AssociateFacesRequest & AddFaceIds(Aws::String &&value)
AssociateFacesRequest & AddFaceIds(const Aws::String &value)
AssociateFacesRequest & WithUserMatchThreshold(double value)
AssociateFacesRequest & WithUserId(const char *value)
AssociateFacesRequest & WithCollectionId(const char *value)
AssociateFacesRequest & WithFaceIds(const Aws::Vector< Aws::String > &value)
AssociateFacesRequest & WithUserId(Aws::String &&value)
AssociateFacesRequest & WithClientRequestToken(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
void SetFaceIds(const Aws::Vector< Aws::String > &value)
AssociateFacesRequest & WithClientRequestToken(Aws::String &&value)
AWS_REKOGNITION_API Aws::String SerializePayload() const override
AssociateFacesRequest & WithCollectionId(Aws::String &&value)
void SetFaceIds(Aws::Vector< Aws::String > &&value)
AssociateFacesRequest & WithFaceIds(Aws::Vector< Aws::String > &&value)
const Aws::Vector< Aws::String > & GetFaceIds() const
AssociateFacesRequest & WithUserId(const Aws::String &value)
AssociateFacesRequest & AddFaceIds(const char *value)
AWS_REKOGNITION_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
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