AWS SDK for C++

AWS SDK for C++ Version 1.11.762

Loading...
Searching...
No Matches
DetectProtectiveEquipmentResult.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/ProtectiveEquipmentPerson.h>
12#include <aws/rekognition/model/ProtectiveEquipmentSummary.h>
13
14#include <utility>
15
16namespace Aws {
17template <typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils {
21namespace Json {
22class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace Rekognition {
26namespace Model {
28 public:
29 AWS_REKOGNITION_API DetectProtectiveEquipmentResult() = default;
32
34
38 inline const Aws::String& GetProtectiveEquipmentModelVersion() const { return m_protectiveEquipmentModelVersion; }
39 template <typename ProtectiveEquipmentModelVersionT = Aws::String>
40 void SetProtectiveEquipmentModelVersion(ProtectiveEquipmentModelVersionT&& value) {
41 m_protectiveEquipmentModelVersionHasBeenSet = true;
42 m_protectiveEquipmentModelVersion = std::forward<ProtectiveEquipmentModelVersionT>(value);
43 }
44 template <typename ProtectiveEquipmentModelVersionT = Aws::String>
45 DetectProtectiveEquipmentResult& WithProtectiveEquipmentModelVersion(ProtectiveEquipmentModelVersionT&& value) {
46 SetProtectiveEquipmentModelVersion(std::forward<ProtectiveEquipmentModelVersionT>(value));
47 return *this;
48 }
50
52
56 inline const Aws::Vector<ProtectiveEquipmentPerson>& GetPersons() const { return m_persons; }
57 template <typename PersonsT = Aws::Vector<ProtectiveEquipmentPerson>>
58 void SetPersons(PersonsT&& value) {
59 m_personsHasBeenSet = true;
60 m_persons = std::forward<PersonsT>(value);
61 }
62 template <typename PersonsT = Aws::Vector<ProtectiveEquipmentPerson>>
64 SetPersons(std::forward<PersonsT>(value));
65 return *this;
66 }
67 template <typename PersonsT = ProtectiveEquipmentPerson>
69 m_personsHasBeenSet = true;
70 m_persons.emplace_back(std::forward<PersonsT>(value));
71 return *this;
72 }
74
76
80 inline const ProtectiveEquipmentSummary& GetSummary() const { return m_summary; }
81 template <typename SummaryT = ProtectiveEquipmentSummary>
82 void SetSummary(SummaryT&& value) {
83 m_summaryHasBeenSet = true;
84 m_summary = std::forward<SummaryT>(value);
85 }
86 template <typename SummaryT = ProtectiveEquipmentSummary>
88 SetSummary(std::forward<SummaryT>(value));
89 return *this;
90 }
92
94
95 inline const Aws::String& GetRequestId() const { return m_requestId; }
96 template <typename RequestIdT = Aws::String>
97 void SetRequestId(RequestIdT&& value) {
98 m_requestIdHasBeenSet = true;
99 m_requestId = std::forward<RequestIdT>(value);
100 }
101 template <typename RequestIdT = Aws::String>
103 SetRequestId(std::forward<RequestIdT>(value));
104 return *this;
105 }
107 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
108
109 private:
110 Aws::String m_protectiveEquipmentModelVersion;
111
113
115
116 Aws::String m_requestId;
117 Aws::Http::HttpResponseCode m_HttpResponseCode;
118 bool m_protectiveEquipmentModelVersionHasBeenSet = false;
119 bool m_personsHasBeenSet = false;
120 bool m_summaryHasBeenSet = false;
121 bool m_requestIdHasBeenSet = false;
122};
123
124} // namespace Model
125} // namespace Rekognition
126} // namespace Aws
DetectProtectiveEquipmentResult & AddPersons(PersonsT &&value)
AWS_REKOGNITION_API DetectProtectiveEquipmentResult()=default
DetectProtectiveEquipmentResult & WithProtectiveEquipmentModelVersion(ProtectiveEquipmentModelVersionT &&value)
void SetProtectiveEquipmentModelVersion(ProtectiveEquipmentModelVersionT &&value)
DetectProtectiveEquipmentResult & WithRequestId(RequestIdT &&value)
const Aws::Vector< ProtectiveEquipmentPerson > & GetPersons() const
AWS_REKOGNITION_API DetectProtectiveEquipmentResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DetectProtectiveEquipmentResult & WithSummary(SummaryT &&value)
AWS_REKOGNITION_API DetectProtectiveEquipmentResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DetectProtectiveEquipmentResult & WithPersons(PersonsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue