AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ContentModerationDetection.h
1
6#pragma once
7#include <aws/rekognition/Rekognition_EXPORTS.h>
8#include <aws/rekognition/model/ModerationLabel.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/rekognition/model/ContentType.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Rekognition
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_REKOGNITION_API ContentModerationDetection();
40 AWS_REKOGNITION_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
50 inline long long GetTimestamp() const{ return m_timestamp; }
51 inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; }
52 inline void SetTimestamp(long long value) { m_timestampHasBeenSet = true; m_timestamp = value; }
53 inline ContentModerationDetection& WithTimestamp(long long value) { SetTimestamp(value); return *this;}
55
57
60 inline const ModerationLabel& GetModerationLabel() const{ return m_moderationLabel; }
61 inline bool ModerationLabelHasBeenSet() const { return m_moderationLabelHasBeenSet; }
62 inline void SetModerationLabel(const ModerationLabel& value) { m_moderationLabelHasBeenSet = true; m_moderationLabel = value; }
63 inline void SetModerationLabel(ModerationLabel&& value) { m_moderationLabelHasBeenSet = true; m_moderationLabel = std::move(value); }
65 inline ContentModerationDetection& WithModerationLabel(ModerationLabel&& value) { SetModerationLabel(std::move(value)); return *this;}
67
69
73 inline long long GetStartTimestampMillis() const{ return m_startTimestampMillis; }
74 inline bool StartTimestampMillisHasBeenSet() const { return m_startTimestampMillisHasBeenSet; }
75 inline void SetStartTimestampMillis(long long value) { m_startTimestampMillisHasBeenSet = true; m_startTimestampMillis = value; }
76 inline ContentModerationDetection& WithStartTimestampMillis(long long value) { SetStartTimestampMillis(value); return *this;}
78
80
84 inline long long GetEndTimestampMillis() const{ return m_endTimestampMillis; }
85 inline bool EndTimestampMillisHasBeenSet() const { return m_endTimestampMillisHasBeenSet; }
86 inline void SetEndTimestampMillis(long long value) { m_endTimestampMillisHasBeenSet = true; m_endTimestampMillis = value; }
87 inline ContentModerationDetection& WithEndTimestampMillis(long long value) { SetEndTimestampMillis(value); return *this;}
89
91
95 inline long long GetDurationMillis() const{ return m_durationMillis; }
96 inline bool DurationMillisHasBeenSet() const { return m_durationMillisHasBeenSet; }
97 inline void SetDurationMillis(long long value) { m_durationMillisHasBeenSet = true; m_durationMillis = value; }
98 inline ContentModerationDetection& WithDurationMillis(long long value) { SetDurationMillis(value); return *this;}
100
102
106 inline const Aws::Vector<ContentType>& GetContentTypes() const{ return m_contentTypes; }
107 inline bool ContentTypesHasBeenSet() const { return m_contentTypesHasBeenSet; }
108 inline void SetContentTypes(const Aws::Vector<ContentType>& value) { m_contentTypesHasBeenSet = true; m_contentTypes = value; }
109 inline void SetContentTypes(Aws::Vector<ContentType>&& value) { m_contentTypesHasBeenSet = true; m_contentTypes = std::move(value); }
111 inline ContentModerationDetection& WithContentTypes(Aws::Vector<ContentType>&& value) { SetContentTypes(std::move(value)); return *this;}
112 inline ContentModerationDetection& AddContentTypes(const ContentType& value) { m_contentTypesHasBeenSet = true; m_contentTypes.push_back(value); return *this; }
113 inline ContentModerationDetection& AddContentTypes(ContentType&& value) { m_contentTypesHasBeenSet = true; m_contentTypes.push_back(std::move(value)); return *this; }
115 private:
116
117 long long m_timestamp;
118 bool m_timestampHasBeenSet = false;
119
120 ModerationLabel m_moderationLabel;
121 bool m_moderationLabelHasBeenSet = false;
122
123 long long m_startTimestampMillis;
124 bool m_startTimestampMillisHasBeenSet = false;
125
126 long long m_endTimestampMillis;
127 bool m_endTimestampMillisHasBeenSet = false;
128
129 long long m_durationMillis;
130 bool m_durationMillisHasBeenSet = false;
131
132 Aws::Vector<ContentType> m_contentTypes;
133 bool m_contentTypesHasBeenSet = false;
134 };
135
136} // namespace Model
137} // namespace Rekognition
138} // namespace Aws
ContentModerationDetection & WithModerationLabel(const ModerationLabel &value)
ContentModerationDetection & WithContentTypes(const Aws::Vector< ContentType > &value)
AWS_REKOGNITION_API ContentModerationDetection(Aws::Utils::Json::JsonView jsonValue)
ContentModerationDetection & AddContentTypes(const ContentType &value)
void SetContentTypes(Aws::Vector< ContentType > &&value)
ContentModerationDetection & WithTimestamp(long long value)
ContentModerationDetection & WithModerationLabel(ModerationLabel &&value)
AWS_REKOGNITION_API Aws::Utils::Json::JsonValue Jsonize() const
ContentModerationDetection & WithEndTimestampMillis(long long value)
ContentModerationDetection & WithDurationMillis(long long value)
void SetContentTypes(const Aws::Vector< ContentType > &value)
ContentModerationDetection & AddContentTypes(ContentType &&value)
AWS_REKOGNITION_API ContentModerationDetection & operator=(Aws::Utils::Json::JsonView jsonValue)
ContentModerationDetection & WithStartTimestampMillis(long long value)
const Aws::Vector< ContentType > & GetContentTypes() const
ContentModerationDetection & WithContentTypes(Aws::Vector< ContentType > &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue