Interface DetectProtectiveEquipmentResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<DetectProtectiveEquipmentResponse.Builder,
,DetectProtectiveEquipmentResponse> RekognitionResponse.Builder
,SdkBuilder<DetectProtectiveEquipmentResponse.Builder,
,DetectProtectiveEquipmentResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
DetectProtectiveEquipmentResponse
-
Method Summary
Modifier and TypeMethodDescriptionpersons
(Collection<ProtectiveEquipmentPerson> persons) An array of persons detected in the image (including persons not wearing PPE).persons
(Consumer<ProtectiveEquipmentPerson.Builder>... persons) An array of persons detected in the image (including persons not wearing PPE).persons
(ProtectiveEquipmentPerson... persons) An array of persons detected in the image (including persons not wearing PPE).protectiveEquipmentModelVersion
(String protectiveEquipmentModelVersion) The version number of the PPE detection model used to detect PPE in the image.Summary information for the types of PPE specified in theSummarizationAttributes
input parameter.summary
(ProtectiveEquipmentSummary summary) Summary information for the types of PPE specified in theSummarizationAttributes
input parameter.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
-
protectiveEquipmentModelVersion
DetectProtectiveEquipmentResponse.Builder protectiveEquipmentModelVersion(String protectiveEquipmentModelVersion) The version number of the PPE detection model used to detect PPE in the image.
- Parameters:
protectiveEquipmentModelVersion
- The version number of the PPE detection model used to detect PPE in the image.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
persons
An array of persons detected in the image (including persons not wearing PPE).
- Parameters:
persons
- An array of persons detected in the image (including persons not wearing PPE).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
persons
An array of persons detected in the image (including persons not wearing PPE).
- Parameters:
persons
- An array of persons detected in the image (including persons not wearing PPE).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
persons
DetectProtectiveEquipmentResponse.Builder persons(Consumer<ProtectiveEquipmentPerson.Builder>... persons) An array of persons detected in the image (including persons not wearing PPE).
This is a convenience method that creates an instance of theProtectiveEquipmentPerson.Builder
avoiding the need to create one manually viaProtectiveEquipmentPerson.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed topersons(List<ProtectiveEquipmentPerson>)
.- Parameters:
persons
- a consumer that will call methods onProtectiveEquipmentPerson.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
summary
Summary information for the types of PPE specified in the
SummarizationAttributes
input parameter.- Parameters:
summary
- Summary information for the types of PPE specified in theSummarizationAttributes
input parameter.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
summary
default DetectProtectiveEquipmentResponse.Builder summary(Consumer<ProtectiveEquipmentSummary.Builder> summary) Summary information for the types of PPE specified in the
This is a convenience method that creates an instance of theSummarizationAttributes
input parameter.ProtectiveEquipmentSummary.Builder
avoiding the need to create one manually viaProtectiveEquipmentSummary.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tosummary(ProtectiveEquipmentSummary)
.- Parameters:
summary
- a consumer that will call methods onProtectiveEquipmentSummary.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-