AWS SDK for C++

AWS SDK for C++ Version 1.11.685

Loading...
Searching...
No Matches
GetContentModerationRequest.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/ContentModerationAggregateBy.h>
11#include <aws/rekognition/model/ContentModerationSortBy.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Rekognition {
17namespace Model {
18
22 public:
23 AWS_REKOGNITION_API GetContentModerationRequest() = 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 "GetContentModeration"; }
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
80 inline const Aws::String& GetNextToken() const { return m_nextToken; }
81 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
82 template <typename NextTokenT = Aws::String>
83 void SetNextToken(NextTokenT&& value) {
84 m_nextTokenHasBeenSet = true;
85 m_nextToken = std::forward<NextTokenT>(value);
86 }
87 template <typename NextTokenT = Aws::String>
89 SetNextToken(std::forward<NextTokenT>(value));
90 return *this;
91 }
93
95
102 inline ContentModerationSortBy GetSortBy() const { return m_sortBy; }
103 inline bool SortByHasBeenSet() const { return m_sortByHasBeenSet; }
105 m_sortByHasBeenSet = true;
106 m_sortBy = value;
107 }
109 SetSortBy(value);
110 return *this;
111 }
113
115
120 inline ContentModerationAggregateBy GetAggregateBy() const { return m_aggregateBy; }
121 inline bool AggregateByHasBeenSet() const { return m_aggregateByHasBeenSet; }
123 m_aggregateByHasBeenSet = true;
124 m_aggregateBy = value;
125 }
127 SetAggregateBy(value);
128 return *this;
129 }
131 private:
132 Aws::String m_jobId;
133 bool m_jobIdHasBeenSet = false;
134
135 int m_maxResults{0};
136 bool m_maxResultsHasBeenSet = false;
137
138 Aws::String m_nextToken;
139 bool m_nextTokenHasBeenSet = false;
140
142 bool m_sortByHasBeenSet = false;
143
145 bool m_aggregateByHasBeenSet = false;
146};
147
148} // namespace Model
149} // namespace Rekognition
150} // namespace Aws
GetContentModerationRequest & WithJobId(JobIdT &&value)
GetContentModerationRequest & WithSortBy(ContentModerationSortBy value)
GetContentModerationRequest & WithNextToken(NextTokenT &&value)
AWS_REKOGNITION_API GetContentModerationRequest()=default
AWS_REKOGNITION_API Aws::String SerializePayload() const override
AWS_REKOGNITION_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
GetContentModerationRequest & WithAggregateBy(ContentModerationAggregateBy value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String