Interface DetectModerationLabelsResponse.Builder
-
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<DetectModerationLabelsResponse.Builder,DetectModerationLabelsResponse>,RekognitionResponse.Builder,SdkBuilder<DetectModerationLabelsResponse.Builder,DetectModerationLabelsResponse>,SdkPojo,SdkResponse.Builder
- Enclosing class:
- DetectModerationLabelsResponse
public static interface DetectModerationLabelsResponse.Builder extends RekognitionResponse.Builder, SdkPojo, CopyableBuilder<DetectModerationLabelsResponse.Builder,DetectModerationLabelsResponse>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default DetectModerationLabelsResponse.BuilderhumanLoopActivationOutput(Consumer<HumanLoopActivationOutput.Builder> humanLoopActivationOutput)Shows the results of the human in the loop evaluation.DetectModerationLabelsResponse.BuilderhumanLoopActivationOutput(HumanLoopActivationOutput humanLoopActivationOutput)Shows the results of the human in the loop evaluation.DetectModerationLabelsResponse.BuildermoderationLabels(Collection<ModerationLabel> moderationLabels)Array of detected Moderation labels and the time, in milliseconds from the start of the video, they were detected.DetectModerationLabelsResponse.BuildermoderationLabels(Consumer<ModerationLabel.Builder>... moderationLabels)Array of detected Moderation labels and the time, in milliseconds from the start of the video, they were detected.DetectModerationLabelsResponse.BuildermoderationLabels(ModerationLabel... moderationLabels)Array of detected Moderation labels and the time, in milliseconds from the start of the video, they were detected.DetectModerationLabelsResponse.BuildermoderationModelVersion(String moderationModelVersion)Version number of the base moderation detection model that was used to detect unsafe content.DetectModerationLabelsResponse.BuilderprojectVersion(String projectVersion)Identifier of the custom adapter that was used during inference.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.services.rekognition.model.RekognitionResponse.Builder
build, responseMetadata, responseMetadata
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
-
-
-
Method Detail
-
moderationLabels
DetectModerationLabelsResponse.Builder moderationLabels(Collection<ModerationLabel> moderationLabels)
Array of detected Moderation labels and the time, in milliseconds from the start of the video, they were detected.
- Parameters:
moderationLabels- Array of detected Moderation labels and the time, in milliseconds from the start of the video, they were detected.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
moderationLabels
DetectModerationLabelsResponse.Builder moderationLabels(ModerationLabel... moderationLabels)
Array of detected Moderation labels and the time, in milliseconds from the start of the video, they were detected.
- Parameters:
moderationLabels- Array of detected Moderation labels and the time, in milliseconds from the start of the video, they were detected.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
moderationLabels
DetectModerationLabelsResponse.Builder moderationLabels(Consumer<ModerationLabel.Builder>... moderationLabels)
Array of detected Moderation labels and the time, in milliseconds from the start of the video, they were detected.
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 to#moderationLabels(List.) - Parameters:
moderationLabels- 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:
#moderationLabels(java.util.Collection)
-
moderationModelVersion
DetectModerationLabelsResponse.Builder moderationModelVersion(String moderationModelVersion)
Version number of the base moderation detection model that was used to detect unsafe content.
- Parameters:
moderationModelVersion- Version number of the base moderation detection model that was used to detect unsafe content.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
humanLoopActivationOutput
DetectModerationLabelsResponse.Builder humanLoopActivationOutput(HumanLoopActivationOutput humanLoopActivationOutput)
Shows the results of the human in the loop evaluation.
- Parameters:
humanLoopActivationOutput- Shows the results of the human in the loop evaluation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
humanLoopActivationOutput
default DetectModerationLabelsResponse.Builder humanLoopActivationOutput(Consumer<HumanLoopActivationOutput.Builder> humanLoopActivationOutput)
Shows the results of the human in the loop evaluation.
This is a convenience method that creates an instance of theHumanLoopActivationOutput.Builderavoiding the need to create one manually viaHumanLoopActivationOutput.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tohumanLoopActivationOutput(HumanLoopActivationOutput).- Parameters:
humanLoopActivationOutput- a consumer that will call methods onHumanLoopActivationOutput.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
humanLoopActivationOutput(HumanLoopActivationOutput)
-
projectVersion
DetectModerationLabelsResponse.Builder projectVersion(String projectVersion)
Identifier of the custom adapter that was used during inference. If during inference the adapter was EXPIRED, then the parameter will not be returned, indicating that a base moderation detection project version was used.
- Parameters:
projectVersion- Identifier of the custom adapter that was used during inference. If during inference the adapter was EXPIRED, then the parameter will not be returned, indicating that a base moderation detection project version was used.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-