AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
DetectModerationLabelsResult.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/Rekognition_EXPORTS.h>
10#include <aws/rekognition/model/ContentType.h>
11#include <aws/rekognition/model/HumanLoopActivationOutput.h>
12#include <aws/rekognition/model/ModerationLabel.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 DetectModerationLabelsResult() = default;
32
34
38 inline const Aws::Vector<ModerationLabel>& GetModerationLabels() const { return m_moderationLabels; }
39 template <typename ModerationLabelsT = Aws::Vector<ModerationLabel>>
40 void SetModerationLabels(ModerationLabelsT&& value) {
41 m_moderationLabelsHasBeenSet = true;
42 m_moderationLabels = std::forward<ModerationLabelsT>(value);
43 }
44 template <typename ModerationLabelsT = Aws::Vector<ModerationLabel>>
46 SetModerationLabels(std::forward<ModerationLabelsT>(value));
47 return *this;
48 }
49 template <typename ModerationLabelsT = ModerationLabel>
51 m_moderationLabelsHasBeenSet = true;
52 m_moderationLabels.emplace_back(std::forward<ModerationLabelsT>(value));
53 return *this;
54 }
56
58
62 inline const Aws::String& GetModerationModelVersion() const { return m_moderationModelVersion; }
63 template <typename ModerationModelVersionT = Aws::String>
64 void SetModerationModelVersion(ModerationModelVersionT&& value) {
65 m_moderationModelVersionHasBeenSet = true;
66 m_moderationModelVersion = std::forward<ModerationModelVersionT>(value);
67 }
68 template <typename ModerationModelVersionT = Aws::String>
69 DetectModerationLabelsResult& WithModerationModelVersion(ModerationModelVersionT&& value) {
70 SetModerationModelVersion(std::forward<ModerationModelVersionT>(value));
71 return *this;
72 }
74
76
79 inline const HumanLoopActivationOutput& GetHumanLoopActivationOutput() const { return m_humanLoopActivationOutput; }
80 template <typename HumanLoopActivationOutputT = HumanLoopActivationOutput>
81 void SetHumanLoopActivationOutput(HumanLoopActivationOutputT&& value) {
82 m_humanLoopActivationOutputHasBeenSet = true;
83 m_humanLoopActivationOutput = std::forward<HumanLoopActivationOutputT>(value);
84 }
85 template <typename HumanLoopActivationOutputT = HumanLoopActivationOutput>
86 DetectModerationLabelsResult& WithHumanLoopActivationOutput(HumanLoopActivationOutputT&& value) {
87 SetHumanLoopActivationOutput(std::forward<HumanLoopActivationOutputT>(value));
88 return *this;
89 }
91
93
98 inline const Aws::String& GetProjectVersion() const { return m_projectVersion; }
99 template <typename ProjectVersionT = Aws::String>
100 void SetProjectVersion(ProjectVersionT&& value) {
101 m_projectVersionHasBeenSet = true;
102 m_projectVersion = std::forward<ProjectVersionT>(value);
103 }
104 template <typename ProjectVersionT = Aws::String>
106 SetProjectVersion(std::forward<ProjectVersionT>(value));
107 return *this;
108 }
110
112
116 inline const Aws::Vector<ContentType>& GetContentTypes() const { return m_contentTypes; }
117 template <typename ContentTypesT = Aws::Vector<ContentType>>
118 void SetContentTypes(ContentTypesT&& value) {
119 m_contentTypesHasBeenSet = true;
120 m_contentTypes = std::forward<ContentTypesT>(value);
121 }
122 template <typename ContentTypesT = Aws::Vector<ContentType>>
124 SetContentTypes(std::forward<ContentTypesT>(value));
125 return *this;
126 }
127 template <typename ContentTypesT = ContentType>
129 m_contentTypesHasBeenSet = true;
130 m_contentTypes.emplace_back(std::forward<ContentTypesT>(value));
131 return *this;
132 }
134
136
137 inline const Aws::String& GetRequestId() const { return m_requestId; }
138 template <typename RequestIdT = Aws::String>
139 void SetRequestId(RequestIdT&& value) {
140 m_requestIdHasBeenSet = true;
141 m_requestId = std::forward<RequestIdT>(value);
142 }
143 template <typename RequestIdT = Aws::String>
145 SetRequestId(std::forward<RequestIdT>(value));
146 return *this;
147 }
149 private:
150 Aws::Vector<ModerationLabel> m_moderationLabels;
151
152 Aws::String m_moderationModelVersion;
153
154 HumanLoopActivationOutput m_humanLoopActivationOutput;
155
156 Aws::String m_projectVersion;
157
158 Aws::Vector<ContentType> m_contentTypes;
159
160 Aws::String m_requestId;
161 bool m_moderationLabelsHasBeenSet = false;
162 bool m_moderationModelVersionHasBeenSet = false;
163 bool m_humanLoopActivationOutputHasBeenSet = false;
164 bool m_projectVersionHasBeenSet = false;
165 bool m_contentTypesHasBeenSet = false;
166 bool m_requestIdHasBeenSet = false;
167};
168
169} // namespace Model
170} // namespace Rekognition
171} // 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