package com.hubspot.baragon.models;

import com.fasterxml.jackson.annotation.JsonCreator;

public enum BaragonRequestState {
  UNKNOWN, FAILED, WAITING, SUCCESS, CANCELING, CANCELED;

  @JsonCreator
  public static BaragonRequestState fromString(String value) {
    if (value == null || value.equals("")) {
      return null;
    } else {
      return valueOf(value.toUpperCase());
    }
  }
}

@@ -34,62 +34,8 @@
 s;%0A%0A
-import com.fasterxml.jackson.annotation.JsonCreator;%0A%0A
 publ
@@ -77,16 +77,23 @@
 NOWN
+(false)
 , FAILED
 , WA
@@ -88,16 +88,23 @@
 , FAILED
+(false)
 , WAITIN
@@ -104,16 +104,22 @@
  WAITING
+(true)
 , SUCCES
@@ -119,16 +119,23 @@
  SUCCESS
+(false)
 , CANCEL
@@ -137,16 +137,22 @@
 ANCELING
+(true)
 , CANCEL
@@ -157,168 +157,172 @@
 ELED
-;%0A%0A  @JsonCreator%0A  public static BaragonRequestState fromString(String value) %7B%0A    if (value == null %7C%7C value.equals(%22%22)) %7B%0A      return null;%0A    %7D else
+(false);%0A%0A  private final boolean inProgress;%0A%0A  BaragonRequestState(boolean inProgress) %7B%0A    this.inProgress = inProgress;%0A  %7D%0A%0A  public boolean isInProgress()
  %7B%0A
-  
     
@@ -332,43 +332,19 @@
 urn 
-valueOf(value.toUpperCase());%0A    %7D
+inProgress;
 %0A  %7D

add inProgress values + remove unnecessary JsonCreator /cc @wsorenson