/**
 * 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/core/utils/memory/stl/AWSVector.h>
#include <aws/rds/RDSRequest.h>
#include <aws/rds/RDS_EXPORTS.h>
#include <aws/rds/model/Filter.h>

#include <utility>

namespace Aws {
namespace RDS {
namespace Model {

/**
 * <p/><p><h3>See Also:</h3>   <a
 * href="http://docs.aws.amazon.com/goto/WebAPI/rds-2014-10-31/DescribeReservedDBInstancesMessage">AWS
 * API Reference</a></p>
 */
class DescribeReservedDBInstancesRequest : public RDSRequest {
 public:
  AWS_RDS_API DescribeReservedDBInstancesRequest() = 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 "DescribeReservedDBInstances"; }

  AWS_RDS_API Aws::String SerializePayload() const override;

 protected:
  AWS_RDS_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;

 public:
  ///@{
  /**
   * <p>The reserved DB instance identifier filter value. Specify this parameter to
   * show only the reservation that matches the specified reservation ID.</p>
   */
  inline const Aws::String& GetReservedDBInstanceId() const { return m_reservedDBInstanceId; }
  inline bool ReservedDBInstanceIdHasBeenSet() const { return m_reservedDBInstanceIdHasBeenSet; }
  template <typename ReservedDBInstanceIdT = Aws::String>
  void SetReservedDBInstanceId(ReservedDBInstanceIdT&& value) {
    m_reservedDBInstanceIdHasBeenSet = true;
    m_reservedDBInstanceId = std::forward<ReservedDBInstanceIdT>(value);
  }
  template <typename ReservedDBInstanceIdT = Aws::String>
  DescribeReservedDBInstancesRequest& WithReservedDBInstanceId(ReservedDBInstanceIdT&& value) {
    SetReservedDBInstanceId(std::forward<ReservedDBInstanceIdT>(value));
    return *this;
  }
  ///@}

  ///@{
  /**
   * <p>The offering identifier filter value. Specify this parameter to show only
   * purchased reservations matching the specified offering identifier.</p>
   */
  inline const Aws::String& GetReservedDBInstancesOfferingId() const { return m_reservedDBInstancesOfferingId; }
  inline bool ReservedDBInstancesOfferingIdHasBeenSet() const { return m_reservedDBInstancesOfferingIdHasBeenSet; }
  template <typename ReservedDBInstancesOfferingIdT = Aws::String>
  void SetReservedDBInstancesOfferingId(ReservedDBInstancesOfferingIdT&& value) {
    m_reservedDBInstancesOfferingIdHasBeenSet = true;
    m_reservedDBInstancesOfferingId = std::forward<ReservedDBInstancesOfferingIdT>(value);
  }
  template <typename ReservedDBInstancesOfferingIdT = Aws::String>
  DescribeReservedDBInstancesRequest& WithReservedDBInstancesOfferingId(ReservedDBInstancesOfferingIdT&& value) {
    SetReservedDBInstancesOfferingId(std::forward<ReservedDBInstancesOfferingIdT>(value));
    return *this;
  }
  ///@}

  ///@{
  /**
   * <p>The DB instance class filter value. Specify this parameter to show only those
   * reservations matching the specified DB instances class.</p>
   */
  inline const Aws::String& GetDBInstanceClass() const { return m_dBInstanceClass; }
  inline bool DBInstanceClassHasBeenSet() const { return m_dBInstanceClassHasBeenSet; }
  template <typename DBInstanceClassT = Aws::String>
  void SetDBInstanceClass(DBInstanceClassT&& value) {
    m_dBInstanceClassHasBeenSet = true;
    m_dBInstanceClass = std::forward<DBInstanceClassT>(value);
  }
  template <typename DBInstanceClassT = Aws::String>
  DescribeReservedDBInstancesRequest& WithDBInstanceClass(DBInstanceClassT&& value) {
    SetDBInstanceClass(std::forward<DBInstanceClassT>(value));
    return *this;
  }
  ///@}

  ///@{
  /**
   * <p>The duration filter value, specified in years or seconds. Specify this
   * parameter to show only reservations for this duration.</p> <p>Valid Values:
   * <code>1 | 3 | 31536000 | 94608000</code> </p>
   */
  inline const Aws::String& GetDuration() const { return m_duration; }
  inline bool DurationHasBeenSet() const { return m_durationHasBeenSet; }
  template <typename DurationT = Aws::String>
  void SetDuration(DurationT&& value) {
    m_durationHasBeenSet = true;
    m_duration = std::forward<DurationT>(value);
  }
  template <typename DurationT = Aws::String>
  DescribeReservedDBInstancesRequest& WithDuration(DurationT&& value) {
    SetDuration(std::forward<DurationT>(value));
    return *this;
  }
  ///@}

  ///@{
  /**
   * <p>The product description filter value. Specify this parameter to show only
   * those reservations matching the specified product description.</p>
   */
  inline const Aws::String& GetProductDescription() const { return m_productDescription; }
  inline bool ProductDescriptionHasBeenSet() const { return m_productDescriptionHasBeenSet; }
  template <typename ProductDescriptionT = Aws::String>
  void SetProductDescription(ProductDescriptionT&& value) {
    m_productDescriptionHasBeenSet = true;
    m_productDescription = std::forward<ProductDescriptionT>(value);
  }
  template <typename ProductDescriptionT = Aws::String>
  DescribeReservedDBInstancesRequest& WithProductDescription(ProductDescriptionT&& value) {
    SetProductDescription(std::forward<ProductDescriptionT>(value));
    return *this;
  }
  ///@}

  ///@{
  /**
   * <p>The offering type filter value. Specify this parameter to show only the
   * available offerings matching the specified offering type.</p> <p>Valid Values:
   * <code>"Partial Upfront" | "All Upfront" | "No Upfront" </code> </p>
   */
  inline const Aws::String& GetOfferingType() const { return m_offeringType; }
  inline bool OfferingTypeHasBeenSet() const { return m_offeringTypeHasBeenSet; }
  template <typename OfferingTypeT = Aws::String>
  void SetOfferingType(OfferingTypeT&& value) {
    m_offeringTypeHasBeenSet = true;
    m_offeringType = std::forward<OfferingTypeT>(value);
  }
  template <typename OfferingTypeT = Aws::String>
  DescribeReservedDBInstancesRequest& WithOfferingType(OfferingTypeT&& value) {
    SetOfferingType(std::forward<OfferingTypeT>(value));
    return *this;
  }
  ///@}

  ///@{
  /**
   * <p>Specifies whether to show only those reservations that support Multi-AZ.</p>
   */
  inline bool GetMultiAZ() const { return m_multiAZ; }
  inline bool MultiAZHasBeenSet() const { return m_multiAZHasBeenSet; }
  inline void SetMultiAZ(bool value) {
    m_multiAZHasBeenSet = true;
    m_multiAZ = value;
  }
  inline DescribeReservedDBInstancesRequest& WithMultiAZ(bool value) {
    SetMultiAZ(value);
    return *this;
  }
  ///@}

  ///@{
  /**
   * <p>The lease identifier filter value. Specify this parameter to show only the
   * reservation that matches the specified lease ID.</p>  <p>Amazon Web
   * Services Support might request the lease ID for an issue related to a reserved
   * DB instance.</p>
   */
  inline const Aws::String& GetLeaseId() const { return m_leaseId; }
  inline bool LeaseIdHasBeenSet() const { return m_leaseIdHasBeenSet; }
  template <typename LeaseIdT = Aws::String>
  void SetLeaseId(LeaseIdT&& value) {
    m_leaseIdHasBeenSet = true;
    m_leaseId = std::forward<LeaseIdT>(value);
  }
  template <typename LeaseIdT = Aws::String>
  DescribeReservedDBInstancesRequest& WithLeaseId(LeaseIdT&& value) {
    SetLeaseId(std::forward<LeaseIdT>(value));
    return *this;
  }
  ///@}

  ///@{
  /**
   * <p>This parameter isn't currently supported.</p>
   */
  inline const Aws::Vector<Filter>& GetFilters() const { return m_filters; }
  inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
  template <typename FiltersT = Aws::Vector<Filter>>
  void SetFilters(FiltersT&& value) {
    m_filtersHasBeenSet = true;
    m_filters = std::forward<FiltersT>(value);
  }
  template <typename FiltersT = Aws::Vector<Filter>>
  DescribeReservedDBInstancesRequest& WithFilters(FiltersT&& value) {
    SetFilters(std::forward<FiltersT>(value));
    return *this;
  }
  template <typename FiltersT = Filter>
  DescribeReservedDBInstancesRequest& AddFilters(FiltersT&& value) {
    m_filtersHasBeenSet = true;
    m_filters.emplace_back(std::forward<FiltersT>(value));
    return *this;
  }
  ///@}

  ///@{
  /**
   * <p>The maximum number of records to include in the response. If more than the
   * <code>MaxRecords</code> value is available, a pagination token called a marker
   * is included in the response so you can retrieve the remaining results.</p>
   * <p>Default: 100</p> <p>Constraints: Minimum 20, maximum 100.</p>
   */
  inline int GetMaxRecords() const { return m_maxRecords; }
  inline bool MaxRecordsHasBeenSet() const { return m_maxRecordsHasBeenSet; }
  inline void SetMaxRecords(int value) {
    m_maxRecordsHasBeenSet = true;
    m_maxRecords = value;
  }
  inline DescribeReservedDBInstancesRequest& WithMaxRecords(int value) {
    SetMaxRecords(value);
    return *this;
  }
  ///@}

  ///@{
  /**
   * <p>An optional pagination token provided by a previous request. If this
   * parameter is specified, the response includes only records beyond the marker, up
   * to the value specified by <code>MaxRecords</code>.</p>
   */
  inline const Aws::String& GetMarker() const { return m_marker; }
  inline bool MarkerHasBeenSet() const { return m_markerHasBeenSet; }
  template <typename MarkerT = Aws::String>
  void SetMarker(MarkerT&& value) {
    m_markerHasBeenSet = true;
    m_marker = std::forward<MarkerT>(value);
  }
  template <typename MarkerT = Aws::String>
  DescribeReservedDBInstancesRequest& WithMarker(MarkerT&& value) {
    SetMarker(std::forward<MarkerT>(value));
    return *this;
  }
  ///@}
 private:
  Aws::String m_reservedDBInstanceId;

  Aws::String m_reservedDBInstancesOfferingId;

  Aws::String m_dBInstanceClass;

  Aws::String m_duration;

  Aws::String m_productDescription;

  Aws::String m_offeringType;

  bool m_multiAZ{false};

  Aws::String m_leaseId;

  Aws::Vector<Filter> m_filters;

  int m_maxRecords{0};

  Aws::String m_marker;
  bool m_reservedDBInstanceIdHasBeenSet = false;
  bool m_reservedDBInstancesOfferingIdHasBeenSet = false;
  bool m_dBInstanceClassHasBeenSet = false;
  bool m_durationHasBeenSet = false;
  bool m_productDescriptionHasBeenSet = false;
  bool m_offeringTypeHasBeenSet = false;
  bool m_multiAZHasBeenSet = false;
  bool m_leaseIdHasBeenSet = false;
  bool m_filtersHasBeenSet = false;
  bool m_maxRecordsHasBeenSet = false;
  bool m_markerHasBeenSet = false;
};

}  // namespace Model
}  // namespace RDS
}  // namespace Aws
