1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`DetectProtectiveEquipment`](crate::operation::detect_protective_equipment::builders::DetectProtectiveEquipmentFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`image(Image)`](crate::operation::detect_protective_equipment::builders::DetectProtectiveEquipmentFluentBuilder::image) / [`set_image(Option<Image>)`](crate::operation::detect_protective_equipment::builders::DetectProtectiveEquipmentFluentBuilder::set_image):<br>required: **true**<br><p>The image in which you want to detect PPE on detected persons. The image can be passed as image bytes or you can reference an image stored in an Amazon S3 bucket. </p><br>
    ///   - [`summarization_attributes(ProtectiveEquipmentSummarizationAttributes)`](crate::operation::detect_protective_equipment::builders::DetectProtectiveEquipmentFluentBuilder::summarization_attributes) / [`set_summarization_attributes(Option<ProtectiveEquipmentSummarizationAttributes>)`](crate::operation::detect_protective_equipment::builders::DetectProtectiveEquipmentFluentBuilder::set_summarization_attributes):<br>required: **false**<br><p>An array of PPE types that you want to summarize.</p><br>
    /// - On success, responds with [`DetectProtectiveEquipmentOutput`](crate::operation::detect_protective_equipment::DetectProtectiveEquipmentOutput) with field(s):
    ///   - [`protective_equipment_model_version(Option<String>)`](crate::operation::detect_protective_equipment::DetectProtectiveEquipmentOutput::protective_equipment_model_version): <p>The version number of the PPE detection model used to detect PPE in the image.</p>
    ///   - [`persons(Option<Vec::<ProtectiveEquipmentPerson>>)`](crate::operation::detect_protective_equipment::DetectProtectiveEquipmentOutput::persons): <p>An array of persons detected in the image (including persons not wearing PPE).</p>
    ///   - [`summary(Option<ProtectiveEquipmentSummary>)`](crate::operation::detect_protective_equipment::DetectProtectiveEquipmentOutput::summary): <p>Summary information for the types of PPE specified in the <code>SummarizationAttributes</code> input parameter.</p>
    /// - On failure, responds with [`SdkError<DetectProtectiveEquipmentError>`](crate::operation::detect_protective_equipment::DetectProtectiveEquipmentError)
    pub fn detect_protective_equipment(&self) -> crate::operation::detect_protective_equipment::builders::DetectProtectiveEquipmentFluentBuilder {
        crate::operation::detect_protective_equipment::builders::DetectProtectiveEquipmentFluentBuilder::new(self.handle.clone())
    }
}