/**
 * 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/ram/RAM_EXPORTS.h>
#include <aws/ram/model/PermissionStatus.h>

#include <utility>

namespace Aws {
template <typename RESULT_TYPE>
class AmazonWebServiceResult;

namespace Utils {
namespace Json {
class JsonValue;
}  // namespace Json
}  // namespace Utils
namespace RAM {
namespace Model {
class DeletePermissionResult {
 public:
  AWS_RAM_API DeletePermissionResult() = default;
  AWS_RAM_API DeletePermissionResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
  AWS_RAM_API DeletePermissionResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);

  ///@{
  /**
   * <p>A boolean that indicates whether the delete operations succeeded.</p>
   */
  inline bool GetReturnValue() const { return m_returnValue; }
  inline void SetReturnValue(bool value) {
    m_returnValueHasBeenSet = true;
    m_returnValue = value;
  }
  inline DeletePermissionResult& WithReturnValue(bool value) {
    SetReturnValue(value);
    return *this;
  }
  ///@}

  ///@{
  /**
   * <p>The idempotency identifier associated with this request. If you want to
   * repeat the same operation in an idempotent manner then you must include this
   * value in the <code>clientToken</code> request parameter of that later call. All
   * other parameters must also have the same values that you used in the first
   * call.</p>
   */
  inline const Aws::String& GetClientToken() const { return m_clientToken; }
  template <typename ClientTokenT = Aws::String>
  void SetClientToken(ClientTokenT&& value) {
    m_clientTokenHasBeenSet = true;
    m_clientToken = std::forward<ClientTokenT>(value);
  }
  template <typename ClientTokenT = Aws::String>
  DeletePermissionResult& WithClientToken(ClientTokenT&& value) {
    SetClientToken(std::forward<ClientTokenT>(value));
    return *this;
  }
  ///@}

  ///@{
  /**
   * <p>This operation is performed asynchronously, and this response parameter
   * indicates the current status.</p>
   */
  inline PermissionStatus GetPermissionStatus() const { return m_permissionStatus; }
  inline void SetPermissionStatus(PermissionStatus value) {
    m_permissionStatusHasBeenSet = true;
    m_permissionStatus = value;
  }
  inline DeletePermissionResult& WithPermissionStatus(PermissionStatus value) {
    SetPermissionStatus(value);
    return *this;
  }
  ///@}

  ///@{

  inline const Aws::String& GetRequestId() const { return m_requestId; }
  template <typename RequestIdT = Aws::String>
  void SetRequestId(RequestIdT&& value) {
    m_requestIdHasBeenSet = true;
    m_requestId = std::forward<RequestIdT>(value);
  }
  template <typename RequestIdT = Aws::String>
  DeletePermissionResult& WithRequestId(RequestIdT&& value) {
    SetRequestId(std::forward<RequestIdT>(value));
    return *this;
  }
  ///@}
 private:
  bool m_returnValue{false};

  Aws::String m_clientToken;

  PermissionStatus m_permissionStatus{PermissionStatus::NOT_SET};

  Aws::String m_requestId;
  bool m_returnValueHasBeenSet = false;
  bool m_clientTokenHasBeenSet = false;
  bool m_permissionStatusHasBeenSet = false;
  bool m_requestIdHasBeenSet = false;
};

}  // namespace Model
}  // namespace RAM
}  // namespace Aws
