AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
ContentModerationDetection.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/rekognition/Rekognition_EXPORTS.h>
9#include <aws/rekognition/model/ContentType.h>
10#include <aws/rekognition/model/ModerationLabel.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Rekognition {
22namespace Model {
23
31 public:
32 AWS_REKOGNITION_API ContentModerationDetection() = default;
35 AWS_REKOGNITION_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
44 inline long long GetTimestamp() const { return m_timestamp; }
45 inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; }
46 inline void SetTimestamp(long long value) {
47 m_timestampHasBeenSet = true;
48 m_timestamp = value;
49 }
50 inline ContentModerationDetection& WithTimestamp(long long value) {
51 SetTimestamp(value);
52 return *this;
53 }
55
57
60 inline const ModerationLabel& GetModerationLabel() const { return m_moderationLabel; }
61 inline bool ModerationLabelHasBeenSet() const { return m_moderationLabelHasBeenSet; }
62 template <typename ModerationLabelT = ModerationLabel>
63 void SetModerationLabel(ModerationLabelT&& value) {
64 m_moderationLabelHasBeenSet = true;
65 m_moderationLabel = std::forward<ModerationLabelT>(value);
66 }
67 template <typename ModerationLabelT = ModerationLabel>
69 SetModerationLabel(std::forward<ModerationLabelT>(value));
70 return *this;
71 }
73
75
79 inline long long GetStartTimestampMillis() const { return m_startTimestampMillis; }
80 inline bool StartTimestampMillisHasBeenSet() const { return m_startTimestampMillisHasBeenSet; }
81 inline void SetStartTimestampMillis(long long value) {
82 m_startTimestampMillisHasBeenSet = true;
83 m_startTimestampMillis = value;
84 }
87 return *this;
88 }
90
92
96 inline long long GetEndTimestampMillis() const { return m_endTimestampMillis; }
97 inline bool EndTimestampMillisHasBeenSet() const { return m_endTimestampMillisHasBeenSet; }
98 inline void SetEndTimestampMillis(long long value) {
99 m_endTimestampMillisHasBeenSet = true;
100 m_endTimestampMillis = value;
101 }
104 return *this;
105 }
107
109
113 inline long long GetDurationMillis() const { return m_durationMillis; }
114 inline bool DurationMillisHasBeenSet() const { return m_durationMillisHasBeenSet; }
115 inline void SetDurationMillis(long long value) {
116 m_durationMillisHasBeenSet = true;
117 m_durationMillis = value;
118 }
120 SetDurationMillis(value);
121 return *this;
122 }
124
126
130 inline const Aws::Vector<ContentType>& GetContentTypes() const { return m_contentTypes; }
131 inline bool ContentTypesHasBeenSet() const { return m_contentTypesHasBeenSet; }
132 template <typename ContentTypesT = Aws::Vector<ContentType>>
133 void SetContentTypes(ContentTypesT&& value) {
134 m_contentTypesHasBeenSet = true;
135 m_contentTypes = std::forward<ContentTypesT>(value);
136 }
137 template <typename ContentTypesT = Aws::Vector<ContentType>>
139 SetContentTypes(std::forward<ContentTypesT>(value));
140 return *this;
141 }
142 template <typename ContentTypesT = ContentType>
144 m_contentTypesHasBeenSet = true;
145 m_contentTypes.emplace_back(std::forward<ContentTypesT>(value));
146 return *this;
147 }
149 private:
150 long long m_timestamp{0};
151
152 ModerationLabel m_moderationLabel;
153
154 long long m_startTimestampMillis{0};
155
156 long long m_endTimestampMillis{0};
157
158 long long m_durationMillis{0};
159
160 Aws::Vector<ContentType> m_contentTypes;
161 bool m_timestampHasBeenSet = false;
162 bool m_moderationLabelHasBeenSet = false;
163 bool m_startTimestampMillisHasBeenSet = false;
164 bool m_endTimestampMillisHasBeenSet = false;
165 bool m_durationMillisHasBeenSet = false;
166 bool m_contentTypesHasBeenSet = false;
167};
168
169} // namespace Model
170} // namespace Rekognition
171} // namespace Aws
AWS_REKOGNITION_API ContentModerationDetection(Aws::Utils::Json::JsonView jsonValue)
ContentModerationDetection & AddContentTypes(ContentTypesT &&value)
ContentModerationDetection & WithContentTypes(ContentTypesT &&value)
ContentModerationDetection & WithTimestamp(long long value)
AWS_REKOGNITION_API Aws::Utils::Json::JsonValue Jsonize() const
ContentModerationDetection & WithEndTimestampMillis(long long value)
ContentModerationDetection & WithDurationMillis(long long value)
AWS_REKOGNITION_API ContentModerationDetection & operator=(Aws::Utils::Json::JsonView jsonValue)
ContentModerationDetection & WithStartTimestampMillis(long long value)
ContentModerationDetection & WithModerationLabel(ModerationLabelT &&value)
const Aws::Vector< ContentType > & GetContentTypes() const
AWS_REKOGNITION_API ContentModerationDetection()=default
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue