AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
DisassociateFacesRequest.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 DisassociateFacesRequest() = 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 "DisassociateFaces"; }
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 DisassociateFacesRequest& WithCollectionId(CollectionIdT&& value) { SetCollectionId(std::forward<CollectionIdT>(value)); return *this;}
50
52
55 inline const Aws::String& GetUserId() const { return m_userId; }
56 inline bool UserIdHasBeenSet() const { return m_userIdHasBeenSet; }
57 template<typename UserIdT = Aws::String>
58 void SetUserId(UserIdT&& value) { m_userIdHasBeenSet = true; m_userId = std::forward<UserIdT>(value); }
59 template<typename UserIdT = Aws::String>
60 DisassociateFacesRequest& WithUserId(UserIdT&& value) { SetUserId(std::forward<UserIdT>(value)); return *this;}
62
64
71 inline const Aws::String& GetClientRequestToken() const { return m_clientRequestToken; }
72 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
73 template<typename ClientRequestTokenT = Aws::String>
74 void SetClientRequestToken(ClientRequestTokenT&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::forward<ClientRequestTokenT>(value); }
75 template<typename ClientRequestTokenT = Aws::String>
76 DisassociateFacesRequest& WithClientRequestToken(ClientRequestTokenT&& value) { SetClientRequestToken(std::forward<ClientRequestTokenT>(value)); return *this;}
78
80
83 inline const Aws::Vector<Aws::String>& GetFaceIds() const { return m_faceIds; }
84 inline bool FaceIdsHasBeenSet() const { return m_faceIdsHasBeenSet; }
85 template<typename FaceIdsT = Aws::Vector<Aws::String>>
86 void SetFaceIds(FaceIdsT&& value) { m_faceIdsHasBeenSet = true; m_faceIds = std::forward<FaceIdsT>(value); }
87 template<typename FaceIdsT = Aws::Vector<Aws::String>>
88 DisassociateFacesRequest& WithFaceIds(FaceIdsT&& value) { SetFaceIds(std::forward<FaceIdsT>(value)); return *this;}
89 template<typename FaceIdsT = Aws::String>
90 DisassociateFacesRequest& AddFaceIds(FaceIdsT&& value) { m_faceIdsHasBeenSet = true; m_faceIds.emplace_back(std::forward<FaceIdsT>(value)); return *this; }
92 private:
93
94 Aws::String m_collectionId;
95 bool m_collectionIdHasBeenSet = false;
96
97 Aws::String m_userId;
98 bool m_userIdHasBeenSet = false;
99
100 Aws::String m_clientRequestToken{Aws::Utils::UUID::PseudoRandomUUID()};
101 bool m_clientRequestTokenHasBeenSet = true;
102
103 Aws::Vector<Aws::String> m_faceIds;
104 bool m_faceIdsHasBeenSet = false;
105 };
106
107} // namespace Model
108} // namespace Rekognition
109} // 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