Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.hubspot.singularity;
 
 
 
  public enum RequestCleanupType {
    DELETING, PAUSING
  }
  private final Optional<Stringuser;
  private final RequestCleanupType cleanupType;
  private final Optional<BooleankillTasks;
  private final long timestamp;
  private final String requestId;
  public static SingularityRequestCleanup fromBytes(byte[] bytesObjectMapper objectMapper) {
    try {
      return objectMapper.readValue(bytesSingularityRequestCleanup.class);
    } catch (IOException e) {
      throw new SingularityJsonException(e);
    }
  }
  public SingularityRequestCleanup(@JsonProperty("user"Optional<Stringuser, @JsonProperty("cleanupType"RequestCleanupType cleanupType, @JsonProperty("timestamp"long timestamp,
      @JsonProperty("killTasks"Optional<BooleankillTasks, @JsonProperty("requestId"String requestId) {
    this. = user;
    this. = cleanupType;
    this. = timestamp;
    this. = requestId;
    this. = killTasks;
  }
  public Optional<BooleangetKillTasks() {
    return ;
  }
  public String getRequestId() {
    return ;
  }
  public Optional<StringgetUser() {
    return ;
  }
    return ;
  }
  public long getTimestamp() {
    return ;
  }
  public String toString() {
    return "SingularityRequestCleanup [user=" +  + ", cleanupType=" +  + ", killTasks=" +  + ", timestamp=" +  + ", requestId=" +  + "]";
  }
New to GrepCode? Check out our FAQ X