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

com.hubspot.singularity.config.HistoryPurgeRequestSettings Maven / Gradle / Ivy

package com.hubspot.singularity.config;

import com.google.common.base.Optional;

public class HistoryPurgeRequestSettings {
  private Optional deleteTaskHistoryAfterDays = Optional.absent();
  private Optional deleteTaskHistoryAfterTasksPerRequest = Optional.absent();
  private Optional deleteTaskHistoryBytesAfterDays = Optional.absent();
  private Optional deleteTaskHistoryBytesAfterTasksPerRequest = Optional.absent();

  public Optional getDeleteTaskHistoryAfterDays() {
    return deleteTaskHistoryAfterDays;
  }

  public HistoryPurgeRequestSettings setDeleteTaskHistoryAfterDays(Optional deleteTaskHistoryAfterDays) {
    this.deleteTaskHistoryAfterDays = deleteTaskHistoryAfterDays;
    return this;
  }

  public Optional getDeleteTaskHistoryAfterTasksPerRequest() {
    return deleteTaskHistoryAfterTasksPerRequest;
  }

  public void setDeleteTaskHistoryAfterTasksPerRequest(Optional deleteTaskHistoryAfterTasksPerRequest) {
    this.deleteTaskHistoryAfterTasksPerRequest = deleteTaskHistoryAfterTasksPerRequest;
  }

  public Optional getDeleteTaskHistoryBytesAfterDays() {
    return deleteTaskHistoryBytesAfterDays;
  }

  public void setDeleteTaskHistoryBytesAfterDays(Optional deleteTaskHistoryBytesAfterDays) {
    this.deleteTaskHistoryBytesAfterDays = deleteTaskHistoryBytesAfterDays;
  }

  public Optional getDeleteTaskHistoryBytesAfterTasksPerRequest() {
    return deleteTaskHistoryBytesAfterTasksPerRequest;
  }

  public void setDeleteTaskHistoryBytesAfterTasksPerRequest(Optional deleteTaskHistoryBytesAfterTasksPerRequest) {
    this.deleteTaskHistoryBytesAfterTasksPerRequest = deleteTaskHistoryBytesAfterTasksPerRequest;
  }

  @Override
  public String toString() {
    return "HistoryPurgeRequestSettings{" +
      "deleteTaskHistoryAfterDays=" + deleteTaskHistoryAfterDays +
      ", deleteTaskHistoryAfterTasksPerRequest=" + deleteTaskHistoryAfterTasksPerRequest +
      ", deleteTaskHistoryBytesAfterDays=" + deleteTaskHistoryBytesAfterDays +
      ", deleteTaskHistoryBytesAfterTasksPerRequest=" + deleteTaskHistoryBytesAfterTasksPerRequest +
      '}';
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy