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

com.hubspot.singularity.api.SingularityRunNowRequest Maven / Gradle / Ivy

The newest version!
package com.hubspot.singularity.api;

import java.util.List;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.google.common.base.Optional;
import com.wordnik.swagger.annotations.ApiModelProperty;

public class SingularityRunNowRequest {

  private final Optional message;
  private final Optional runId;
  private final Optional> commandLineArgs;
  private final Optional skipHealthchecks;

  @JsonCreator
  public SingularityRunNowRequest(@JsonProperty("message") Optional message, @JsonProperty("skipHealthchecks") Optional skipHealthchecks,
      @JsonProperty("runId") Optional runId, @JsonProperty("commandLineArgs") Optional> commandLineArgs) {
    this.message = message;
    this.commandLineArgs = commandLineArgs;
    this.runId = runId;
    this.skipHealthchecks = skipHealthchecks;
  }

  @ApiModelProperty(required=false, value="A message to show to users about why this action was taken")
  public Optional getMessage() {
    return message;
  }

  @ApiModelProperty(required=false, value="An id to associate with this request which will be associated with the corresponding launched tasks")
  public Optional getRunId() {
    return runId;
  }

  @ApiModelProperty(required=false, value="Command line arguments to be passed to the task")
  public Optional> getCommandLineArgs() {
    return commandLineArgs;
  }

  @ApiModelProperty(required=false, value="If set to true, healthchecks will be skipped for this task run")
  public Optional getSkipHealthchecks() {
    return skipHealthchecks;
  }

  @Override
  public String toString() {
    return "SingularityRunNowRequest [message=" + message + ", runId=" + runId + ", commandLineArgs=" + commandLineArgs + ", skipHealthchecks=" + skipHealthchecks + "]";
  }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy