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 java.util.Optional;

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

  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