AWS SDK for C++

AWS SDK for C++ Version 1.11.785

Loading...
Searching...
No Matches
DisassociateFacesResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/rekognition/Rekognition_EXPORTS.h>
11#include <aws/rekognition/model/DisassociatedFace.h>
12#include <aws/rekognition/model/UnsuccessfulFaceDisassociation.h>
13#include <aws/rekognition/model/UserStatus.h>
14
15#include <utility>
16
17namespace Aws {
18template <typename RESULT_TYPE>
19class AmazonWebServiceResult;
20
21namespace Utils {
22namespace Json {
23class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace Rekognition {
27namespace Model {
29 public:
30 AWS_REKOGNITION_API DisassociateFacesResult() = default;
33
35
40 inline const Aws::Vector<DisassociatedFace>& GetDisassociatedFaces() const { return m_disassociatedFaces; }
41 template <typename DisassociatedFacesT = Aws::Vector<DisassociatedFace>>
42 void SetDisassociatedFaces(DisassociatedFacesT&& value) {
43 m_disassociatedFacesHasBeenSet = true;
44 m_disassociatedFaces = std::forward<DisassociatedFacesT>(value);
45 }
46 template <typename DisassociatedFacesT = Aws::Vector<DisassociatedFace>>
47 DisassociateFacesResult& WithDisassociatedFaces(DisassociatedFacesT&& value) {
48 SetDisassociatedFaces(std::forward<DisassociatedFacesT>(value));
49 return *this;
50 }
51 template <typename DisassociatedFacesT = DisassociatedFace>
52 DisassociateFacesResult& AddDisassociatedFaces(DisassociatedFacesT&& value) {
53 m_disassociatedFacesHasBeenSet = true;
54 m_disassociatedFaces.emplace_back(std::forward<DisassociatedFacesT>(value));
55 return *this;
56 }
58
60
66 return m_unsuccessfulFaceDisassociations;
67 }
68 template <typename UnsuccessfulFaceDisassociationsT = Aws::Vector<UnsuccessfulFaceDisassociation>>
69 void SetUnsuccessfulFaceDisassociations(UnsuccessfulFaceDisassociationsT&& value) {
70 m_unsuccessfulFaceDisassociationsHasBeenSet = true;
71 m_unsuccessfulFaceDisassociations = std::forward<UnsuccessfulFaceDisassociationsT>(value);
72 }
73 template <typename UnsuccessfulFaceDisassociationsT = Aws::Vector<UnsuccessfulFaceDisassociation>>
74 DisassociateFacesResult& WithUnsuccessfulFaceDisassociations(UnsuccessfulFaceDisassociationsT&& value) {
75 SetUnsuccessfulFaceDisassociations(std::forward<UnsuccessfulFaceDisassociationsT>(value));
76 return *this;
77 }
78 template <typename UnsuccessfulFaceDisassociationsT = UnsuccessfulFaceDisassociation>
79 DisassociateFacesResult& AddUnsuccessfulFaceDisassociations(UnsuccessfulFaceDisassociationsT&& value) {
80 m_unsuccessfulFaceDisassociationsHasBeenSet = true;
81 m_unsuccessfulFaceDisassociations.emplace_back(std::forward<UnsuccessfulFaceDisassociationsT>(value));
82 return *this;
83 }
85
87
91 inline UserStatus GetUserStatus() const { return m_userStatus; }
92 inline void SetUserStatus(UserStatus value) {
93 m_userStatusHasBeenSet = true;
94 m_userStatus = value;
95 }
97 SetUserStatus(value);
98 return *this;
99 }
101
103
104 inline const Aws::String& GetRequestId() const { return m_requestId; }
105 template <typename RequestIdT = Aws::String>
106 void SetRequestId(RequestIdT&& value) {
107 m_requestIdHasBeenSet = true;
108 m_requestId = std::forward<RequestIdT>(value);
109 }
110 template <typename RequestIdT = Aws::String>
112 SetRequestId(std::forward<RequestIdT>(value));
113 return *this;
114 }
116 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
117
118 private:
119 Aws::Vector<DisassociatedFace> m_disassociatedFaces;
120
121 Aws::Vector<UnsuccessfulFaceDisassociation> m_unsuccessfulFaceDisassociations;
122
123 UserStatus m_userStatus{UserStatus::NOT_SET};
124
125 Aws::String m_requestId;
126 Aws::Http::HttpResponseCode m_HttpResponseCode;
127 bool m_disassociatedFacesHasBeenSet = false;
128 bool m_unsuccessfulFaceDisassociationsHasBeenSet = false;
129 bool m_userStatusHasBeenSet = false;
130 bool m_requestIdHasBeenSet = false;
131};
132
133} // namespace Model
134} // namespace Rekognition
135} // namespace Aws
const Aws::Vector< UnsuccessfulFaceDisassociation > & GetUnsuccessfulFaceDisassociations() const
DisassociateFacesResult & AddDisassociatedFaces(DisassociatedFacesT &&value)
DisassociateFacesResult & WithUserStatus(UserStatus value)
AWS_REKOGNITION_API DisassociateFacesResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DisassociateFacesResult & AddUnsuccessfulFaceDisassociations(UnsuccessfulFaceDisassociationsT &&value)
DisassociateFacesResult & WithUnsuccessfulFaceDisassociations(UnsuccessfulFaceDisassociationsT &&value)
DisassociateFacesResult & WithDisassociatedFaces(DisassociatedFacesT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
void SetDisassociatedFaces(DisassociatedFacesT &&value)
AWS_REKOGNITION_API DisassociateFacesResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetUnsuccessfulFaceDisassociations(UnsuccessfulFaceDisassociationsT &&value)
AWS_REKOGNITION_API DisassociateFacesResult()=default
DisassociateFacesResult & WithRequestId(RequestIdT &&value)
const Aws::Vector< DisassociatedFace > & GetDisassociatedFaces() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue