/**
 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
 * SPDX-License-Identifier: Apache-2.0.
 */

#pragma once
#include <aws/rekognition/Rekognition_EXPORTS.h>
#include <aws/rekognition/model/BoundingBox.h>
#include <aws/rekognition/model/CoversBodyPart.h>
#include <aws/rekognition/model/ProtectiveEquipmentType.h>

#include <utility>

namespace Aws {
namespace Utils {
namespace Json {
class JsonValue;
class JsonView;
}  // namespace Json
}  // namespace Utils
namespace Rekognition {
namespace Model {

/**
 * <p>Information about an item of Personal Protective Equipment (PPE) detected by
 * <a>DetectProtectiveEquipment</a>. For more information, see
 * <a>DetectProtectiveEquipment</a>.</p><p><h3>See Also:</h3>   <a
 * href="http://docs.aws.amazon.com/goto/WebAPI/rekognition-2016-06-27/EquipmentDetection">AWS
 * API Reference</a></p>
 */
class EquipmentDetection {
 public:
  AWS_REKOGNITION_API EquipmentDetection() = default;
  AWS_REKOGNITION_API EquipmentDetection(Aws::Utils::Json::JsonView jsonValue);
  AWS_REKOGNITION_API EquipmentDetection& operator=(Aws::Utils::Json::JsonView jsonValue);
  AWS_REKOGNITION_API Aws::Utils::Json::JsonValue Jsonize() const;

  ///@{
  /**
   * <p>A bounding box surrounding the item of detected PPE.</p>
   */
  inline const BoundingBox& GetBoundingBox() const { return m_boundingBox; }
  inline bool BoundingBoxHasBeenSet() const { return m_boundingBoxHasBeenSet; }
  template <typename BoundingBoxT = BoundingBox>
  void SetBoundingBox(BoundingBoxT&& value) {
    m_boundingBoxHasBeenSet = true;
    m_boundingBox = std::forward<BoundingBoxT>(value);
  }
  template <typename BoundingBoxT = BoundingBox>
  EquipmentDetection& WithBoundingBox(BoundingBoxT&& value) {
    SetBoundingBox(std::forward<BoundingBoxT>(value));
    return *this;
  }
  ///@}

  ///@{
  /**
   * <p>The confidence that Amazon Rekognition has that the bounding box
   * (<code>BoundingBox</code>) contains an item of PPE.</p>
   */
  inline double GetConfidence() const { return m_confidence; }
  inline bool ConfidenceHasBeenSet() const { return m_confidenceHasBeenSet; }
  inline void SetConfidence(double value) {
    m_confidenceHasBeenSet = true;
    m_confidence = value;
  }
  inline EquipmentDetection& WithConfidence(double value) {
    SetConfidence(value);
    return *this;
  }
  ///@}

  ///@{
  /**
   * <p>The type of detected PPE.</p>
   */
  inline ProtectiveEquipmentType GetType() const { return m_type; }
  inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
  inline void SetType(ProtectiveEquipmentType value) {
    m_typeHasBeenSet = true;
    m_type = value;
  }
  inline EquipmentDetection& WithType(ProtectiveEquipmentType value) {
    SetType(value);
    return *this;
  }
  ///@}

  ///@{
  /**
   * <p>Information about the body part covered by the detected PPE.</p>
   */
  inline const CoversBodyPart& GetCoversBodyPart() const { return m_coversBodyPart; }
  inline bool CoversBodyPartHasBeenSet() const { return m_coversBodyPartHasBeenSet; }
  template <typename CoversBodyPartT = CoversBodyPart>
  void SetCoversBodyPart(CoversBodyPartT&& value) {
    m_coversBodyPartHasBeenSet = true;
    m_coversBodyPart = std::forward<CoversBodyPartT>(value);
  }
  template <typename CoversBodyPartT = CoversBodyPart>
  EquipmentDetection& WithCoversBodyPart(CoversBodyPartT&& value) {
    SetCoversBodyPart(std::forward<CoversBodyPartT>(value));
    return *this;
  }
  ///@}
 private:
  BoundingBox m_boundingBox;

  double m_confidence{0.0};

  ProtectiveEquipmentType m_type{ProtectiveEquipmentType::NOT_SET};

  CoversBodyPart m_coversBodyPart;
  bool m_boundingBoxHasBeenSet = false;
  bool m_confidenceHasBeenSet = false;
  bool m_typeHasBeenSet = false;
  bool m_coversBodyPartHasBeenSet = false;
};

}  // namespace Model
}  // namespace Rekognition
}  // namespace Aws
