AWS SDK for C++  1.9.158
AWS SDK for C++
DetectModerationLabelsRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Rekognition
16 {
17 namespace Model
18 {
19 
23  {
24  public:
26 
27  // Service request name is the Operation name which will send this request out,
28  // each operation should has unique request name, so that we can get operation's name from this request.
29  // Note: this is not true for response, multiple operations may have the same response name,
30  // so we can not get operation's name from response.
31  inline virtual const char* GetServiceRequestName() const override { return "DetectModerationLabels"; }
32 
33  Aws::String SerializePayload() const override;
34 
36 
37 
46  inline const Image& GetImage() const{ return m_image; }
47 
56  inline bool ImageHasBeenSet() const { return m_imageHasBeenSet; }
57 
66  inline void SetImage(const Image& value) { m_imageHasBeenSet = true; m_image = value; }
67 
76  inline void SetImage(Image&& value) { m_imageHasBeenSet = true; m_image = std::move(value); }
77 
86  inline DetectModerationLabelsRequest& WithImage(const Image& value) { SetImage(value); return *this;}
87 
96  inline DetectModerationLabelsRequest& WithImage(Image&& value) { SetImage(std::move(value)); return *this;}
97 
98 
106  inline double GetMinConfidence() const{ return m_minConfidence; }
107 
115  inline bool MinConfidenceHasBeenSet() const { return m_minConfidenceHasBeenSet; }
116 
124  inline void SetMinConfidence(double value) { m_minConfidenceHasBeenSet = true; m_minConfidence = value; }
125 
133  inline DetectModerationLabelsRequest& WithMinConfidence(double value) { SetMinConfidence(value); return *this;}
134 
135 
140  inline const HumanLoopConfig& GetHumanLoopConfig() const{ return m_humanLoopConfig; }
141 
146  inline bool HumanLoopConfigHasBeenSet() const { return m_humanLoopConfigHasBeenSet; }
147 
152  inline void SetHumanLoopConfig(const HumanLoopConfig& value) { m_humanLoopConfigHasBeenSet = true; m_humanLoopConfig = value; }
153 
158  inline void SetHumanLoopConfig(HumanLoopConfig&& value) { m_humanLoopConfigHasBeenSet = true; m_humanLoopConfig = std::move(value); }
159 
164  inline DetectModerationLabelsRequest& WithHumanLoopConfig(const HumanLoopConfig& value) { SetHumanLoopConfig(value); return *this;}
165 
170  inline DetectModerationLabelsRequest& WithHumanLoopConfig(HumanLoopConfig&& value) { SetHumanLoopConfig(std::move(value)); return *this;}
171 
172  private:
173 
174  Image m_image;
175  bool m_imageHasBeenSet;
176 
177  double m_minConfidence;
178  bool m_minConfidenceHasBeenSet;
179 
180  HumanLoopConfig m_humanLoopConfig;
181  bool m_humanLoopConfigHasBeenSet;
182  };
183 
184 } // namespace Model
185 } // namespace Rekognition
186 } // namespace Aws
Aws::Rekognition::Model::DetectModerationLabelsRequest::GetHumanLoopConfig
const HumanLoopConfig & GetHumanLoopConfig() const
Definition: DetectModerationLabelsRequest.h:140
Aws::Rekognition::Model::DetectModerationLabelsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DetectModerationLabelsRequest.h:31
Aws::Rekognition::Model::DetectModerationLabelsRequest::SetHumanLoopConfig
void SetHumanLoopConfig(HumanLoopConfig &&value)
Definition: DetectModerationLabelsRequest.h:158
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
HumanLoopConfig.h
Aws::Rekognition::Model::DetectModerationLabelsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Rekognition::Model::DetectModerationLabelsRequest::WithImage
DetectModerationLabelsRequest & WithImage(Image &&value)
Definition: DetectModerationLabelsRequest.h:96
Aws::Rekognition::Model::DetectModerationLabelsRequest::WithImage
DetectModerationLabelsRequest & WithImage(const Image &value)
Definition: DetectModerationLabelsRequest.h:86
Aws::Rekognition::Model::DetectModerationLabelsRequest::SetImage
void SetImage(Image &&value)
Definition: DetectModerationLabelsRequest.h:76
Aws::Rekognition::Model::DetectModerationLabelsRequest::SetImage
void SetImage(const Image &value)
Definition: DetectModerationLabelsRequest.h:66
Aws::Rekognition::Model::DetectModerationLabelsRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Image.h
Aws::Rekognition::Model::DetectModerationLabelsRequest::HumanLoopConfigHasBeenSet
bool HumanLoopConfigHasBeenSet() const
Definition: DetectModerationLabelsRequest.h:146
Aws::Rekognition::Model::DetectModerationLabelsRequest::GetMinConfidence
double GetMinConfidence() const
Definition: DetectModerationLabelsRequest.h:106
Aws::Rekognition::Model::DetectModerationLabelsRequest::WithMinConfidence
DetectModerationLabelsRequest & WithMinConfidence(double value)
Definition: DetectModerationLabelsRequest.h:133
Aws::Rekognition::RekognitionRequest
Definition: RekognitionRequest.h:17
Aws::Rekognition::Model::DetectModerationLabelsRequest::GetImage
const Image & GetImage() const
Definition: DetectModerationLabelsRequest.h:46
Aws::Rekognition::Model::DetectModerationLabelsRequest::DetectModerationLabelsRequest
DetectModerationLabelsRequest()
Aws::Rekognition::Model::DetectModerationLabelsRequest
Definition: DetectModerationLabelsRequest.h:23
Aws::Rekognition::Model::DetectModerationLabelsRequest::MinConfidenceHasBeenSet
bool MinConfidenceHasBeenSet() const
Definition: DetectModerationLabelsRequest.h:115
Aws::Rekognition::Model::DetectModerationLabelsRequest::ImageHasBeenSet
bool ImageHasBeenSet() const
Definition: DetectModerationLabelsRequest.h:56
Aws::Rekognition::Model::Image
Definition: Image.h:51
AWS_REKOGNITION_API
#define AWS_REKOGNITION_API
Definition: Rekognition_EXPORTS.h:28
Aws
Definition: AccessManagementClient.h:15
Aws::Rekognition::Model::DetectModerationLabelsRequest::SetMinConfidence
void SetMinConfidence(double value)
Definition: DetectModerationLabelsRequest.h:124
Aws::Rekognition::Model::DetectModerationLabelsRequest::SetHumanLoopConfig
void SetHumanLoopConfig(const HumanLoopConfig &value)
Definition: DetectModerationLabelsRequest.h:152
Aws::Rekognition::Model::DetectModerationLabelsRequest::WithHumanLoopConfig
DetectModerationLabelsRequest & WithHumanLoopConfig(const HumanLoopConfig &value)
Definition: DetectModerationLabelsRequest.h:164
Rekognition_EXPORTS.h
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Rekognition::Model::HumanLoopConfig
Definition: HumanLoopConfig.h:35
Aws::Rekognition::Model::DetectModerationLabelsRequest::WithHumanLoopConfig
DetectModerationLabelsRequest & WithHumanLoopConfig(HumanLoopConfig &&value)
Definition: DetectModerationLabelsRequest.h:170
RekognitionRequest.h