AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
DetectModerationLabelsResult.h
1
6#pragma once
7#include <aws/rekognition/Rekognition_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/rekognition/model/HumanLoopActivationOutput.h>
11#include <aws/rekognition/model/ModerationLabel.h>
12#include <aws/rekognition/model/ContentType.h>
13#include <utility>
14
15namespace Aws
16{
17template<typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils
21{
22namespace Json
23{
24 class JsonValue;
25} // namespace Json
26} // namespace Utils
27namespace Rekognition
28{
29namespace Model
30{
32 {
33 public:
34 AWS_REKOGNITION_API DetectModerationLabelsResult() = default;
37
38
40
44 inline const Aws::Vector<ModerationLabel>& GetModerationLabels() const { return m_moderationLabels; }
45 template<typename ModerationLabelsT = Aws::Vector<ModerationLabel>>
46 void SetModerationLabels(ModerationLabelsT&& value) { m_moderationLabelsHasBeenSet = true; m_moderationLabels = std::forward<ModerationLabelsT>(value); }
47 template<typename ModerationLabelsT = Aws::Vector<ModerationLabel>>
48 DetectModerationLabelsResult& WithModerationLabels(ModerationLabelsT&& value) { SetModerationLabels(std::forward<ModerationLabelsT>(value)); return *this;}
49 template<typename ModerationLabelsT = ModerationLabel>
50 DetectModerationLabelsResult& AddModerationLabels(ModerationLabelsT&& value) { m_moderationLabelsHasBeenSet = true; m_moderationLabels.emplace_back(std::forward<ModerationLabelsT>(value)); return *this; }
52
54
58 inline const Aws::String& GetModerationModelVersion() const { return m_moderationModelVersion; }
59 template<typename ModerationModelVersionT = Aws::String>
60 void SetModerationModelVersion(ModerationModelVersionT&& value) { m_moderationModelVersionHasBeenSet = true; m_moderationModelVersion = std::forward<ModerationModelVersionT>(value); }
61 template<typename ModerationModelVersionT = Aws::String>
62 DetectModerationLabelsResult& WithModerationModelVersion(ModerationModelVersionT&& value) { SetModerationModelVersion(std::forward<ModerationModelVersionT>(value)); return *this;}
64
66
69 inline const HumanLoopActivationOutput& GetHumanLoopActivationOutput() const { return m_humanLoopActivationOutput; }
70 template<typename HumanLoopActivationOutputT = HumanLoopActivationOutput>
71 void SetHumanLoopActivationOutput(HumanLoopActivationOutputT&& value) { m_humanLoopActivationOutputHasBeenSet = true; m_humanLoopActivationOutput = std::forward<HumanLoopActivationOutputT>(value); }
72 template<typename HumanLoopActivationOutputT = HumanLoopActivationOutput>
73 DetectModerationLabelsResult& WithHumanLoopActivationOutput(HumanLoopActivationOutputT&& value) { SetHumanLoopActivationOutput(std::forward<HumanLoopActivationOutputT>(value)); return *this;}
75
77
82 inline const Aws::String& GetProjectVersion() const { return m_projectVersion; }
83 template<typename ProjectVersionT = Aws::String>
84 void SetProjectVersion(ProjectVersionT&& value) { m_projectVersionHasBeenSet = true; m_projectVersion = std::forward<ProjectVersionT>(value); }
85 template<typename ProjectVersionT = Aws::String>
86 DetectModerationLabelsResult& WithProjectVersion(ProjectVersionT&& value) { SetProjectVersion(std::forward<ProjectVersionT>(value)); return *this;}
88
90
94 inline const Aws::Vector<ContentType>& GetContentTypes() const { return m_contentTypes; }
95 template<typename ContentTypesT = Aws::Vector<ContentType>>
96 void SetContentTypes(ContentTypesT&& value) { m_contentTypesHasBeenSet = true; m_contentTypes = std::forward<ContentTypesT>(value); }
97 template<typename ContentTypesT = Aws::Vector<ContentType>>
98 DetectModerationLabelsResult& WithContentTypes(ContentTypesT&& value) { SetContentTypes(std::forward<ContentTypesT>(value)); return *this;}
99 template<typename ContentTypesT = ContentType>
100 DetectModerationLabelsResult& AddContentTypes(ContentTypesT&& value) { m_contentTypesHasBeenSet = true; m_contentTypes.emplace_back(std::forward<ContentTypesT>(value)); return *this; }
102
104
105 inline const Aws::String& GetRequestId() const { return m_requestId; }
106 template<typename RequestIdT = Aws::String>
107 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
108 template<typename RequestIdT = Aws::String>
109 DetectModerationLabelsResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
111 private:
112
113 Aws::Vector<ModerationLabel> m_moderationLabels;
114 bool m_moderationLabelsHasBeenSet = false;
115
116 Aws::String m_moderationModelVersion;
117 bool m_moderationModelVersionHasBeenSet = false;
118
119 HumanLoopActivationOutput m_humanLoopActivationOutput;
120 bool m_humanLoopActivationOutputHasBeenSet = false;
121
122 Aws::String m_projectVersion;
123 bool m_projectVersionHasBeenSet = false;
124
125 Aws::Vector<ContentType> m_contentTypes;
126 bool m_contentTypesHasBeenSet = false;
127
128 Aws::String m_requestId;
129 bool m_requestIdHasBeenSet = false;
130 };
131
132} // namespace Model
133} // namespace Rekognition
134} // namespace Aws
const Aws::Vector< ContentType > & GetContentTypes() const
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