AWS SDK for C++

AWS SDK for C++ Version 1.11.683

Loading...
Searching...
No Matches
StartContentModerationRequest.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/NotificationChannel.h>
11#include <aws/rekognition/model/Video.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Rekognition {
17namespace Model {
18
22 public:
23 AWS_REKOGNITION_API StartContentModerationRequest() = 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 "StartContentModeration"; }
30
31 AWS_REKOGNITION_API Aws::String SerializePayload() const override;
32
33 AWS_REKOGNITION_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
34
36
40 inline const Video& GetVideo() const { return m_video; }
41 inline bool VideoHasBeenSet() const { return m_videoHasBeenSet; }
42 template <typename VideoT = Video>
43 void SetVideo(VideoT&& value) {
44 m_videoHasBeenSet = true;
45 m_video = std::forward<VideoT>(value);
46 }
47 template <typename VideoT = Video>
49 SetVideo(std::forward<VideoT>(value));
50 return *this;
51 }
53
55
65 inline double GetMinConfidence() const { return m_minConfidence; }
66 inline bool MinConfidenceHasBeenSet() const { return m_minConfidenceHasBeenSet; }
67 inline void SetMinConfidence(double value) {
68 m_minConfidenceHasBeenSet = true;
69 m_minConfidence = value;
70 }
72 SetMinConfidence(value);
73 return *this;
74 }
76
78
84 inline const Aws::String& GetClientRequestToken() const { return m_clientRequestToken; }
85 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
86 template <typename ClientRequestTokenT = Aws::String>
87 void SetClientRequestToken(ClientRequestTokenT&& value) {
88 m_clientRequestTokenHasBeenSet = true;
89 m_clientRequestToken = std::forward<ClientRequestTokenT>(value);
90 }
91 template <typename ClientRequestTokenT = Aws::String>
93 SetClientRequestToken(std::forward<ClientRequestTokenT>(value));
94 return *this;
95 }
97
99
105 inline const NotificationChannel& GetNotificationChannel() const { return m_notificationChannel; }
106 inline bool NotificationChannelHasBeenSet() const { return m_notificationChannelHasBeenSet; }
107 template <typename NotificationChannelT = NotificationChannel>
108 void SetNotificationChannel(NotificationChannelT&& value) {
109 m_notificationChannelHasBeenSet = true;
110 m_notificationChannel = std::forward<NotificationChannelT>(value);
111 }
112 template <typename NotificationChannelT = NotificationChannel>
114 SetNotificationChannel(std::forward<NotificationChannelT>(value));
115 return *this;
116 }
118
120
126 inline const Aws::String& GetJobTag() const { return m_jobTag; }
127 inline bool JobTagHasBeenSet() const { return m_jobTagHasBeenSet; }
128 template <typename JobTagT = Aws::String>
129 void SetJobTag(JobTagT&& value) {
130 m_jobTagHasBeenSet = true;
131 m_jobTag = std::forward<JobTagT>(value);
132 }
133 template <typename JobTagT = Aws::String>
135 SetJobTag(std::forward<JobTagT>(value));
136 return *this;
137 }
139 private:
140 Video m_video;
141 bool m_videoHasBeenSet = false;
142
143 double m_minConfidence{0.0};
144 bool m_minConfidenceHasBeenSet = false;
145
146 Aws::String m_clientRequestToken;
147 bool m_clientRequestTokenHasBeenSet = false;
148
149 NotificationChannel m_notificationChannel;
150 bool m_notificationChannelHasBeenSet = false;
151
152 Aws::String m_jobTag;
153 bool m_jobTagHasBeenSet = false;
154};
155
156} // namespace Model
157} // namespace Rekognition
158} // namespace Aws
StartContentModerationRequest & WithNotificationChannel(NotificationChannelT &&value)
StartContentModerationRequest & WithClientRequestToken(ClientRequestTokenT &&value)
StartContentModerationRequest & WithVideo(VideoT &&value)
StartContentModerationRequest & WithMinConfidence(double value)
AWS_REKOGNITION_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
StartContentModerationRequest & WithJobTag(JobTagT &&value)
AWS_REKOGNITION_API StartContentModerationRequest()=default
AWS_REKOGNITION_API Aws::String SerializePayload() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String