AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
StartSegmentDetectionRequest.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 <aws/rekognition/model/StartSegmentDetectionFilters.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14#include <aws/rekognition/model/SegmentType.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Rekognition
20{
21namespace Model
22{
23
27 {
28 public:
29 AWS_REKOGNITION_API StartSegmentDetectionRequest() = default;
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "StartSegmentDetection"; }
36
37 AWS_REKOGNITION_API Aws::String SerializePayload() const override;
38
39 AWS_REKOGNITION_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
40
41
43
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 StartSegmentDetectionRequest& WithVideo(VideoT&& value) { SetVideo(std::forward<VideoT>(value)); return *this;}
51
53
59 inline const Aws::String& GetClientRequestToken() const { return m_clientRequestToken; }
60 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
61 template<typename ClientRequestTokenT = Aws::String>
62 void SetClientRequestToken(ClientRequestTokenT&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::forward<ClientRequestTokenT>(value); }
63 template<typename ClientRequestTokenT = Aws::String>
64 StartSegmentDetectionRequest& WithClientRequestToken(ClientRequestTokenT&& value) { SetClientRequestToken(std::forward<ClientRequestTokenT>(value)); return *this;}
66
68
75 inline const NotificationChannel& GetNotificationChannel() const { return m_notificationChannel; }
76 inline bool NotificationChannelHasBeenSet() const { return m_notificationChannelHasBeenSet; }
77 template<typename NotificationChannelT = NotificationChannel>
78 void SetNotificationChannel(NotificationChannelT&& value) { m_notificationChannelHasBeenSet = true; m_notificationChannel = std::forward<NotificationChannelT>(value); }
79 template<typename NotificationChannelT = NotificationChannel>
80 StartSegmentDetectionRequest& WithNotificationChannel(NotificationChannelT&& value) { SetNotificationChannel(std::forward<NotificationChannelT>(value)); return *this;}
82
84
90 inline const Aws::String& GetJobTag() const { return m_jobTag; }
91 inline bool JobTagHasBeenSet() const { return m_jobTagHasBeenSet; }
92 template<typename JobTagT = Aws::String>
93 void SetJobTag(JobTagT&& value) { m_jobTagHasBeenSet = true; m_jobTag = std::forward<JobTagT>(value); }
94 template<typename JobTagT = Aws::String>
95 StartSegmentDetectionRequest& WithJobTag(JobTagT&& value) { SetJobTag(std::forward<JobTagT>(value)); return *this;}
97
99
102 inline const StartSegmentDetectionFilters& GetFilters() const { return m_filters; }
103 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
104 template<typename FiltersT = StartSegmentDetectionFilters>
105 void SetFilters(FiltersT&& value) { m_filtersHasBeenSet = true; m_filters = std::forward<FiltersT>(value); }
106 template<typename FiltersT = StartSegmentDetectionFilters>
107 StartSegmentDetectionRequest& WithFilters(FiltersT&& value) { SetFilters(std::forward<FiltersT>(value)); return *this;}
109
111
115 inline const Aws::Vector<SegmentType>& GetSegmentTypes() const { return m_segmentTypes; }
116 inline bool SegmentTypesHasBeenSet() const { return m_segmentTypesHasBeenSet; }
117 template<typename SegmentTypesT = Aws::Vector<SegmentType>>
118 void SetSegmentTypes(SegmentTypesT&& value) { m_segmentTypesHasBeenSet = true; m_segmentTypes = std::forward<SegmentTypesT>(value); }
119 template<typename SegmentTypesT = Aws::Vector<SegmentType>>
120 StartSegmentDetectionRequest& WithSegmentTypes(SegmentTypesT&& value) { SetSegmentTypes(std::forward<SegmentTypesT>(value)); return *this;}
121 inline StartSegmentDetectionRequest& AddSegmentTypes(SegmentType value) { m_segmentTypesHasBeenSet = true; m_segmentTypes.push_back(value); return *this; }
123 private:
124
125 Video m_video;
126 bool m_videoHasBeenSet = false;
127
128 Aws::String m_clientRequestToken;
129 bool m_clientRequestTokenHasBeenSet = false;
130
131 NotificationChannel m_notificationChannel;
132 bool m_notificationChannelHasBeenSet = false;
133
134 Aws::String m_jobTag;
135 bool m_jobTagHasBeenSet = false;
136
138 bool m_filtersHasBeenSet = false;
139
140 Aws::Vector<SegmentType> m_segmentTypes;
141 bool m_segmentTypesHasBeenSet = false;
142 };
143
144} // namespace Model
145} // namespace Rekognition
146} // 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