AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
GetFaceSearchRequest.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/FaceSearchSortBy.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Rekognition
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_REKOGNITION_API GetFaceSearchRequest() = 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 "GetFaceSearch"; }
32
33 AWS_REKOGNITION_API Aws::String SerializePayload() const override;
34
35 AWS_REKOGNITION_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
36
37
39
43 inline const Aws::String& GetJobId() const { return m_jobId; }
44 inline bool JobIdHasBeenSet() const { return m_jobIdHasBeenSet; }
45 template<typename JobIdT = Aws::String>
46 void SetJobId(JobIdT&& value) { m_jobIdHasBeenSet = true; m_jobId = std::forward<JobIdT>(value); }
47 template<typename JobIdT = Aws::String>
48 GetFaceSearchRequest& WithJobId(JobIdT&& value) { SetJobId(std::forward<JobIdT>(value)); return *this;}
50
52
57 inline int GetMaxResults() const { return m_maxResults; }
58 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
59 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
60 inline GetFaceSearchRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
62
64
70 inline const Aws::String& GetNextToken() const { return m_nextToken; }
71 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
72 template<typename NextTokenT = Aws::String>
73 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
74 template<typename NextTokenT = Aws::String>
75 GetFaceSearchRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
77
79
84 inline FaceSearchSortBy GetSortBy() const { return m_sortBy; }
85 inline bool SortByHasBeenSet() const { return m_sortByHasBeenSet; }
86 inline void SetSortBy(FaceSearchSortBy value) { m_sortByHasBeenSet = true; m_sortBy = value; }
87 inline GetFaceSearchRequest& WithSortBy(FaceSearchSortBy value) { SetSortBy(value); return *this;}
89 private:
90
91 Aws::String m_jobId;
92 bool m_jobIdHasBeenSet = false;
93
94 int m_maxResults{0};
95 bool m_maxResultsHasBeenSet = false;
96
97 Aws::String m_nextToken;
98 bool m_nextTokenHasBeenSet = false;
99
101 bool m_sortByHasBeenSet = false;
102 };
103
104} // namespace Model
105} // namespace Rekognition
106} // namespace Aws
GetFaceSearchRequest & WithJobId(JobIdT &&value)
GetFaceSearchRequest & WithSortBy(FaceSearchSortBy value)
GetFaceSearchRequest & WithNextToken(NextTokenT &&value)
AWS_REKOGNITION_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
GetFaceSearchRequest & WithMaxResults(int value)
AWS_REKOGNITION_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_REKOGNITION_API GetFaceSearchRequest()=default
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String