AWS SDK for C++

AWS SDK for C++ Version 1.11.685

Loading...
Searching...
No Matches
DeleteFacesRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/rekognition/RekognitionRequest.h>
10#include <aws/rekognition/Rekognition_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Rekognition {
16namespace Model {
17
21 public:
22 AWS_REKOGNITION_API DeleteFacesRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "DeleteFaces"; }
29
30 AWS_REKOGNITION_API Aws::String SerializePayload() const override;
31
32 AWS_REKOGNITION_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
33
35
38 inline const Aws::String& GetCollectionId() const { return m_collectionId; }
39 inline bool CollectionIdHasBeenSet() const { return m_collectionIdHasBeenSet; }
40 template <typename CollectionIdT = Aws::String>
41 void SetCollectionId(CollectionIdT&& value) {
42 m_collectionIdHasBeenSet = true;
43 m_collectionId = std::forward<CollectionIdT>(value);
44 }
45 template <typename CollectionIdT = Aws::String>
46 DeleteFacesRequest& WithCollectionId(CollectionIdT&& value) {
47 SetCollectionId(std::forward<CollectionIdT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::Vector<Aws::String>& GetFaceIds() const { return m_faceIds; }
57 inline bool FaceIdsHasBeenSet() const { return m_faceIdsHasBeenSet; }
58 template <typename FaceIdsT = Aws::Vector<Aws::String>>
59 void SetFaceIds(FaceIdsT&& value) {
60 m_faceIdsHasBeenSet = true;
61 m_faceIds = std::forward<FaceIdsT>(value);
62 }
63 template <typename FaceIdsT = Aws::Vector<Aws::String>>
64 DeleteFacesRequest& WithFaceIds(FaceIdsT&& value) {
65 SetFaceIds(std::forward<FaceIdsT>(value));
66 return *this;
67 }
68 template <typename FaceIdsT = Aws::String>
69 DeleteFacesRequest& AddFaceIds(FaceIdsT&& value) {
70 m_faceIdsHasBeenSet = true;
71 m_faceIds.emplace_back(std::forward<FaceIdsT>(value));
72 return *this;
73 }
75 private:
76 Aws::String m_collectionId;
77 bool m_collectionIdHasBeenSet = false;
78
80 bool m_faceIdsHasBeenSet = false;
81};
82
83} // namespace Model
84} // namespace Rekognition
85} // namespace Aws
DeleteFacesRequest & WithCollectionId(CollectionIdT &&value)
AWS_REKOGNITION_API DeleteFacesRequest()=default
AWS_REKOGNITION_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
virtual const char * GetServiceRequestName() const override
AWS_REKOGNITION_API Aws::String SerializePayload() const override
DeleteFacesRequest & AddFaceIds(FaceIdsT &&value)
const Aws::Vector< Aws::String > & GetFaceIds() const
DeleteFacesRequest & WithFaceIds(FaceIdsT &&value)
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