AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
DisassociateFacesRequest.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 DisassociateFacesRequest() = 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 "DisassociateFaces"; }
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
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
79 inline const Aws::String& GetClientRequestToken() const { return m_clientRequestToken; }
80 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
81 template <typename ClientRequestTokenT = Aws::String>
82 void SetClientRequestToken(ClientRequestTokenT&& value) {
83 m_clientRequestTokenHasBeenSet = true;
84 m_clientRequestToken = std::forward<ClientRequestTokenT>(value);
85 }
86 template <typename ClientRequestTokenT = Aws::String>
87 DisassociateFacesRequest& WithClientRequestToken(ClientRequestTokenT&& value) {
88 SetClientRequestToken(std::forward<ClientRequestTokenT>(value));
89 return *this;
90 }
92
94
97 inline const Aws::Vector<Aws::String>& GetFaceIds() const { return m_faceIds; }
98 inline bool FaceIdsHasBeenSet() const { return m_faceIdsHasBeenSet; }
99 template <typename FaceIdsT = Aws::Vector<Aws::String>>
100 void SetFaceIds(FaceIdsT&& value) {
101 m_faceIdsHasBeenSet = true;
102 m_faceIds = std::forward<FaceIdsT>(value);
103 }
104 template <typename FaceIdsT = Aws::Vector<Aws::String>>
106 SetFaceIds(std::forward<FaceIdsT>(value));
107 return *this;
108 }
109 template <typename FaceIdsT = Aws::String>
111 m_faceIdsHasBeenSet = true;
112 m_faceIds.emplace_back(std::forward<FaceIdsT>(value));
113 return *this;
114 }
116 private:
117 Aws::String m_collectionId;
118
119 Aws::String m_userId;
120
121 Aws::String m_clientRequestToken{Aws::Utils::UUID::PseudoRandomUUID()};
122
123 Aws::Vector<Aws::String> m_faceIds;
124 bool m_collectionIdHasBeenSet = false;
125 bool m_userIdHasBeenSet = false;
126 bool m_clientRequestTokenHasBeenSet = true;
127 bool m_faceIdsHasBeenSet = false;
128};
129
130} // namespace Model
131} // namespace Rekognition
132} // namespace Aws
DisassociateFacesRequest & AddFaceIds(FaceIdsT &&value)
const Aws::Vector< Aws::String > & GetFaceIds() const
AWS_REKOGNITION_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
DisassociateFacesRequest & WithCollectionId(CollectionIdT &&value)
AWS_REKOGNITION_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
DisassociateFacesRequest & WithClientRequestToken(ClientRequestTokenT &&value)
AWS_REKOGNITION_API DisassociateFacesRequest()=default
DisassociateFacesRequest & WithUserId(UserIdT &&value)
DisassociateFacesRequest & WithFaceIds(FaceIdsT &&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