/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace Rekognition { namespace Model { /** *

Information about an inappropriate, unwanted, or offensive content label * detection in a stored video.

See Also:

AWS * API Reference

*/ class ContentModerationDetection { public: AWS_REKOGNITION_API ContentModerationDetection(); AWS_REKOGNITION_API ContentModerationDetection(Aws::Utils::Json::JsonView jsonValue); AWS_REKOGNITION_API ContentModerationDetection& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_REKOGNITION_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

Time, in milliseconds from the beginning of the video, that the content * moderation label was detected. Note that Timestamp is not * guaranteed to be accurate to the individual frame where the moderated content * first appears.

*/ inline long long GetTimestamp() const{ return m_timestamp; } /** *

Time, in milliseconds from the beginning of the video, that the content * moderation label was detected. Note that Timestamp is not * guaranteed to be accurate to the individual frame where the moderated content * first appears.

*/ inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; } /** *

Time, in milliseconds from the beginning of the video, that the content * moderation label was detected. Note that Timestamp is not * guaranteed to be accurate to the individual frame where the moderated content * first appears.

*/ inline void SetTimestamp(long long value) { m_timestampHasBeenSet = true; m_timestamp = value; } /** *

Time, in milliseconds from the beginning of the video, that the content * moderation label was detected. Note that Timestamp is not * guaranteed to be accurate to the individual frame where the moderated content * first appears.

*/ inline ContentModerationDetection& WithTimestamp(long long value) { SetTimestamp(value); return *this;} /** *

The content moderation label detected by in the stored video.

*/ inline const ModerationLabel& GetModerationLabel() const{ return m_moderationLabel; } /** *

The content moderation label detected by in the stored video.

*/ inline bool ModerationLabelHasBeenSet() const { return m_moderationLabelHasBeenSet; } /** *

The content moderation label detected by in the stored video.

*/ inline void SetModerationLabel(const ModerationLabel& value) { m_moderationLabelHasBeenSet = true; m_moderationLabel = value; } /** *

The content moderation label detected by in the stored video.

*/ inline void SetModerationLabel(ModerationLabel&& value) { m_moderationLabelHasBeenSet = true; m_moderationLabel = std::move(value); } /** *

The content moderation label detected by in the stored video.

*/ inline ContentModerationDetection& WithModerationLabel(const ModerationLabel& value) { SetModerationLabel(value); return *this;} /** *

The content moderation label detected by in the stored video.

*/ inline ContentModerationDetection& WithModerationLabel(ModerationLabel&& value) { SetModerationLabel(std::move(value)); return *this;} /** *

The time in milliseconds defining the start of the timeline segment * containing a continuously detected moderation label.

*/ inline long long GetStartTimestampMillis() const{ return m_startTimestampMillis; } /** *

The time in milliseconds defining the start of the timeline segment * containing a continuously detected moderation label.

*/ inline bool StartTimestampMillisHasBeenSet() const { return m_startTimestampMillisHasBeenSet; } /** *

The time in milliseconds defining the start of the timeline segment * containing a continuously detected moderation label.

*/ inline void SetStartTimestampMillis(long long value) { m_startTimestampMillisHasBeenSet = true; m_startTimestampMillis = value; } /** *

The time in milliseconds defining the start of the timeline segment * containing a continuously detected moderation label.

*/ inline ContentModerationDetection& WithStartTimestampMillis(long long value) { SetStartTimestampMillis(value); return *this;} /** *

The time in milliseconds defining the end of the timeline segment containing * a continuously detected moderation label.

*/ inline long long GetEndTimestampMillis() const{ return m_endTimestampMillis; } /** *

The time in milliseconds defining the end of the timeline segment containing * a continuously detected moderation label.

*/ inline bool EndTimestampMillisHasBeenSet() const { return m_endTimestampMillisHasBeenSet; } /** *

The time in milliseconds defining the end of the timeline segment containing * a continuously detected moderation label.

*/ inline void SetEndTimestampMillis(long long value) { m_endTimestampMillisHasBeenSet = true; m_endTimestampMillis = value; } /** *

The time in milliseconds defining the end of the timeline segment containing * a continuously detected moderation label.

*/ inline ContentModerationDetection& WithEndTimestampMillis(long long value) { SetEndTimestampMillis(value); return *this;} /** *

The time duration of a segment in milliseconds, I.e. time elapsed from * StartTimestampMillis to EndTimestampMillis.

*/ inline long long GetDurationMillis() const{ return m_durationMillis; } /** *

The time duration of a segment in milliseconds, I.e. time elapsed from * StartTimestampMillis to EndTimestampMillis.

*/ inline bool DurationMillisHasBeenSet() const { return m_durationMillisHasBeenSet; } /** *

The time duration of a segment in milliseconds, I.e. time elapsed from * StartTimestampMillis to EndTimestampMillis.

*/ inline void SetDurationMillis(long long value) { m_durationMillisHasBeenSet = true; m_durationMillis = value; } /** *

The time duration of a segment in milliseconds, I.e. time elapsed from * StartTimestampMillis to EndTimestampMillis.

*/ inline ContentModerationDetection& WithDurationMillis(long long value) { SetDurationMillis(value); return *this;} private: long long m_timestamp; bool m_timestampHasBeenSet = false; ModerationLabel m_moderationLabel; bool m_moderationLabelHasBeenSet = false; long long m_startTimestampMillis; bool m_startTimestampMillisHasBeenSet = false; long long m_endTimestampMillis; bool m_endTimestampMillisHasBeenSet = false; long long m_durationMillis; bool m_durationMillisHasBeenSet = false; }; } // namespace Model } // namespace Rekognition } // namespace Aws