AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename ProjectVersionArnT = Aws::String>
48 void SetProjectVersionArn(ProjectVersionArnT&& value) { m_projectVersionArnHasBeenSet = true; m_projectVersionArn = std::forward<ProjectVersionArnT>(value); }
49 template<typename ProjectVersionArnT = Aws::String>
50 DetectCustomLabelsRequest& WithProjectVersionArn(ProjectVersionArnT&& value) { SetProjectVersionArn(std::forward<ProjectVersionArnT>(value)); return *this;}
52
54
55 inline const Image& GetImage() const { return m_image; }
56 inline bool ImageHasBeenSet() const { return m_imageHasBeenSet; }
57 template<typename ImageT = Image>
58 void SetImage(ImageT&& value) { m_imageHasBeenSet = true; m_image = std::forward<ImageT>(value); }
59 template<typename ImageT = Image>
60 DetectCustomLabelsRequest& WithImage(ImageT&& value) { SetImage(std::forward<ImageT>(value)); return *this;}
62
64
69 inline int GetMaxResults() const { return m_maxResults; }
70 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
71 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
72 inline DetectCustomLabelsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
74
76
85 inline double GetMinConfidence() const { return m_minConfidence; }
86 inline bool MinConfidenceHasBeenSet() const { return m_minConfidenceHasBeenSet; }
87 inline void SetMinConfidence(double value) { m_minConfidenceHasBeenSet = true; m_minConfidence = value; }
88 inline DetectCustomLabelsRequest& WithMinConfidence(double value) { SetMinConfidence(value); return *this;}
90 private:
91
92 Aws::String m_projectVersionArn;
93 bool m_projectVersionArnHasBeenSet = false;
94
95 Image m_image;
96 bool m_imageHasBeenSet = false;
97
98 int m_maxResults{0};
99 bool m_maxResultsHasBeenSet = false;
100
101 double m_minConfidence{0.0};
102 bool m_minConfidenceHasBeenSet = false;
103 };
104
105} // namespace Model
106} // namespace Rekognition
107} // namespace Aws
AWS_REKOGNITION_API Aws::String SerializePayload() const override
DetectCustomLabelsRequest & WithMaxResults(int value)
DetectCustomLabelsRequest & WithMinConfidence(double value)
DetectCustomLabelsRequest & WithImage(ImageT &&value)
AWS_REKOGNITION_API DetectCustomLabelsRequest()=default
virtual const char * GetServiceRequestName() const override
AWS_REKOGNITION_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
DetectCustomLabelsRequest & WithProjectVersionArn(ProjectVersionArnT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String