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

#include <utility>

namespace Aws {
namespace Redshift {
namespace Model {

/**
 */
class DeauthorizeDataShareRequest : public RedshiftRequest {
 public:
  AWS_REDSHIFT_API DeauthorizeDataShareRequest() = 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 "DeauthorizeDataShare"; }

  AWS_REDSHIFT_API Aws::String SerializePayload() const override;

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

 public:
  ///@{
  /**
   * <p>The namespace Amazon Resource Name (ARN) of the datashare to remove
   * authorization from.</p>
   */
  inline const Aws::String& GetDataShareArn() const { return m_dataShareArn; }
  inline bool DataShareArnHasBeenSet() const { return m_dataShareArnHasBeenSet; }
  template <typename DataShareArnT = Aws::String>
  void SetDataShareArn(DataShareArnT&& value) {
    m_dataShareArnHasBeenSet = true;
    m_dataShareArn = std::forward<DataShareArnT>(value);
  }
  template <typename DataShareArnT = Aws::String>
  DeauthorizeDataShareRequest& WithDataShareArn(DataShareArnT&& value) {
    SetDataShareArn(std::forward<DataShareArnT>(value));
    return *this;
  }
  ///@}

  ///@{
  /**
   * <p>The identifier of the data consumer that is to have authorization removed
   * from the datashare. This identifier is an Amazon Web Services account ID or a
   * keyword, such as ADX.</p>
   */
  inline const Aws::String& GetConsumerIdentifier() const { return m_consumerIdentifier; }
  inline bool ConsumerIdentifierHasBeenSet() const { return m_consumerIdentifierHasBeenSet; }
  template <typename ConsumerIdentifierT = Aws::String>
  void SetConsumerIdentifier(ConsumerIdentifierT&& value) {
    m_consumerIdentifierHasBeenSet = true;
    m_consumerIdentifier = std::forward<ConsumerIdentifierT>(value);
  }
  template <typename ConsumerIdentifierT = Aws::String>
  DeauthorizeDataShareRequest& WithConsumerIdentifier(ConsumerIdentifierT&& value) {
    SetConsumerIdentifier(std::forward<ConsumerIdentifierT>(value));
    return *this;
  }
  ///@}
 private:
  Aws::String m_dataShareArn;

  Aws::String m_consumerIdentifier;
  bool m_dataShareArnHasBeenSet = false;
  bool m_consumerIdentifierHasBeenSet = false;
};

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