text: ﻿/*
  * Copyright 2010-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
  *
  * Licensed under the Apache License, Version 2.0 (the "License").
  * You may not use this file except in compliance with the License.
  * A copy of the License is located at
  *
  *  http://aws.amazon.com/apache2.0
  *
  * or in the "license" file accompanying this file. This file is distributed
  * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
  * express or implied. See the License for the specific language governing
  * permissions and limitations under the License.
  */
  
  #pragma once
  #include <aws/rekognition/Rekognition_EXPORTS.h>
  #include <aws/rekognition/RekognitionRequest.h>
  #include <aws/core/utils/memory/stl/AWSString.h>
  #include <aws/rekognition/model/Image.h>
  #include <utility>
  
  namespace Aws
  {
  namespace Rekognition
  {
  namespace Model
  {
  
    /**
     */
    class AWS_REKOGNITION_API SearchFacesByImageRequest : public RekognitionRequest
    {
    public:
      SearchFacesByImageRequest();
      Aws::String SerializePayload() const override;
  
      Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
  
  
      /**
       * <p>ID of the collection to search.</p>
       */
      inline const Aws::String& GetCollectionId() const{ return m_collectionId; }
  
      /**
       * <p>ID of the collection to search.</p>
       */
      inline void SetCollectionId(const Aws::String& value) { m_collectionIdHasBeenSet = true; m_collectionId = value; }
  
      /**
       * <p>ID of the collection to search.</p>
       */
      inline void SetCollectionId(Aws::String&& value) { m_collectionIdHasBeenSet = true; m_collectionId = std::move(value); }
  
      /**
       * <p>ID of the collection to search.</p>
       */
      inline void SetCollectionId(const char* value) { m_collectionIdHasBeenSet = true; m_collectionId.assign(value); }
  
      /**
       * <p>ID of the collection to search.</p>
       */
      inline SearchFacesByImageRequest& WithCollectionId(const Aws::String& value) { SetCollectionId(value); return *this;}
  
      /**
       * <p>ID of the collection to search.</p>
       */
      inline SearchFacesByImageRequest& WithCollectionId(Aws::String&& value) { SetCollectionId(std::move(value)); return *this;}
  
      /**
       * <p>ID of the collection to search.</p>
       */
      inline SearchFacesByImageRequest& WithCollectionId(const char* value) { SetCollectionId(value); return *this;}
  
  
      /**
       * <p>The input image as bytes or an S3 object.</p>
       */
      inline const Image& GetImage() const{ return m_image; }
  
      /**
       * <p>The input image as bytes or an S3 object.</p>
       */
      inline void SetImage(const Image& value) { m_imageHasBeenSet = true; m_image = value; }
  
      /**
       * <p>The input image as bytes or an S3 object.</p>
       */
      inline void SetImage(Image&& value) { m_imageHasBeenSet = true; m_image = std::move(value); }
  
      /**
       * <p>The input image as bytes or an S3 object.</p>
       */
      inline SearchFacesByImageRequest& WithImage(const Image& value) { SetImage(value); return *this;}
  
      /**
       * <p>The input image as bytes or an S3 object.</p>
       */
      inline SearchFacesByImageRequest& WithImage(Image&& value) { SetImage(std::move(value)); return *this;}
  
  
      /**
       * <p>Maximum number of faces to return. The operation returns the maximum number
       * of faces with the highest confidence in the match.</p>
       */
      inline int GetMaxFaces() const{ return m_maxFaces; }
  
      /**
       * <p>Maximum number of faces to return. The operation returns the maximum number
       * of faces with the highest confidence in the match.</p>
       */
      inline void SetMaxFaces(int value) { m_maxFacesHasBeenSet = true; m_maxFaces = value; }
  
      /**
       * <p>Maximum number of faces to return. The operation returns the maximum number
       * of faces with the highest confidence in the match.</p>
       */
      inline SearchFacesByImageRequest& WithMaxFaces(int value) { SetMaxFaces(value); return *this;}
  
  
      /**
       * <p>(Optional) Specifies the minimum confidence in the face match to return. For
       * example, don't return any matches where confidence in matches is less than
       * 70%.</p>
       */
      inline double GetFaceMatchThreshold() const{ return m_faceMatchThreshold; }
  
      /**
       * <p>(Optional) Specifies the minimum confidence in the face match to return. For
       * example, don't return any matches where confidence in matches is less than
       * 70%.</p>
       */
      inline void SetFaceMatchThreshold(double value) { m_faceMatchThresholdHasBeenSet = true; m_faceMatchThreshold = value; }
  
      /**
       * <p>(Optional) Specifies the minimum confidence in the face match to return. For
       * example, don't return any matches where confidence in matches is less than
       * 70%.</p>
       */
      inline SearchFacesByImageRequest& WithFaceMatchThreshold(double value) { SetFaceMatchThreshold(value); return *this;}
  
    private:
  
      Aws::String m_collectionId;
      bool m_collectionIdHasBeenSet;
  
      Image m_image;
      bool m_imageHasBeenSet;
  
      int m_maxFaces;
      bool m_maxFacesHasBeenSet;
  
      double m_faceMatchThreshold;
      bool m_faceMatchThresholdHasBeenSet;
    };
  
  } // namespace Model
  } // namespace Rekognition
  } // namespace Aws
  