AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DetectCustomLabelsRequest.h
1
6#pragma once
7#include <aws/rekognition/Rekognition_EXPORTS.h>
8#include <aws/rekognition/RekognitionRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/rekognition/model/Image.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Rekognition
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_REKOGNITION_API DetectCustomLabelsRequest();
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 "DetectCustomLabels"; }
32
33 AWS_REKOGNITION_API Aws::String SerializePayload() const override;
34
35 AWS_REKOGNITION_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
36
37
39
45 inline const Aws::String& GetProjectVersionArn() const{ return m_projectVersionArn; }
46 inline bool ProjectVersionArnHasBeenSet() const { return m_projectVersionArnHasBeenSet; }
47 inline void SetProjectVersionArn(const Aws::String& value) { m_projectVersionArnHasBeenSet = true; m_projectVersionArn = value; }
48 inline void SetProjectVersionArn(Aws::String&& value) { m_projectVersionArnHasBeenSet = true; m_projectVersionArn = std::move(value); }
49 inline void SetProjectVersionArn(const char* value) { m_projectVersionArnHasBeenSet = true; m_projectVersionArn.assign(value); }
51 inline DetectCustomLabelsRequest& WithProjectVersionArn(Aws::String&& value) { SetProjectVersionArn(std::move(value)); return *this;}
52 inline DetectCustomLabelsRequest& WithProjectVersionArn(const char* value) { SetProjectVersionArn(value); return *this;}
54
56
57 inline const Image& GetImage() const{ return m_image; }
58 inline bool ImageHasBeenSet() const { return m_imageHasBeenSet; }
59 inline void SetImage(const Image& value) { m_imageHasBeenSet = true; m_image = value; }
60 inline void SetImage(Image&& value) { m_imageHasBeenSet = true; m_image = std::move(value); }
61 inline DetectCustomLabelsRequest& WithImage(const Image& value) { SetImage(value); return *this;}
62 inline DetectCustomLabelsRequest& WithImage(Image&& value) { SetImage(std::move(value)); return *this;}
64
66
71 inline int GetMaxResults() const{ return m_maxResults; }
72 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
73 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
74 inline DetectCustomLabelsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
76
78
87 inline double GetMinConfidence() const{ return m_minConfidence; }
88 inline bool MinConfidenceHasBeenSet() const { return m_minConfidenceHasBeenSet; }
89 inline void SetMinConfidence(double value) { m_minConfidenceHasBeenSet = true; m_minConfidence = value; }
90 inline DetectCustomLabelsRequest& WithMinConfidence(double value) { SetMinConfidence(value); return *this;}
92 private:
93
94 Aws::String m_projectVersionArn;
95 bool m_projectVersionArnHasBeenSet = false;
96
97 Image m_image;
98 bool m_imageHasBeenSet = false;
99
100 int m_maxResults;
101 bool m_maxResultsHasBeenSet = false;
102
103 double m_minConfidence;
104 bool m_minConfidenceHasBeenSet = false;
105 };
106
107} // namespace Model
108} // namespace Rekognition
109} // namespace Aws
AWS_REKOGNITION_API Aws::String SerializePayload() const override
DetectCustomLabelsRequest & WithMaxResults(int value)
DetectCustomLabelsRequest & WithMinConfidence(double value)
DetectCustomLabelsRequest & WithProjectVersionArn(Aws::String &&value)
DetectCustomLabelsRequest & WithImage(const Image &value)
DetectCustomLabelsRequest & WithImage(Image &&value)
DetectCustomLabelsRequest & WithProjectVersionArn(const char *value)
virtual const char * GetServiceRequestName() const override
AWS_REKOGNITION_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
DetectCustomLabelsRequest & WithProjectVersionArn(const Aws::String &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String