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

#pragma once
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/rekognition/Rekognition_EXPORTS.h>
#include <aws/rekognition/model/FaceDetail.h>
#include <aws/rekognition/model/UnsearchedFaceReason.h>

#include <utility>

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

/**
 * <p>Face details inferred from the image but not used for search. The response
 * attribute contains reasons for why a face wasn't used for Search. </p><p><h3>See
 * Also:</h3>   <a
 * href="http://docs.aws.amazon.com/goto/WebAPI/rekognition-2016-06-27/UnsearchedFace">AWS
 * API Reference</a></p>
 */
class UnsearchedFace {
 public:
  AWS_REKOGNITION_API UnsearchedFace() = default;
  AWS_REKOGNITION_API UnsearchedFace(Aws::Utils::Json::JsonView jsonValue);
  AWS_REKOGNITION_API UnsearchedFace& operator=(Aws::Utils::Json::JsonView jsonValue);
  AWS_REKOGNITION_API Aws::Utils::Json::JsonValue Jsonize() const;

  ///@{

  inline const FaceDetail& GetFaceDetails() const { return m_faceDetails; }
  inline bool FaceDetailsHasBeenSet() const { return m_faceDetailsHasBeenSet; }
  template <typename FaceDetailsT = FaceDetail>
  void SetFaceDetails(FaceDetailsT&& value) {
    m_faceDetailsHasBeenSet = true;
    m_faceDetails = std::forward<FaceDetailsT>(value);
  }
  template <typename FaceDetailsT = FaceDetail>
  UnsearchedFace& WithFaceDetails(FaceDetailsT&& value) {
    SetFaceDetails(std::forward<FaceDetailsT>(value));
    return *this;
  }
  ///@}

  ///@{
  /**
   * <p> Reasons why a face wasn't used for Search. </p>
   */
  inline const Aws::Vector<UnsearchedFaceReason>& GetReasons() const { return m_reasons; }
  inline bool ReasonsHasBeenSet() const { return m_reasonsHasBeenSet; }
  template <typename ReasonsT = Aws::Vector<UnsearchedFaceReason>>
  void SetReasons(ReasonsT&& value) {
    m_reasonsHasBeenSet = true;
    m_reasons = std::forward<ReasonsT>(value);
  }
  template <typename ReasonsT = Aws::Vector<UnsearchedFaceReason>>
  UnsearchedFace& WithReasons(ReasonsT&& value) {
    SetReasons(std::forward<ReasonsT>(value));
    return *this;
  }
  inline UnsearchedFace& AddReasons(UnsearchedFaceReason value) {
    m_reasonsHasBeenSet = true;
    m_reasons.push_back(value);
    return *this;
  }
  ///@}
 private:
  FaceDetail m_faceDetails;

  Aws::Vector<UnsearchedFaceReason> m_reasons;
  bool m_faceDetailsHasBeenSet = false;
  bool m_reasonsHasBeenSet = false;
};

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