AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
DetectCustomLabelsRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/rekognition/RekognitionRequest.h>
9#include <aws/rekognition/Rekognition_EXPORTS.h>
10#include <aws/rekognition/model/Image.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Rekognition {
16namespace Model {
17
21 public:
22 AWS_REKOGNITION_API DetectCustomLabelsRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "DetectCustomLabels"; }
29
30 AWS_REKOGNITION_API Aws::String SerializePayload() const override;
31
32 AWS_REKOGNITION_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
33
35
41 inline const Aws::String& GetProjectVersionArn() const { return m_projectVersionArn; }
42 inline bool ProjectVersionArnHasBeenSet() const { return m_projectVersionArnHasBeenSet; }
43 template <typename ProjectVersionArnT = Aws::String>
44 void SetProjectVersionArn(ProjectVersionArnT&& value) {
45 m_projectVersionArnHasBeenSet = true;
46 m_projectVersionArn = std::forward<ProjectVersionArnT>(value);
47 }
48 template <typename ProjectVersionArnT = Aws::String>
49 DetectCustomLabelsRequest& WithProjectVersionArn(ProjectVersionArnT&& value) {
50 SetProjectVersionArn(std::forward<ProjectVersionArnT>(value));
51 return *this;
52 }
54
56
57 inline const Image& GetImage() const { return m_image; }
58 inline bool ImageHasBeenSet() const { return m_imageHasBeenSet; }
59 template <typename ImageT = Image>
60 void SetImage(ImageT&& value) {
61 m_imageHasBeenSet = true;
62 m_image = std::forward<ImageT>(value);
63 }
64 template <typename ImageT = Image>
66 SetImage(std::forward<ImageT>(value));
67 return *this;
68 }
70
72
77 inline int GetMaxResults() const { return m_maxResults; }
78 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
79 inline void SetMaxResults(int value) {
80 m_maxResultsHasBeenSet = true;
81 m_maxResults = value;
82 }
84 SetMaxResults(value);
85 return *this;
86 }
88
90
99 inline double GetMinConfidence() const { return m_minConfidence; }
100 inline bool MinConfidenceHasBeenSet() const { return m_minConfidenceHasBeenSet; }
101 inline void SetMinConfidence(double value) {
102 m_minConfidenceHasBeenSet = true;
103 m_minConfidence = value;
104 }
106 SetMinConfidence(value);
107 return *this;
108 }
110 private:
111 Aws::String m_projectVersionArn;
112
113 Image m_image;
114
115 int m_maxResults{0};
116
117 double m_minConfidence{0.0};
118 bool m_projectVersionArnHasBeenSet = false;
119 bool m_imageHasBeenSet = false;
120 bool m_maxResultsHasBeenSet = false;
121 bool m_minConfidenceHasBeenSet = false;
122};
123
124} // namespace Model
125} // namespace Rekognition
126} // 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