AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
GetLabelDetectionRequest.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/LabelDetectionSortBy.h>
11#include <aws/rekognition/model/LabelDetectionAggregateBy.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Rekognition
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_REKOGNITION_API GetLabelDetectionRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "GetLabelDetection"; }
33
34 AWS_REKOGNITION_API Aws::String SerializePayload() const override;
35
36 AWS_REKOGNITION_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
37
38
40
45 inline const Aws::String& GetJobId() const { return m_jobId; }
46 inline bool JobIdHasBeenSet() const { return m_jobIdHasBeenSet; }
47 template<typename JobIdT = Aws::String>
48 void SetJobId(JobIdT&& value) { m_jobIdHasBeenSet = true; m_jobId = std::forward<JobIdT>(value); }
49 template<typename JobIdT = Aws::String>
50 GetLabelDetectionRequest& WithJobId(JobIdT&& value) { SetJobId(std::forward<JobIdT>(value)); return *this;}
52
54
59 inline int GetMaxResults() const { return m_maxResults; }
60 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
61 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
62 inline GetLabelDetectionRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
64
66
71 inline const Aws::String& GetNextToken() const { return m_nextToken; }
72 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
73 template<typename NextTokenT = Aws::String>
74 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
75 template<typename NextTokenT = Aws::String>
76 GetLabelDetectionRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
78
80
87 inline LabelDetectionSortBy GetSortBy() const { return m_sortBy; }
88 inline bool SortByHasBeenSet() const { return m_sortByHasBeenSet; }
89 inline void SetSortBy(LabelDetectionSortBy value) { m_sortByHasBeenSet = true; m_sortBy = value; }
90 inline GetLabelDetectionRequest& WithSortBy(LabelDetectionSortBy value) { SetSortBy(value); return *this;}
92
94
98 inline LabelDetectionAggregateBy GetAggregateBy() const { return m_aggregateBy; }
99 inline bool AggregateByHasBeenSet() const { return m_aggregateByHasBeenSet; }
100 inline void SetAggregateBy(LabelDetectionAggregateBy value) { m_aggregateByHasBeenSet = true; m_aggregateBy = value; }
103 private:
104
105 Aws::String m_jobId;
106 bool m_jobIdHasBeenSet = false;
107
108 int m_maxResults{0};
109 bool m_maxResultsHasBeenSet = false;
110
111 Aws::String m_nextToken;
112 bool m_nextTokenHasBeenSet = false;
113
115 bool m_sortByHasBeenSet = false;
116
118 bool m_aggregateByHasBeenSet = false;
119 };
120
121} // namespace Model
122} // namespace Rekognition
123} // 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