AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetImage(const Image& value) { m_imageHasBeenSet = true; m_image = value; }
51 inline void SetImage(Image&& value) { m_imageHasBeenSet = true; m_image = std::move(value); }
52 inline DetectModerationLabelsRequest& WithImage(const Image& value) { SetImage(value); return *this;}
53 inline DetectModerationLabelsRequest& WithImage(Image&& value) { SetImage(std::move(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 inline void SetHumanLoopConfig(const HumanLoopConfig& value) { m_humanLoopConfigHasBeenSet = true; m_humanLoopConfig = value; }
78 inline void SetHumanLoopConfig(HumanLoopConfig&& value) { m_humanLoopConfigHasBeenSet = true; m_humanLoopConfig = std::move(value); }
80 inline DetectModerationLabelsRequest& WithHumanLoopConfig(HumanLoopConfig&& value) { SetHumanLoopConfig(std::move(value)); return *this;}
82
84
89 inline const Aws::String& GetProjectVersion() const{ return m_projectVersion; }
90 inline bool ProjectVersionHasBeenSet() const { return m_projectVersionHasBeenSet; }
91 inline void SetProjectVersion(const Aws::String& value) { m_projectVersionHasBeenSet = true; m_projectVersion = value; }
92 inline void SetProjectVersion(Aws::String&& value) { m_projectVersionHasBeenSet = true; m_projectVersion = std::move(value); }
93 inline void SetProjectVersion(const char* value) { m_projectVersionHasBeenSet = true; m_projectVersion.assign(value); }
95 inline DetectModerationLabelsRequest& WithProjectVersion(Aws::String&& value) { SetProjectVersion(std::move(value)); return *this;}
96 inline DetectModerationLabelsRequest& WithProjectVersion(const char* value) { SetProjectVersion(value); return *this;}
98 private:
99
100 Image m_image;
101 bool m_imageHasBeenSet = false;
102
103 double m_minConfidence;
104 bool m_minConfidenceHasBeenSet = false;
105
106 HumanLoopConfig m_humanLoopConfig;
107 bool m_humanLoopConfigHasBeenSet = false;
108
109 Aws::String m_projectVersion;
110 bool m_projectVersionHasBeenSet = false;
111 };
112
113} // namespace Model
114} // namespace Rekognition
115} // namespace Aws
DetectModerationLabelsRequest & WithImage(const Image &value)
DetectModerationLabelsRequest & WithProjectVersion(const Aws::String &value)
DetectModerationLabelsRequest & WithProjectVersion(const char *value)
AWS_REKOGNITION_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
DetectModerationLabelsRequest & WithProjectVersion(Aws::String &&value)
DetectModerationLabelsRequest & WithHumanLoopConfig(HumanLoopConfig &&value)
AWS_REKOGNITION_API Aws::String SerializePayload() const override
DetectModerationLabelsRequest & WithHumanLoopConfig(const HumanLoopConfig &value)
DetectModerationLabelsRequest & WithMinConfidence(double value)
DetectModerationLabelsRequest & WithImage(Image &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String