AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
StartContentModerationRequest.h
1
6#pragma once
7#include <aws/rekognition/Rekognition_EXPORTS.h>
8#include <aws/rekognition/RekognitionRequest.h>
9#include <aws/rekognition/model/Video.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/rekognition/model/NotificationChannel.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Rekognition
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_REKOGNITION_API StartContentModerationRequest() = 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 "StartContentModeration"; }
33
34 AWS_REKOGNITION_API Aws::String SerializePayload() const override;
35
36 AWS_REKOGNITION_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
37
38
40
44 inline const Video& GetVideo() const { return m_video; }
45 inline bool VideoHasBeenSet() const { return m_videoHasBeenSet; }
46 template<typename VideoT = Video>
47 void SetVideo(VideoT&& value) { m_videoHasBeenSet = true; m_video = std::forward<VideoT>(value); }
48 template<typename VideoT = Video>
49 StartContentModerationRequest& WithVideo(VideoT&& value) { SetVideo(std::forward<VideoT>(value)); return *this;}
51
53
63 inline double GetMinConfidence() const { return m_minConfidence; }
64 inline bool MinConfidenceHasBeenSet() const { return m_minConfidenceHasBeenSet; }
65 inline void SetMinConfidence(double value) { m_minConfidenceHasBeenSet = true; m_minConfidence = value; }
66 inline StartContentModerationRequest& WithMinConfidence(double value) { SetMinConfidence(value); return *this;}
68
70
76 inline const Aws::String& GetClientRequestToken() const { return m_clientRequestToken; }
77 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
78 template<typename ClientRequestTokenT = Aws::String>
79 void SetClientRequestToken(ClientRequestTokenT&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::forward<ClientRequestTokenT>(value); }
80 template<typename ClientRequestTokenT = Aws::String>
81 StartContentModerationRequest& WithClientRequestToken(ClientRequestTokenT&& value) { SetClientRequestToken(std::forward<ClientRequestTokenT>(value)); return *this;}
83
85
91 inline const NotificationChannel& GetNotificationChannel() const { return m_notificationChannel; }
92 inline bool NotificationChannelHasBeenSet() const { return m_notificationChannelHasBeenSet; }
93 template<typename NotificationChannelT = NotificationChannel>
94 void SetNotificationChannel(NotificationChannelT&& value) { m_notificationChannelHasBeenSet = true; m_notificationChannel = std::forward<NotificationChannelT>(value); }
95 template<typename NotificationChannelT = NotificationChannel>
96 StartContentModerationRequest& WithNotificationChannel(NotificationChannelT&& value) { SetNotificationChannel(std::forward<NotificationChannelT>(value)); return *this;}
98
100
106 inline const Aws::String& GetJobTag() const { return m_jobTag; }
107 inline bool JobTagHasBeenSet() const { return m_jobTagHasBeenSet; }
108 template<typename JobTagT = Aws::String>
109 void SetJobTag(JobTagT&& value) { m_jobTagHasBeenSet = true; m_jobTag = std::forward<JobTagT>(value); }
110 template<typename JobTagT = Aws::String>
111 StartContentModerationRequest& WithJobTag(JobTagT&& value) { SetJobTag(std::forward<JobTagT>(value)); return *this;}
113 private:
114
115 Video m_video;
116 bool m_videoHasBeenSet = false;
117
118 double m_minConfidence{0.0};
119 bool m_minConfidenceHasBeenSet = false;
120
121 Aws::String m_clientRequestToken;
122 bool m_clientRequestTokenHasBeenSet = false;
123
124 NotificationChannel m_notificationChannel;
125 bool m_notificationChannelHasBeenSet = false;
126
127 Aws::String m_jobTag;
128 bool m_jobTagHasBeenSet = false;
129 };
130
131} // namespace Model
132} // namespace Rekognition
133} // 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