AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetJobId(const Aws::String& value) { m_jobIdHasBeenSet = true; m_jobId = value; }
48 inline void SetJobId(Aws::String&& value) { m_jobIdHasBeenSet = true; m_jobId = std::move(value); }
49 inline void SetJobId(const char* value) { m_jobIdHasBeenSet = true; m_jobId.assign(value); }
50 inline GetLabelDetectionRequest& WithJobId(const Aws::String& value) { SetJobId(value); return *this;}
51 inline GetLabelDetectionRequest& WithJobId(Aws::String&& value) { SetJobId(std::move(value)); return *this;}
52 inline GetLabelDetectionRequest& WithJobId(const char* value) { SetJobId(value); return *this;}
54
56
61 inline int GetMaxResults() const{ return m_maxResults; }
62 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
63 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
64 inline GetLabelDetectionRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
66
68
73 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
74 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
75 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
76 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
77 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
78 inline GetLabelDetectionRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
79 inline GetLabelDetectionRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
80 inline GetLabelDetectionRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
82
84
91 inline const LabelDetectionSortBy& GetSortBy() const{ return m_sortBy; }
92 inline bool SortByHasBeenSet() const { return m_sortByHasBeenSet; }
93 inline void SetSortBy(const LabelDetectionSortBy& value) { m_sortByHasBeenSet = true; m_sortBy = value; }
94 inline void SetSortBy(LabelDetectionSortBy&& value) { m_sortByHasBeenSet = true; m_sortBy = std::move(value); }
95 inline GetLabelDetectionRequest& WithSortBy(const LabelDetectionSortBy& value) { SetSortBy(value); return *this;}
96 inline GetLabelDetectionRequest& WithSortBy(LabelDetectionSortBy&& value) { SetSortBy(std::move(value)); return *this;}
98
100
104 inline const LabelDetectionAggregateBy& GetAggregateBy() const{ return m_aggregateBy; }
105 inline bool AggregateByHasBeenSet() const { return m_aggregateByHasBeenSet; }
106 inline void SetAggregateBy(const LabelDetectionAggregateBy& value) { m_aggregateByHasBeenSet = true; m_aggregateBy = value; }
107 inline void SetAggregateBy(LabelDetectionAggregateBy&& value) { m_aggregateByHasBeenSet = true; m_aggregateBy = std::move(value); }
109 inline GetLabelDetectionRequest& WithAggregateBy(LabelDetectionAggregateBy&& value) { SetAggregateBy(std::move(value)); return *this;}
111 private:
112
113 Aws::String m_jobId;
114 bool m_jobIdHasBeenSet = false;
115
116 int m_maxResults;
117 bool m_maxResultsHasBeenSet = false;
118
119 Aws::String m_nextToken;
120 bool m_nextTokenHasBeenSet = false;
121
122 LabelDetectionSortBy m_sortBy;
123 bool m_sortByHasBeenSet = false;
124
125 LabelDetectionAggregateBy m_aggregateBy;
126 bool m_aggregateByHasBeenSet = false;
127 };
128
129} // namespace Model
130} // namespace Rekognition
131} // namespace Aws
GetLabelDetectionRequest & WithNextToken(const Aws::String &value)
GetLabelDetectionRequest & WithSortBy(const LabelDetectionSortBy &value)
AWS_REKOGNITION_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
GetLabelDetectionRequest & WithNextToken(const char *value)
void SetAggregateBy(const LabelDetectionAggregateBy &value)
GetLabelDetectionRequest & WithJobId(const char *value)
GetLabelDetectionRequest & WithAggregateBy(const LabelDetectionAggregateBy &value)
GetLabelDetectionRequest & WithAggregateBy(LabelDetectionAggregateBy &&value)
void SetAggregateBy(LabelDetectionAggregateBy &&value)
GetLabelDetectionRequest & WithJobId(const Aws::String &value)
const LabelDetectionAggregateBy & GetAggregateBy() const
AWS_REKOGNITION_API Aws::String SerializePayload() const override
GetLabelDetectionRequest & WithSortBy(LabelDetectionSortBy &&value)
void SetSortBy(const LabelDetectionSortBy &value)
GetLabelDetectionRequest & WithNextToken(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
GetLabelDetectionRequest & WithMaxResults(int value)
GetLabelDetectionRequest & WithJobId(Aws::String &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String