AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
GetContentModerationRequest.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/ContentModerationSortBy.h>
11#include <aws/rekognition/model/ContentModerationAggregateBy.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Rekognition
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_REKOGNITION_API GetContentModerationRequest() = 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 "GetContentModeration"; }
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 GetContentModerationRequest& 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 GetContentModerationRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
64
66
72 inline const Aws::String& GetNextToken() const { return m_nextToken; }
73 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
74 template<typename NextTokenT = Aws::String>
75 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
76 template<typename NextTokenT = Aws::String>
77 GetContentModerationRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
79
81
88 inline ContentModerationSortBy GetSortBy() const { return m_sortBy; }
89 inline bool SortByHasBeenSet() const { return m_sortByHasBeenSet; }
90 inline void SetSortBy(ContentModerationSortBy value) { m_sortByHasBeenSet = true; m_sortBy = value; }
93
95
100 inline ContentModerationAggregateBy GetAggregateBy() const { return m_aggregateBy; }
101 inline bool AggregateByHasBeenSet() const { return m_aggregateByHasBeenSet; }
102 inline void SetAggregateBy(ContentModerationAggregateBy value) { m_aggregateByHasBeenSet = true; m_aggregateBy = value; }
105 private:
106
107 Aws::String m_jobId;
108 bool m_jobIdHasBeenSet = false;
109
110 int m_maxResults{0};
111 bool m_maxResultsHasBeenSet = false;
112
113 Aws::String m_nextToken;
114 bool m_nextTokenHasBeenSet = false;
115
117 bool m_sortByHasBeenSet = false;
118
120 bool m_aggregateByHasBeenSet = false;
121 };
122
123} // namespace Model
124} // namespace Rekognition
125} // 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