Interface DetectModerationLabelsResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<DetectModerationLabelsResponse.Builder,
,DetectModerationLabelsResponse> RekognitionResponse.Builder
,SdkBuilder<DetectModerationLabelsResponse.Builder,
,DetectModerationLabelsResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
DetectModerationLabelsResponse
-
Method Summary
Modifier and TypeMethodDescriptioncontentTypes
(Collection<ContentType> contentTypes) A list of predicted results for the type of content an image contains.contentTypes
(Consumer<ContentType.Builder>... contentTypes) A list of predicted results for the type of content an image contains.contentTypes
(ContentType... contentTypes) A list of predicted results for the type of content an image contains.humanLoopActivationOutput
(Consumer<HumanLoopActivationOutput.Builder> humanLoopActivationOutput) Shows the results of the human in the loop evaluation.humanLoopActivationOutput
(HumanLoopActivationOutput humanLoopActivationOutput) Shows the results of the human in the loop evaluation.moderationLabels
(Collection<ModerationLabel> moderationLabels) Array of detected Moderation labels and the time, in milliseconds from the start of the video, they were detected.moderationLabels
(Consumer<ModerationLabel.Builder>... moderationLabels) Array of detected Moderation labels and the time, in milliseconds from the start of the video, they were detected.moderationLabels
(ModerationLabel... moderationLabels) Array of detected Moderation labels and the time, in milliseconds from the start of the video, they were detected.moderationModelVersion
(String moderationModelVersion) Version number of the base moderation detection model that was used to detect unsafe content.projectVersion
(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 Details
-
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
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.Builder
avoiding the need to create one manually viaModerationLabel.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tomoderationLabels(List<ModerationLabel>)
.- 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:
-
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.Builder
avoiding the need to create one manually viaHumanLoopActivationOutput.builder()
.When the
Consumer
completes,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:
-
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.
-
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
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
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.Builder
avoiding the need to create one manually viaContentType.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tocontentTypes(List<ContentType>)
.- 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:
-