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

#pragma once
#include <aws/rekognition/RekognitionRequest.h>
#include <aws/rekognition/Rekognition_EXPORTS.h>
#include <aws/rekognition/model/DetectTextFilters.h>
#include <aws/rekognition/model/Image.h>

#include <utility>

namespace Aws {
namespace Rekognition {
namespace Model {

/**
 */
class DetectTextRequest : public RekognitionRequest {
 public:
  AWS_REKOGNITION_API DetectTextRequest() = default;

  // Service request name is the Operation name which will send this request out,
  // each operation should has unique request name, so that we can get operation's name from this request.
  // Note: this is not true for response, multiple operations may have the same response name,
  // so we can not get operation's name from response.
  inline virtual const char* GetServiceRequestName() const override { return "DetectText"; }

  AWS_REKOGNITION_API Aws::String SerializePayload() const override;

  AWS_REKOGNITION_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;

  ///@{
  /**
   * <p>The input image as base64-encoded bytes or an Amazon S3 object. If you use
   * the AWS CLI to call Amazon Rekognition operations, you can't pass image bytes.
   * </p> <p>If you are using an AWS SDK to call Amazon Rekognition, you might not
   * need to base64-encode image bytes passed using the <code>Bytes</code> field. For
   * more information, see Images in the Amazon Rekognition developer guide.</p>
   */
  inline const Image& GetImage() const { return m_image; }
  inline bool ImageHasBeenSet() const { return m_imageHasBeenSet; }
  template <typename ImageT = Image>
  void SetImage(ImageT&& value) {
    m_imageHasBeenSet = true;
    m_image = std::forward<ImageT>(value);
  }
  template <typename ImageT = Image>
  DetectTextRequest& WithImage(ImageT&& value) {
    SetImage(std::forward<ImageT>(value));
    return *this;
  }
  ///@}

  ///@{
  /**
   * <p>Optional parameters that let you set the criteria that the text must meet to
   * be included in your response.</p>
   */
  inline const DetectTextFilters& GetFilters() const { return m_filters; }
  inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
  template <typename FiltersT = DetectTextFilters>
  void SetFilters(FiltersT&& value) {
    m_filtersHasBeenSet = true;
    m_filters = std::forward<FiltersT>(value);
  }
  template <typename FiltersT = DetectTextFilters>
  DetectTextRequest& WithFilters(FiltersT&& value) {
    SetFilters(std::forward<FiltersT>(value));
    return *this;
  }
  ///@}
 private:
  Image m_image;

  DetectTextFilters m_filters;
  bool m_imageHasBeenSet = false;
  bool m_filtersHasBeenSet = false;
};

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