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

#pragma once
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/sagemaker-geospatial/SageMakerGeospatialRequest.h>
#include <aws/sagemaker-geospatial/SageMakerGeospatial_EXPORTS.h>
#include <aws/sagemaker-geospatial/model/RasterDataCollectionQueryWithBandFilterInput.h>

#include <utility>

namespace Aws {
namespace SageMakerGeospatial {
namespace Model {

/**
 */
class SearchRasterDataCollectionRequest : public SageMakerGeospatialRequest {
 public:
  AWS_SAGEMAKERGEOSPATIAL_API SearchRasterDataCollectionRequest() = 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 "SearchRasterDataCollection"; }

  AWS_SAGEMAKERGEOSPATIAL_API Aws::String SerializePayload() const override;

  ///@{
  /**
   * <p>The Amazon Resource Name (ARN) of the raster data collection.</p>
   */
  inline const Aws::String& GetArn() const { return m_arn; }
  inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
  template <typename ArnT = Aws::String>
  void SetArn(ArnT&& value) {
    m_arnHasBeenSet = true;
    m_arn = std::forward<ArnT>(value);
  }
  template <typename ArnT = Aws::String>
  SearchRasterDataCollectionRequest& WithArn(ArnT&& value) {
    SetArn(std::forward<ArnT>(value));
    return *this;
  }
  ///@}

  ///@{
  /**
   * <p>If the previous response was truncated, you receive this token. Use it in
   * your next request to receive the next set of results.</p>
   */
  inline const Aws::String& GetNextToken() const { return m_nextToken; }
  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
  template <typename NextTokenT = Aws::String>
  void SetNextToken(NextTokenT&& value) {
    m_nextTokenHasBeenSet = true;
    m_nextToken = std::forward<NextTokenT>(value);
  }
  template <typename NextTokenT = Aws::String>
  SearchRasterDataCollectionRequest& WithNextToken(NextTokenT&& value) {
    SetNextToken(std::forward<NextTokenT>(value));
    return *this;
  }
  ///@}

  ///@{
  /**
   * <p>RasterDataCollectionQuery consisting of <a
   * href="https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_geospatial_AreaOfInterest.html">AreaOfInterest(AOI)</a>,
   * <a
   * href="https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_geospatial_PropertyFilter.html">PropertyFilters</a>
   * and <a
   * href="https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_geospatial_TimeRangeFilterInput.html">TimeRangeFilterInput</a>
   * used in <a
   * href="https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_geospatial_SearchRasterDataCollection.html">SearchRasterDataCollection</a>.</p>
   */
  inline const RasterDataCollectionQueryWithBandFilterInput& GetRasterDataCollectionQuery() const { return m_rasterDataCollectionQuery; }
  inline bool RasterDataCollectionQueryHasBeenSet() const { return m_rasterDataCollectionQueryHasBeenSet; }
  template <typename RasterDataCollectionQueryT = RasterDataCollectionQueryWithBandFilterInput>
  void SetRasterDataCollectionQuery(RasterDataCollectionQueryT&& value) {
    m_rasterDataCollectionQueryHasBeenSet = true;
    m_rasterDataCollectionQuery = std::forward<RasterDataCollectionQueryT>(value);
  }
  template <typename RasterDataCollectionQueryT = RasterDataCollectionQueryWithBandFilterInput>
  SearchRasterDataCollectionRequest& WithRasterDataCollectionQuery(RasterDataCollectionQueryT&& value) {
    SetRasterDataCollectionQuery(std::forward<RasterDataCollectionQueryT>(value));
    return *this;
  }
  ///@}
 private:
  Aws::String m_arn;

  Aws::String m_nextToken;

  RasterDataCollectionQueryWithBandFilterInput m_rasterDataCollectionQuery;
  bool m_arnHasBeenSet = false;
  bool m_nextTokenHasBeenSet = false;
  bool m_rasterDataCollectionQueryHasBeenSet = false;
};

}  // namespace Model
}  // namespace SageMakerGeospatial
}  // namespace Aws
