AWS SDK for C++  1.9.159
AWS SDK for C++
GetContentModerationRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Rekognition
16 {
17 namespace Model
18 {
19 
23  {
24  public:
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 "GetContentModeration"; }
32 
33  Aws::String SerializePayload() const override;
34 
36 
37 
43  inline const Aws::String& GetJobId() const{ return m_jobId; }
44 
50  inline bool JobIdHasBeenSet() const { return m_jobIdHasBeenSet; }
51 
57  inline void SetJobId(const Aws::String& value) { m_jobIdHasBeenSet = true; m_jobId = value; }
58 
64  inline void SetJobId(Aws::String&& value) { m_jobIdHasBeenSet = true; m_jobId = std::move(value); }
65 
71  inline void SetJobId(const char* value) { m_jobIdHasBeenSet = true; m_jobId.assign(value); }
72 
78  inline GetContentModerationRequest& WithJobId(const Aws::String& value) { SetJobId(value); return *this;}
79 
85  inline GetContentModerationRequest& WithJobId(Aws::String&& value) { SetJobId(std::move(value)); return *this;}
86 
92  inline GetContentModerationRequest& WithJobId(const char* value) { SetJobId(value); return *this;}
93 
94 
100  inline int GetMaxResults() const{ return m_maxResults; }
101 
107  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
108 
114  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
115 
121  inline GetContentModerationRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
122 
123 
130  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
131 
138  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
139 
146  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
147 
154  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
155 
162  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
163 
170  inline GetContentModerationRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
171 
178  inline GetContentModerationRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
179 
186  inline GetContentModerationRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
187 
188 
196  inline const ContentModerationSortBy& GetSortBy() const{ return m_sortBy; }
197 
205  inline bool SortByHasBeenSet() const { return m_sortByHasBeenSet; }
206 
214  inline void SetSortBy(const ContentModerationSortBy& value) { m_sortByHasBeenSet = true; m_sortBy = value; }
215 
223  inline void SetSortBy(ContentModerationSortBy&& value) { m_sortByHasBeenSet = true; m_sortBy = std::move(value); }
224 
232  inline GetContentModerationRequest& WithSortBy(const ContentModerationSortBy& value) { SetSortBy(value); return *this;}
233 
241  inline GetContentModerationRequest& WithSortBy(ContentModerationSortBy&& value) { SetSortBy(std::move(value)); return *this;}
242 
243  private:
244 
245  Aws::String m_jobId;
246  bool m_jobIdHasBeenSet;
247 
248  int m_maxResults;
249  bool m_maxResultsHasBeenSet;
250 
251  Aws::String m_nextToken;
252  bool m_nextTokenHasBeenSet;
253 
254  ContentModerationSortBy m_sortBy;
255  bool m_sortByHasBeenSet;
256  };
257 
258 } // namespace Model
259 } // namespace Rekognition
260 } // namespace Aws
Aws::Rekognition::Model::ContentModerationSortBy
ContentModerationSortBy
Definition: ContentModerationSortBy.h:17
Aws::Rekognition::Model::GetContentModerationRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: GetContentModerationRequest.h:31
Aws::Rekognition::Model::GetContentModerationRequest::SetJobId
void SetJobId(const char *value)
Definition: GetContentModerationRequest.h:71
Aws::Rekognition::Model::GetContentModerationRequest::WithSortBy
GetContentModerationRequest & WithSortBy(ContentModerationSortBy &&value)
Definition: GetContentModerationRequest.h:241
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::Rekognition::Model::GetContentModerationRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: GetContentModerationRequest.h:154
Aws::Rekognition::Model::GetContentModerationRequest::SetSortBy
void SetSortBy(const ContentModerationSortBy &value)
Definition: GetContentModerationRequest.h:214
ContentModerationSortBy.h
Aws::Rekognition::Model::GetContentModerationRequest::SetSortBy
void SetSortBy(ContentModerationSortBy &&value)
Definition: GetContentModerationRequest.h:223
Aws::Rekognition::Model::GetContentModerationRequest::WithSortBy
GetContentModerationRequest & WithSortBy(const ContentModerationSortBy &value)
Definition: GetContentModerationRequest.h:232
Aws::Rekognition::Model::GetContentModerationRequest::WithNextToken
GetContentModerationRequest & WithNextToken(const char *value)
Definition: GetContentModerationRequest.h:186
Aws::Rekognition::Model::GetContentModerationRequest::WithJobId
GetContentModerationRequest & WithJobId(const char *value)
Definition: GetContentModerationRequest.h:92
Aws::Rekognition::Model::GetContentModerationRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: GetContentModerationRequest.h:130
Aws::Rekognition::RekognitionRequest
Definition: RekognitionRequest.h:17
Aws::Rekognition::Model::GetContentModerationRequest::SortByHasBeenSet
bool SortByHasBeenSet() const
Definition: GetContentModerationRequest.h:205
Aws::Rekognition::Model::GetContentModerationRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Rekognition::Model::GetContentModerationRequest::JobIdHasBeenSet
bool JobIdHasBeenSet() const
Definition: GetContentModerationRequest.h:50
Aws::Rekognition::Model::GetContentModerationRequest
Definition: GetContentModerationRequest.h:23
AWSString.h
Aws::Rekognition::Model::GetContentModerationRequest::GetSortBy
const ContentModerationSortBy & GetSortBy() const
Definition: GetContentModerationRequest.h:196
Aws::Rekognition::Model::GetContentModerationRequest::SetJobId
void SetJobId(const Aws::String &value)
Definition: GetContentModerationRequest.h:57
Aws::Rekognition::Model::GetContentModerationRequest::WithNextToken
GetContentModerationRequest & WithNextToken(Aws::String &&value)
Definition: GetContentModerationRequest.h:178
Aws::Rekognition::Model::GetContentModerationRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: GetContentModerationRequest.h:146
Aws::Rekognition::Model::GetContentModerationRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Rekognition::Model::GetContentModerationRequest::WithNextToken
GetContentModerationRequest & WithNextToken(const Aws::String &value)
Definition: GetContentModerationRequest.h:170
Aws::Rekognition::Model::GetContentModerationRequest::GetMaxResults
int GetMaxResults() const
Definition: GetContentModerationRequest.h:100
Aws::Rekognition::Model::GetContentModerationRequest::WithJobId
GetContentModerationRequest & WithJobId(Aws::String &&value)
Definition: GetContentModerationRequest.h:85
Aws::Rekognition::Model::GetContentModerationRequest::SetMaxResults
void SetMaxResults(int value)
Definition: GetContentModerationRequest.h:114
AWS_REKOGNITION_API
#define AWS_REKOGNITION_API
Definition: Rekognition_EXPORTS.h:28
Aws::Rekognition::Model::GetContentModerationRequest::GetJobId
const Aws::String & GetJobId() const
Definition: GetContentModerationRequest.h:43
Aws
Definition: AccessManagementClient.h:15
Aws::Rekognition::Model::GetContentModerationRequest::SetNextToken
void SetNextToken(const char *value)
Definition: GetContentModerationRequest.h:162
Aws::Rekognition::Model::GetContentModerationRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: GetContentModerationRequest.h:107
Aws::Rekognition::Model::GetContentModerationRequest::WithJobId
GetContentModerationRequest & WithJobId(const Aws::String &value)
Definition: GetContentModerationRequest.h:78
Rekognition_EXPORTS.h
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Rekognition::Model::GetContentModerationRequest::WithMaxResults
GetContentModerationRequest & WithMaxResults(int value)
Definition: GetContentModerationRequest.h:121
Aws::Rekognition::Model::GetContentModerationRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: GetContentModerationRequest.h:138
Aws::Rekognition::Model::GetContentModerationRequest::SetJobId
void SetJobId(Aws::String &&value)
Definition: GetContentModerationRequest.h:64
Aws::Rekognition::Model::GetContentModerationRequest::GetContentModerationRequest
GetContentModerationRequest()
RekognitionRequest.h