AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 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 GetContentModerationRequest& WithJobId(const Aws::String& value) { SetJobId(value); return *this;}
51 inline GetContentModerationRequest& WithJobId(Aws::String&& value) { SetJobId(std::move(value)); return *this;}
52 inline GetContentModerationRequest& 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 GetContentModerationRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
66
68
74 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
75 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
76 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
77 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
78 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
79 inline GetContentModerationRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
80 inline GetContentModerationRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
81 inline GetContentModerationRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
83
85
92 inline const ContentModerationSortBy& GetSortBy() const{ return m_sortBy; }
93 inline bool SortByHasBeenSet() const { return m_sortByHasBeenSet; }
94 inline void SetSortBy(const ContentModerationSortBy& value) { m_sortByHasBeenSet = true; m_sortBy = value; }
95 inline void SetSortBy(ContentModerationSortBy&& value) { m_sortByHasBeenSet = true; m_sortBy = std::move(value); }
96 inline GetContentModerationRequest& WithSortBy(const ContentModerationSortBy& value) { SetSortBy(value); return *this;}
97 inline GetContentModerationRequest& WithSortBy(ContentModerationSortBy&& value) { SetSortBy(std::move(value)); return *this;}
99
101
106 inline const ContentModerationAggregateBy& GetAggregateBy() const{ return m_aggregateBy; }
107 inline bool AggregateByHasBeenSet() const { return m_aggregateByHasBeenSet; }
108 inline void SetAggregateBy(const ContentModerationAggregateBy& value) { m_aggregateByHasBeenSet = true; m_aggregateBy = value; }
109 inline void SetAggregateBy(ContentModerationAggregateBy&& value) { m_aggregateByHasBeenSet = true; m_aggregateBy = std::move(value); }
113 private:
114
115 Aws::String m_jobId;
116 bool m_jobIdHasBeenSet = false;
117
118 int m_maxResults;
119 bool m_maxResultsHasBeenSet = false;
120
121 Aws::String m_nextToken;
122 bool m_nextTokenHasBeenSet = false;
123
125 bool m_sortByHasBeenSet = false;
126
127 ContentModerationAggregateBy m_aggregateBy;
128 bool m_aggregateByHasBeenSet = false;
129 };
130
131} // namespace Model
132} // namespace Rekognition
133} // namespace Aws
GetContentModerationRequest & WithJobId(const Aws::String &value)
void SetAggregateBy(const ContentModerationAggregateBy &value)
GetContentModerationRequest & WithJobId(Aws::String &&value)
const ContentModerationAggregateBy & GetAggregateBy() const
GetContentModerationRequest & WithSortBy(ContentModerationSortBy &&value)
GetContentModerationRequest & WithNextToken(Aws::String &&value)
GetContentModerationRequest & WithAggregateBy(const ContentModerationAggregateBy &value)
void SetAggregateBy(ContentModerationAggregateBy &&value)
GetContentModerationRequest & WithSortBy(const ContentModerationSortBy &value)
GetContentModerationRequest & WithNextToken(const char *value)
GetContentModerationRequest & WithAggregateBy(ContentModerationAggregateBy &&value)
GetContentModerationRequest & WithNextToken(const Aws::String &value)
AWS_REKOGNITION_API Aws::String SerializePayload() const override
AWS_REKOGNITION_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
GetContentModerationRequest & WithJobId(const char *value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String