Interface ContentModerationDetection.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<ContentModerationDetection.Builder,ContentModerationDetection>,SdkBuilder<ContentModerationDetection.Builder,ContentModerationDetection>,SdkPojo
- Enclosing class:
- ContentModerationDetection
public static interface ContentModerationDetection.Builder extends SdkPojo, CopyableBuilder<ContentModerationDetection.Builder,ContentModerationDetection>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description ContentModerationDetection.BuildercontentTypes(Collection<ContentType> contentTypes)A list of predicted results for the type of content an image contains.ContentModerationDetection.BuildercontentTypes(Consumer<ContentType.Builder>... contentTypes)A list of predicted results for the type of content an image contains.ContentModerationDetection.BuildercontentTypes(ContentType... contentTypes)A list of predicted results for the type of content an image contains.ContentModerationDetection.BuilderdurationMillis(Long durationMillis)The time duration of a segment in milliseconds, I.e.ContentModerationDetection.BuilderendTimestampMillis(Long endTimestampMillis)The time in milliseconds defining the end of the timeline segment containing a continuously detected moderation label.default ContentModerationDetection.BuildermoderationLabel(Consumer<ModerationLabel.Builder> moderationLabel)The content moderation label detected by in the stored video.ContentModerationDetection.BuildermoderationLabel(ModerationLabel moderationLabel)The content moderation label detected by in the stored video.ContentModerationDetection.BuilderstartTimestampMillis(Long startTimestampMillis)The time in milliseconds defining the start of the timeline segment containing a continuously detected moderation label.ContentModerationDetection.Buildertimestamp(Long timestamp)Time, in milliseconds from the beginning of the video, that the content moderation label was detected.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
timestamp
ContentModerationDetection.Builder timestamp(Long timestamp)
Time, in milliseconds from the beginning of the video, that the content moderation label was detected. Note that
Timestampis not guaranteed to be accurate to the individual frame where the moderated content first appears.- Parameters:
timestamp- Time, in milliseconds from the beginning of the video, that the content moderation label was detected. Note thatTimestampis not guaranteed to be accurate to the individual frame where the moderated content first appears.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
moderationLabel
ContentModerationDetection.Builder moderationLabel(ModerationLabel moderationLabel)
The content moderation label detected by in the stored video.
- Parameters:
moderationLabel- The content moderation label detected by in the stored video.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
moderationLabel
default ContentModerationDetection.Builder moderationLabel(Consumer<ModerationLabel.Builder> moderationLabel)
The content moderation label detected by in the stored video.
This is a convenience method that creates an instance of theModerationLabel.Builderavoiding the need to create one manually viaModerationLabel.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tomoderationLabel(ModerationLabel).- Parameters:
moderationLabel- a consumer that will call methods onModerationLabel.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
moderationLabel(ModerationLabel)
-
startTimestampMillis
ContentModerationDetection.Builder startTimestampMillis(Long startTimestampMillis)
The time in milliseconds defining the start of the timeline segment containing a continuously detected moderation label.
- Parameters:
startTimestampMillis- The time in milliseconds defining the start of the timeline segment containing a continuously detected moderation label.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
endTimestampMillis
ContentModerationDetection.Builder endTimestampMillis(Long endTimestampMillis)
The time in milliseconds defining the end of the timeline segment containing a continuously detected moderation label.
- Parameters:
endTimestampMillis- The time in milliseconds defining the end of the timeline segment containing a continuously detected moderation label.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
durationMillis
ContentModerationDetection.Builder durationMillis(Long durationMillis)
The time duration of a segment in milliseconds, I.e. time elapsed from StartTimestampMillis to EndTimestampMillis.
- Parameters:
durationMillis- The time duration of a segment in milliseconds, I.e. time elapsed from StartTimestampMillis to EndTimestampMillis.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
contentTypes
ContentModerationDetection.Builder contentTypes(Collection<ContentType> contentTypes)
A list of predicted results for the type of content an image contains. For example, the image content might be from animation, sports, or a video game.
- Parameters:
contentTypes- A list of predicted results for the type of content an image contains. For example, the image content might be from animation, sports, or a video game.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
contentTypes
ContentModerationDetection.Builder contentTypes(ContentType... contentTypes)
A list of predicted results for the type of content an image contains. For example, the image content might be from animation, sports, or a video game.
- Parameters:
contentTypes- A list of predicted results for the type of content an image contains. For example, the image content might be from animation, sports, or a video game.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
contentTypes
ContentModerationDetection.Builder contentTypes(Consumer<ContentType.Builder>... contentTypes)
A list of predicted results for the type of content an image contains. For example, the image content might be from animation, sports, or a video game.
This is a convenience method that creates an instance of theContentType.Builderavoiding the need to create one manually viaContentType.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#contentTypes(List.) - Parameters:
contentTypes- a consumer that will call methods onContentType.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#contentTypes(java.util.Collection)
-
-