All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.camunda.tasklist.webapp.management.dto.GetBackupStateResponseDto Maven / Gradle / Ivy

/*
 * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH under
 * one or more contributor license agreements. See the NOTICE file distributed
 * with this work for additional information regarding copyright ownership.
 * Licensed under the Camunda License 1.0. You may not use this file
 * except in compliance with the Camunda License 1.0.
 */
package io.camunda.tasklist.webapp.management.dto;

import java.util.List;
import java.util.Objects;

public class GetBackupStateResponseDto {

  private Long backupId;
  private BackupStateDto state;
  private String failureReason;
  private List details;

  public GetBackupStateResponseDto() {}

  public GetBackupStateResponseDto(Long backupId) {
    this.backupId = backupId;
  }

  public Long getBackupId() {
    return backupId;
  }

  public GetBackupStateResponseDto setBackupId(Long backupId) {
    this.backupId = backupId;
    return this;
  }

  public BackupStateDto getState() {
    return state;
  }

  public GetBackupStateResponseDto setState(BackupStateDto state) {
    this.state = state;
    return this;
  }

  public String getFailureReason() {
    return failureReason;
  }

  public GetBackupStateResponseDto setFailureReason(String failureReason) {
    this.failureReason = failureReason;
    return this;
  }

  public List getDetails() {
    return details;
  }

  public GetBackupStateResponseDto setDetails(List details) {
    this.details = details;
    return this;
  }

  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    final GetBackupStateResponseDto that = (GetBackupStateResponseDto) o;
    return Objects.equals(backupId, that.backupId)
        && state == that.state
        && Objects.equals(failureReason, that.failureReason)
        && Objects.equals(details, that.details);
  }

  @Override
  public int hashCode() {
    return Objects.hash(backupId, state, failureReason, details);
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy