/**
 * 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/storagegateway/StorageGatewayRequest.h>
#include <aws/storagegateway/StorageGateway_EXPORTS.h>

#include <utility>

namespace Aws {
namespace StorageGateway {
namespace Model {

/**
 * <p>A JSON object containing one or more of the following fields:</p> <ul> <li>
 * <p> <a>DeleteChapCredentialsInput$InitiatorName</a> </p> </li> <li> <p>
 * <a>DeleteChapCredentialsInput$TargetARN</a> </p> </li> </ul><p><h3>See
 * Also:</h3>   <a
 * href="http://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/DeleteChapCredentialsInput">AWS
 * API Reference</a></p>
 */
class DeleteChapCredentialsRequest : public StorageGatewayRequest {
 public:
  AWS_STORAGEGATEWAY_API DeleteChapCredentialsRequest() = 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 "DeleteChapCredentials"; }

  AWS_STORAGEGATEWAY_API Aws::String SerializePayload() const override;

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

  ///@{
  /**
   * <p>The Amazon Resource Name (ARN) of the iSCSI volume target. Use the
   * <a>DescribeStorediSCSIVolumes</a> operation to return to retrieve the TargetARN
   * for specified VolumeARN.</p>
   */
  inline const Aws::String& GetTargetARN() const { return m_targetARN; }
  inline bool TargetARNHasBeenSet() const { return m_targetARNHasBeenSet; }
  template <typename TargetARNT = Aws::String>
  void SetTargetARN(TargetARNT&& value) {
    m_targetARNHasBeenSet = true;
    m_targetARN = std::forward<TargetARNT>(value);
  }
  template <typename TargetARNT = Aws::String>
  DeleteChapCredentialsRequest& WithTargetARN(TargetARNT&& value) {
    SetTargetARN(std::forward<TargetARNT>(value));
    return *this;
  }
  ///@}

  ///@{
  /**
   * <p>The iSCSI initiator that connects to the target.</p>
   */
  inline const Aws::String& GetInitiatorName() const { return m_initiatorName; }
  inline bool InitiatorNameHasBeenSet() const { return m_initiatorNameHasBeenSet; }
  template <typename InitiatorNameT = Aws::String>
  void SetInitiatorName(InitiatorNameT&& value) {
    m_initiatorNameHasBeenSet = true;
    m_initiatorName = std::forward<InitiatorNameT>(value);
  }
  template <typename InitiatorNameT = Aws::String>
  DeleteChapCredentialsRequest& WithInitiatorName(InitiatorNameT&& value) {
    SetInitiatorName(std::forward<InitiatorNameT>(value));
    return *this;
  }
  ///@}
 private:
  Aws::String m_targetARN;

  Aws::String m_initiatorName;
  bool m_targetARNHasBeenSet = false;
  bool m_initiatorNameHasBeenSet = false;
};

}  // namespace Model
}  // namespace StorageGateway
}  // namespace Aws
