/**
 * 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/redshift/RedshiftRequest.h>
#include <aws/redshift/Redshift_EXPORTS.h>

#include <utility>

namespace Aws {
namespace Redshift {
namespace Model {

/**
 * <p>The result of the <code>DescribeSnapshotCopyGrants</code>
 * action.</p><p><h3>See Also:</h3>   <a
 * href="http://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DescribeSnapshotCopyGrantsMessage">AWS
 * API Reference</a></p>
 */
class DescribeSnapshotCopyGrantsRequest : public RedshiftRequest {
 public:
  AWS_REDSHIFT_API DescribeSnapshotCopyGrantsRequest() = 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 "DescribeSnapshotCopyGrants"; }

  AWS_REDSHIFT_API Aws::String SerializePayload() const override;

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

 public:
  ///@{
  /**
   * <p>The name of the snapshot copy grant.</p>
   */
  inline const Aws::String& GetSnapshotCopyGrantName() const { return m_snapshotCopyGrantName; }
  inline bool SnapshotCopyGrantNameHasBeenSet() const { return m_snapshotCopyGrantNameHasBeenSet; }
  template <typename SnapshotCopyGrantNameT = Aws::String>
  void SetSnapshotCopyGrantName(SnapshotCopyGrantNameT&& value) {
    m_snapshotCopyGrantNameHasBeenSet = true;
    m_snapshotCopyGrantName = std::forward<SnapshotCopyGrantNameT>(value);
  }
  template <typename SnapshotCopyGrantNameT = Aws::String>
  DescribeSnapshotCopyGrantsRequest& WithSnapshotCopyGrantName(SnapshotCopyGrantNameT&& value) {
    SetSnapshotCopyGrantName(std::forward<SnapshotCopyGrantNameT>(value));
    return *this;
  }
  ///@}

  ///@{
  /**
   * <p>The maximum number of response records to return in each call. If the number
   * of remaining response records exceeds the specified <code>MaxRecords</code>
   * value, a value is returned in a <code>marker</code> field of the response. You
   * can retrieve the next set of records by retrying the command with the returned
   * marker value. </p> <p>Default: <code>100</code> </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 DescribeSnapshotCopyGrantsRequest& WithMaxRecords(int value) {
    SetMaxRecords(value);
    return *this;
  }
  ///@}

  ///@{
  /**
   * <p>An optional parameter that specifies the starting point to return a set of
   * response records. When the results of a <code>DescribeSnapshotCopyGrant</code>
   * request exceed the value specified in <code>MaxRecords</code>, Amazon Web
   * Services returns a value in the <code>Marker</code> field of the response. You
   * can retrieve the next set of response records by providing the returned marker
   * value in the <code>Marker</code> parameter and retrying the request. </p>
   * <p>Constraints: You can specify either the <b>SnapshotCopyGrantName</b>
   * parameter or the <b>Marker</b> parameter, but not both. </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>
  DescribeSnapshotCopyGrantsRequest& WithMarker(MarkerT&& value) {
    SetMarker(std::forward<MarkerT>(value));
    return *this;
  }
  ///@}

  ///@{
  /**
   * <p>A tag key or keys for which you want to return all matching resources that
   * are associated with the specified key or keys. For example, suppose that you
   * have resources tagged with keys called <code>owner</code> and
   * <code>environment</code>. If you specify both of these tag keys in the request,
   * Amazon Redshift returns a response with all resources that have either or both
   * of these tag keys associated with them.</p>
   */
  inline const Aws::Vector<Aws::String>& GetTagKeys() const { return m_tagKeys; }
  inline bool TagKeysHasBeenSet() const { return m_tagKeysHasBeenSet; }
  template <typename TagKeysT = Aws::Vector<Aws::String>>
  void SetTagKeys(TagKeysT&& value) {
    m_tagKeysHasBeenSet = true;
    m_tagKeys = std::forward<TagKeysT>(value);
  }
  template <typename TagKeysT = Aws::Vector<Aws::String>>
  DescribeSnapshotCopyGrantsRequest& WithTagKeys(TagKeysT&& value) {
    SetTagKeys(std::forward<TagKeysT>(value));
    return *this;
  }
  template <typename TagKeysT = Aws::String>
  DescribeSnapshotCopyGrantsRequest& AddTagKeys(TagKeysT&& value) {
    m_tagKeysHasBeenSet = true;
    m_tagKeys.emplace_back(std::forward<TagKeysT>(value));
    return *this;
  }
  ///@}

  ///@{
  /**
   * <p>A tag value or values for which you want to return all matching resources
   * that are associated with the specified value or values. For example, suppose
   * that you have resources tagged with values called <code>admin</code> and
   * <code>test</code>. If you specify both of these tag values in the request,
   * Amazon Redshift returns a response with all resources that have either or both
   * of these tag values associated with them.</p>
   */
  inline const Aws::Vector<Aws::String>& GetTagValues() const { return m_tagValues; }
  inline bool TagValuesHasBeenSet() const { return m_tagValuesHasBeenSet; }
  template <typename TagValuesT = Aws::Vector<Aws::String>>
  void SetTagValues(TagValuesT&& value) {
    m_tagValuesHasBeenSet = true;
    m_tagValues = std::forward<TagValuesT>(value);
  }
  template <typename TagValuesT = Aws::Vector<Aws::String>>
  DescribeSnapshotCopyGrantsRequest& WithTagValues(TagValuesT&& value) {
    SetTagValues(std::forward<TagValuesT>(value));
    return *this;
  }
  template <typename TagValuesT = Aws::String>
  DescribeSnapshotCopyGrantsRequest& AddTagValues(TagValuesT&& value) {
    m_tagValuesHasBeenSet = true;
    m_tagValues.emplace_back(std::forward<TagValuesT>(value));
    return *this;
  }
  ///@}
 private:
  Aws::String m_snapshotCopyGrantName;

  int m_maxRecords{0};

  Aws::String m_marker;

  Aws::Vector<Aws::String> m_tagKeys;

  Aws::Vector<Aws::String> m_tagValues;
  bool m_snapshotCopyGrantNameHasBeenSet = false;
  bool m_maxRecordsHasBeenSet = false;
  bool m_markerHasBeenSet = false;
  bool m_tagKeysHasBeenSet = false;
  bool m_tagValuesHasBeenSet = false;
};

}  // namespace Model
}  // namespace Redshift
}  // namespace Aws
