AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
DetectModerationLabelsRequest.h
1
6#pragma once
7#include <aws/rekognition/Rekognition_EXPORTS.h>
8#include <aws/rekognition/RekognitionRequest.h>
9#include <aws/rekognition/model/Image.h>
10#include <aws/rekognition/model/HumanLoopConfig.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Rekognition
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_REKOGNITION_API DetectModerationLabelsRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "DetectModerationLabels"; }
33
34 AWS_REKOGNITION_API Aws::String SerializePayload() const override;
35
36 AWS_REKOGNITION_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
37
38
40
48 inline const Image& GetImage() const { return m_image; }
49 inline bool ImageHasBeenSet() const { return m_imageHasBeenSet; }
50 template<typename ImageT = Image>
51 void SetImage(ImageT&& value) { m_imageHasBeenSet = true; m_image = std::forward<ImageT>(value); }
52 template<typename ImageT = Image>
53 DetectModerationLabelsRequest& WithImage(ImageT&& value) { SetImage(std::forward<ImageT>(value)); return *this;}
55
57
64 inline double GetMinConfidence() const { return m_minConfidence; }
65 inline bool MinConfidenceHasBeenSet() const { return m_minConfidenceHasBeenSet; }
66 inline void SetMinConfidence(double value) { m_minConfidenceHasBeenSet = true; m_minConfidence = value; }
67 inline DetectModerationLabelsRequest& WithMinConfidence(double value) { SetMinConfidence(value); return *this;}
69
71
75 inline const HumanLoopConfig& GetHumanLoopConfig() const { return m_humanLoopConfig; }
76 inline bool HumanLoopConfigHasBeenSet() const { return m_humanLoopConfigHasBeenSet; }
77 template<typename HumanLoopConfigT = HumanLoopConfig>
78 void SetHumanLoopConfig(HumanLoopConfigT&& value) { m_humanLoopConfigHasBeenSet = true; m_humanLoopConfig = std::forward<HumanLoopConfigT>(value); }
79 template<typename HumanLoopConfigT = HumanLoopConfig>
80 DetectModerationLabelsRequest& WithHumanLoopConfig(HumanLoopConfigT&& value) { SetHumanLoopConfig(std::forward<HumanLoopConfigT>(value)); return *this;}
82
84
89 inline const Aws::String& GetProjectVersion() const { return m_projectVersion; }
90 inline bool ProjectVersionHasBeenSet() const { return m_projectVersionHasBeenSet; }
91 template<typename ProjectVersionT = Aws::String>
92 void SetProjectVersion(ProjectVersionT&& value) { m_projectVersionHasBeenSet = true; m_projectVersion = std::forward<ProjectVersionT>(value); }
93 template<typename ProjectVersionT = Aws::String>
94 DetectModerationLabelsRequest& WithProjectVersion(ProjectVersionT&& value) { SetProjectVersion(std::forward<ProjectVersionT>(value)); return *this;}
96 private:
97
98 Image m_image;
99 bool m_imageHasBeenSet = false;
100
101 double m_minConfidence{0.0};
102 bool m_minConfidenceHasBeenSet = false;
103
104 HumanLoopConfig m_humanLoopConfig;
105 bool m_humanLoopConfigHasBeenSet = false;
106
107 Aws::String m_projectVersion;
108 bool m_projectVersionHasBeenSet = false;
109 };
110
111} // namespace Model
112} // namespace Rekognition
113} // 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