AWS SDK for C++

AWS SDK for C++ Version 1.11.685

Loading...
Searching...
No Matches
DetectModerationLabelsRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/rekognition/RekognitionRequest.h>
9#include <aws/rekognition/Rekognition_EXPORTS.h>
10#include <aws/rekognition/model/HumanLoopConfig.h>
11#include <aws/rekognition/model/Image.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Rekognition {
17namespace Model {
18
22 public:
23 AWS_REKOGNITION_API DetectModerationLabelsRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "DetectModerationLabels"; }
30
31 AWS_REKOGNITION_API Aws::String SerializePayload() const override;
32
33 AWS_REKOGNITION_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
34
36
44 inline const Image& GetImage() const { return m_image; }
45 inline bool ImageHasBeenSet() const { return m_imageHasBeenSet; }
46 template <typename ImageT = Image>
47 void SetImage(ImageT&& value) {
48 m_imageHasBeenSet = true;
49 m_image = std::forward<ImageT>(value);
50 }
51 template <typename ImageT = Image>
53 SetImage(std::forward<ImageT>(value));
54 return *this;
55 }
57
59
66 inline double GetMinConfidence() const { return m_minConfidence; }
67 inline bool MinConfidenceHasBeenSet() const { return m_minConfidenceHasBeenSet; }
68 inline void SetMinConfidence(double value) {
69 m_minConfidenceHasBeenSet = true;
70 m_minConfidence = value;
71 }
73 SetMinConfidence(value);
74 return *this;
75 }
77
79
83 inline const HumanLoopConfig& GetHumanLoopConfig() const { return m_humanLoopConfig; }
84 inline bool HumanLoopConfigHasBeenSet() const { return m_humanLoopConfigHasBeenSet; }
85 template <typename HumanLoopConfigT = HumanLoopConfig>
86 void SetHumanLoopConfig(HumanLoopConfigT&& value) {
87 m_humanLoopConfigHasBeenSet = true;
88 m_humanLoopConfig = std::forward<HumanLoopConfigT>(value);
89 }
90 template <typename HumanLoopConfigT = HumanLoopConfig>
92 SetHumanLoopConfig(std::forward<HumanLoopConfigT>(value));
93 return *this;
94 }
96
98
103 inline const Aws::String& GetProjectVersion() const { return m_projectVersion; }
104 inline bool ProjectVersionHasBeenSet() const { return m_projectVersionHasBeenSet; }
105 template <typename ProjectVersionT = Aws::String>
106 void SetProjectVersion(ProjectVersionT&& value) {
107 m_projectVersionHasBeenSet = true;
108 m_projectVersion = std::forward<ProjectVersionT>(value);
109 }
110 template <typename ProjectVersionT = Aws::String>
112 SetProjectVersion(std::forward<ProjectVersionT>(value));
113 return *this;
114 }
116 private:
117 Image m_image;
118 bool m_imageHasBeenSet = false;
119
120 double m_minConfidence{0.0};
121 bool m_minConfidenceHasBeenSet = false;
122
123 HumanLoopConfig m_humanLoopConfig;
124 bool m_humanLoopConfigHasBeenSet = false;
125
126 Aws::String m_projectVersion;
127 bool m_projectVersionHasBeenSet = false;
128};
129
130} // namespace Model
131} // namespace Rekognition
132} // namespace Aws
DetectModerationLabelsRequest & WithHumanLoopConfig(HumanLoopConfigT &&value)
AWS_REKOGNITION_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_REKOGNITION_API DetectModerationLabelsRequest()=default
DetectModerationLabelsRequest & WithImage(ImageT &&value)
DetectModerationLabelsRequest & WithProjectVersion(ProjectVersionT &&value)
AWS_REKOGNITION_API Aws::String SerializePayload() const override
DetectModerationLabelsRequest & WithMinConfidence(double value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String