AWS SDK for C++

AWS SDK for C++ Version 1.11.758

Loading...
Searching...
No Matches
DetectModerationLabelsResult.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/ContentType.h>
12#include <aws/rekognition/model/HumanLoopActivationOutput.h>
13#include <aws/rekognition/model/ModerationLabel.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 DetectModerationLabelsResult() = default;
33
35
39 inline const Aws::Vector<ModerationLabel>& GetModerationLabels() const { return m_moderationLabels; }
40 template <typename ModerationLabelsT = Aws::Vector<ModerationLabel>>
41 void SetModerationLabels(ModerationLabelsT&& value) {
42 m_moderationLabelsHasBeenSet = true;
43 m_moderationLabels = std::forward<ModerationLabelsT>(value);
44 }
45 template <typename ModerationLabelsT = Aws::Vector<ModerationLabel>>
47 SetModerationLabels(std::forward<ModerationLabelsT>(value));
48 return *this;
49 }
50 template <typename ModerationLabelsT = ModerationLabel>
52 m_moderationLabelsHasBeenSet = true;
53 m_moderationLabels.emplace_back(std::forward<ModerationLabelsT>(value));
54 return *this;
55 }
57
59
63 inline const Aws::String& GetModerationModelVersion() const { return m_moderationModelVersion; }
64 template <typename ModerationModelVersionT = Aws::String>
65 void SetModerationModelVersion(ModerationModelVersionT&& value) {
66 m_moderationModelVersionHasBeenSet = true;
67 m_moderationModelVersion = std::forward<ModerationModelVersionT>(value);
68 }
69 template <typename ModerationModelVersionT = Aws::String>
70 DetectModerationLabelsResult& WithModerationModelVersion(ModerationModelVersionT&& value) {
71 SetModerationModelVersion(std::forward<ModerationModelVersionT>(value));
72 return *this;
73 }
75
77
80 inline const HumanLoopActivationOutput& GetHumanLoopActivationOutput() const { return m_humanLoopActivationOutput; }
81 template <typename HumanLoopActivationOutputT = HumanLoopActivationOutput>
82 void SetHumanLoopActivationOutput(HumanLoopActivationOutputT&& value) {
83 m_humanLoopActivationOutputHasBeenSet = true;
84 m_humanLoopActivationOutput = std::forward<HumanLoopActivationOutputT>(value);
85 }
86 template <typename HumanLoopActivationOutputT = HumanLoopActivationOutput>
87 DetectModerationLabelsResult& WithHumanLoopActivationOutput(HumanLoopActivationOutputT&& value) {
88 SetHumanLoopActivationOutput(std::forward<HumanLoopActivationOutputT>(value));
89 return *this;
90 }
92
94
99 inline const Aws::String& GetProjectVersion() const { return m_projectVersion; }
100 template <typename ProjectVersionT = Aws::String>
101 void SetProjectVersion(ProjectVersionT&& value) {
102 m_projectVersionHasBeenSet = true;
103 m_projectVersion = std::forward<ProjectVersionT>(value);
104 }
105 template <typename ProjectVersionT = Aws::String>
107 SetProjectVersion(std::forward<ProjectVersionT>(value));
108 return *this;
109 }
111
113
117 inline const Aws::Vector<ContentType>& GetContentTypes() const { return m_contentTypes; }
118 template <typename ContentTypesT = Aws::Vector<ContentType>>
119 void SetContentTypes(ContentTypesT&& value) {
120 m_contentTypesHasBeenSet = true;
121 m_contentTypes = std::forward<ContentTypesT>(value);
122 }
123 template <typename ContentTypesT = Aws::Vector<ContentType>>
125 SetContentTypes(std::forward<ContentTypesT>(value));
126 return *this;
127 }
128 template <typename ContentTypesT = ContentType>
130 m_contentTypesHasBeenSet = true;
131 m_contentTypes.emplace_back(std::forward<ContentTypesT>(value));
132 return *this;
133 }
135
137
138 inline const Aws::String& GetRequestId() const { return m_requestId; }
139 template <typename RequestIdT = Aws::String>
140 void SetRequestId(RequestIdT&& value) {
141 m_requestIdHasBeenSet = true;
142 m_requestId = std::forward<RequestIdT>(value);
143 }
144 template <typename RequestIdT = Aws::String>
146 SetRequestId(std::forward<RequestIdT>(value));
147 return *this;
148 }
150 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
151
152 private:
153 Aws::Vector<ModerationLabel> m_moderationLabels;
154
155 Aws::String m_moderationModelVersion;
156
157 HumanLoopActivationOutput m_humanLoopActivationOutput;
158
159 Aws::String m_projectVersion;
160
161 Aws::Vector<ContentType> m_contentTypes;
162
163 Aws::String m_requestId;
164 Aws::Http::HttpResponseCode m_HttpResponseCode;
165 bool m_moderationLabelsHasBeenSet = false;
166 bool m_moderationModelVersionHasBeenSet = false;
167 bool m_humanLoopActivationOutputHasBeenSet = false;
168 bool m_projectVersionHasBeenSet = false;
169 bool m_contentTypesHasBeenSet = false;
170 bool m_requestIdHasBeenSet = false;
171};
172
173} // namespace Model
174} // namespace Rekognition
175} // namespace Aws
void SetHumanLoopActivationOutput(HumanLoopActivationOutputT &&value)
DetectModerationLabelsResult & WithModerationLabels(ModerationLabelsT &&value)
AWS_REKOGNITION_API DetectModerationLabelsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DetectModerationLabelsResult & AddModerationLabels(ModerationLabelsT &&value)
AWS_REKOGNITION_API DetectModerationLabelsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DetectModerationLabelsResult & AddContentTypes(ContentTypesT &&value)
DetectModerationLabelsResult & WithProjectVersion(ProjectVersionT &&value)
DetectModerationLabelsResult & WithContentTypes(ContentTypesT &&value)
DetectModerationLabelsResult & WithHumanLoopActivationOutput(HumanLoopActivationOutputT &&value)
DetectModerationLabelsResult & WithModerationModelVersion(ModerationModelVersionT &&value)
DetectModerationLabelsResult & WithRequestId(RequestIdT &&value)
AWS_REKOGNITION_API DetectModerationLabelsResult()=default
const HumanLoopActivationOutput & GetHumanLoopActivationOutput() const
const Aws::Vector< ModerationLabel > & GetModerationLabels() 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