AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
StartSegmentDetectionRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/rekognition/RekognitionRequest.h>
10#include <aws/rekognition/Rekognition_EXPORTS.h>
11#include <aws/rekognition/model/NotificationChannel.h>
12#include <aws/rekognition/model/SegmentType.h>
13#include <aws/rekognition/model/StartSegmentDetectionFilters.h>
14#include <aws/rekognition/model/Video.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Rekognition {
20namespace Model {
21
25 public:
26 AWS_REKOGNITION_API StartSegmentDetectionRequest() = 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 "StartSegmentDetection"; }
33
34 AWS_REKOGNITION_API Aws::String SerializePayload() const override;
35
36 AWS_REKOGNITION_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
37
39
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
61 inline const Aws::String& GetClientRequestToken() const { return m_clientRequestToken; }
62 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
63 template <typename ClientRequestTokenT = Aws::String>
64 void SetClientRequestToken(ClientRequestTokenT&& value) {
65 m_clientRequestTokenHasBeenSet = true;
66 m_clientRequestToken = std::forward<ClientRequestTokenT>(value);
67 }
68 template <typename ClientRequestTokenT = Aws::String>
70 SetClientRequestToken(std::forward<ClientRequestTokenT>(value));
71 return *this;
72 }
74
76
83 inline const NotificationChannel& GetNotificationChannel() const { return m_notificationChannel; }
84 inline bool NotificationChannelHasBeenSet() const { return m_notificationChannelHasBeenSet; }
85 template <typename NotificationChannelT = NotificationChannel>
86 void SetNotificationChannel(NotificationChannelT&& value) {
87 m_notificationChannelHasBeenSet = true;
88 m_notificationChannel = std::forward<NotificationChannelT>(value);
89 }
90 template <typename NotificationChannelT = NotificationChannel>
92 SetNotificationChannel(std::forward<NotificationChannelT>(value));
93 return *this;
94 }
96
98
104 inline const Aws::String& GetJobTag() const { return m_jobTag; }
105 inline bool JobTagHasBeenSet() const { return m_jobTagHasBeenSet; }
106 template <typename JobTagT = Aws::String>
107 void SetJobTag(JobTagT&& value) {
108 m_jobTagHasBeenSet = true;
109 m_jobTag = std::forward<JobTagT>(value);
110 }
111 template <typename JobTagT = Aws::String>
113 SetJobTag(std::forward<JobTagT>(value));
114 return *this;
115 }
117
119
122 inline const StartSegmentDetectionFilters& GetFilters() const { return m_filters; }
123 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
124 template <typename FiltersT = StartSegmentDetectionFilters>
125 void SetFilters(FiltersT&& value) {
126 m_filtersHasBeenSet = true;
127 m_filters = std::forward<FiltersT>(value);
128 }
129 template <typename FiltersT = StartSegmentDetectionFilters>
131 SetFilters(std::forward<FiltersT>(value));
132 return *this;
133 }
135
137
141 inline const Aws::Vector<SegmentType>& GetSegmentTypes() const { return m_segmentTypes; }
142 inline bool SegmentTypesHasBeenSet() const { return m_segmentTypesHasBeenSet; }
143 template <typename SegmentTypesT = Aws::Vector<SegmentType>>
144 void SetSegmentTypes(SegmentTypesT&& value) {
145 m_segmentTypesHasBeenSet = true;
146 m_segmentTypes = std::forward<SegmentTypesT>(value);
147 }
148 template <typename SegmentTypesT = Aws::Vector<SegmentType>>
150 SetSegmentTypes(std::forward<SegmentTypesT>(value));
151 return *this;
152 }
154 m_segmentTypesHasBeenSet = true;
155 m_segmentTypes.push_back(value);
156 return *this;
157 }
159 private:
160 Video m_video;
161
162 Aws::String m_clientRequestToken;
163
164 NotificationChannel m_notificationChannel;
165
166 Aws::String m_jobTag;
167
169
170 Aws::Vector<SegmentType> m_segmentTypes;
171 bool m_videoHasBeenSet = false;
172 bool m_clientRequestTokenHasBeenSet = false;
173 bool m_notificationChannelHasBeenSet = false;
174 bool m_jobTagHasBeenSet = false;
175 bool m_filtersHasBeenSet = false;
176 bool m_segmentTypesHasBeenSet = false;
177};
178
179} // namespace Model
180} // namespace Rekognition
181} // namespace Aws
StartSegmentDetectionRequest & WithVideo(VideoT &&value)
StartSegmentDetectionRequest & WithFilters(FiltersT &&value)
const StartSegmentDetectionFilters & GetFilters() const
AWS_REKOGNITION_API StartSegmentDetectionRequest()=default
StartSegmentDetectionRequest & WithNotificationChannel(NotificationChannelT &&value)
StartSegmentDetectionRequest & WithSegmentTypes(SegmentTypesT &&value)
StartSegmentDetectionRequest & AddSegmentTypes(SegmentType value)
AWS_REKOGNITION_API Aws::String SerializePayload() const override
StartSegmentDetectionRequest & WithJobTag(JobTagT &&value)
AWS_REKOGNITION_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
StartSegmentDetectionRequest & WithClientRequestToken(ClientRequestTokenT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector