AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
GetLabelDetectionRequest.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/LabelDetectionAggregateBy.h>
11#include <aws/rekognition/model/LabelDetectionSortBy.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Rekognition {
17namespace Model {
18
22 public:
23 AWS_REKOGNITION_API GetLabelDetectionRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "GetLabelDetection"; }
30
31 AWS_REKOGNITION_API Aws::String SerializePayload() const override;
32
33 AWS_REKOGNITION_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
34
36
41 inline const Aws::String& GetJobId() const { return m_jobId; }
42 inline bool JobIdHasBeenSet() const { return m_jobIdHasBeenSet; }
43 template <typename JobIdT = Aws::String>
44 void SetJobId(JobIdT&& value) {
45 m_jobIdHasBeenSet = true;
46 m_jobId = std::forward<JobIdT>(value);
47 }
48 template <typename JobIdT = Aws::String>
50 SetJobId(std::forward<JobIdT>(value));
51 return *this;
52 }
54
56
61 inline int GetMaxResults() const { return m_maxResults; }
62 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
63 inline void SetMaxResults(int value) {
64 m_maxResultsHasBeenSet = true;
65 m_maxResults = value;
66 }
68 SetMaxResults(value);
69 return *this;
70 }
72
74
79 inline const Aws::String& GetNextToken() const { return m_nextToken; }
80 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
81 template <typename NextTokenT = Aws::String>
82 void SetNextToken(NextTokenT&& value) {
83 m_nextTokenHasBeenSet = true;
84 m_nextToken = std::forward<NextTokenT>(value);
85 }
86 template <typename NextTokenT = Aws::String>
88 SetNextToken(std::forward<NextTokenT>(value));
89 return *this;
90 }
92
94
101 inline LabelDetectionSortBy GetSortBy() const { return m_sortBy; }
102 inline bool SortByHasBeenSet() const { return m_sortByHasBeenSet; }
103 inline void SetSortBy(LabelDetectionSortBy value) {
104 m_sortByHasBeenSet = true;
105 m_sortBy = value;
106 }
108 SetSortBy(value);
109 return *this;
110 }
112
114
118 inline LabelDetectionAggregateBy GetAggregateBy() const { return m_aggregateBy; }
119 inline bool AggregateByHasBeenSet() const { return m_aggregateByHasBeenSet; }
121 m_aggregateByHasBeenSet = true;
122 m_aggregateBy = value;
123 }
125 SetAggregateBy(value);
126 return *this;
127 }
129 private:
130 Aws::String m_jobId;
131
132 int m_maxResults{0};
133
134 Aws::String m_nextToken;
135
137
139 bool m_jobIdHasBeenSet = false;
140 bool m_maxResultsHasBeenSet = false;
141 bool m_nextTokenHasBeenSet = false;
142 bool m_sortByHasBeenSet = false;
143 bool m_aggregateByHasBeenSet = false;
144};
145
146} // namespace Model
147} // namespace Rekognition
148} // namespace Aws
GetLabelDetectionRequest & WithAggregateBy(LabelDetectionAggregateBy value)
AWS_REKOGNITION_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
GetLabelDetectionRequest & WithNextToken(NextTokenT &&value)
GetLabelDetectionRequest & WithJobId(JobIdT &&value)
AWS_REKOGNITION_API GetLabelDetectionRequest()=default
AWS_REKOGNITION_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
GetLabelDetectionRequest & WithSortBy(LabelDetectionSortBy value)
GetLabelDetectionRequest & WithMaxResults(int value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String