code: /*
   * lakeFS API
   * lakeFS HTTP API
   *
   * The version of the OpenAPI document: 0.1.0
   * 
   *
   * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
   * https://openapi-generator.tech
   * Do not edit the class manually.
   */
  
  
  package io.lakefs.clients.api.model;
  
  import java.util.Objects;
  import java.util.Arrays;
  import com.google.gson.TypeAdapter;
  import com.google.gson.annotations.JsonAdapter;
  import com.google.gson.annotations.SerializedName;
  import com.google.gson.stream.JsonReader;
  import com.google.gson.stream.JsonWriter;
  import io.swagger.annotations.ApiModel;
  import io.swagger.annotations.ApiModelProperty;
  import java.io.IOException;
  
  /**
   * ResetCreation
   */
  @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
  public class ResetCreation {
    /**
     * Gets or Sets type
     */
    @JsonAdapter(TypeEnum.Adapter.class)
    public enum TypeEnum {
      OBJECT("object"),
      
      COMMON_PREFIX("common_prefix"),
      
      RESET("reset");
  
      private String value;
  
      TypeEnum(String value) {
        this.value = value;
      }
  
      public String getValue() {
        return value;
      }
  
      @Override
      public String toString() {
        return String.valueOf(value);
      }
  
      public static TypeEnum fromValue(String value) {
        for (TypeEnum b : TypeEnum.values()) {
          if (b.value.equals(value)) {
            return b;
          }
        }
        throw new IllegalArgumentException("Unexpected value '" + value + "'");
      }
  
      public static class Adapter extends TypeAdapter<TypeEnum> {
        @Override
        public void write(final JsonWriter jsonWriter, final TypeEnum enumeration) throws IOException {
          jsonWriter.value(enumeration.getValue());
        }
  
        @Override
        public TypeEnum read(final JsonReader jsonReader) throws IOException {
          String value =  jsonReader.nextString();
          return TypeEnum.fromValue(value);
        }
      }
    }
  
    public static final String SERIALIZED_NAME_TYPE = "type";
    @SerializedName(SERIALIZED_NAME_TYPE)
    private TypeEnum type;
  
    public static final String SERIALIZED_NAME_PATH = "path";
    @SerializedName(SERIALIZED_NAME_PATH)
    private String path;
  
  
    public ResetCreation type(TypeEnum type) {
      
      this.type = type;
      return this;
    }
  
     /**
     * Get type
     * @return type
    **/
    @javax.annotation.Nonnull
    @ApiModelProperty(required = true, value = "")
  
    public TypeEnum getType() {
      return type;
    }
  
  
    public void setType(TypeEnum type) {
      this.type = type;
    }
  
  
    public ResetCreation path(String path) {
      
      this.path = path;
      return this;
    }
  
     /**
     * Get path
     * @return path
    **/
    @javax.annotation.Nullable
    @ApiModelProperty(value = "")
  
    public String getPath() {
      return path;
    }
  
  
    public void setPath(String path) {
      this.path = path;
    }
  
  
    @Override
    public boolean equals(Object o) {
      if (this == o) {
        return true;
      }
      if (o == null || getClass() != o.getClass()) {
        return false;
      }
      ResetCreation resetCreation = (ResetCreation) o;
      return Objects.equals(this.type, resetCreation.type) &&
          Objects.equals(this.path, resetCreation.path);
    }
  
    @Override
    public int hashCode() {
      return Objects.hash(type, path);
    }
  
    @Override
    public String toString() {
      StringBuilder sb = new StringBuilder();
      sb.append("class ResetCreation {\n");
      sb.append("    type: ").append(toIndentedString(type)).append("\n");
      sb.append("    path: ").append(toIndentedString(path)).append("\n");
      sb.append("}");
      return sb.toString();
    }
  
    /**
     * Convert the given object to string with each line indented by 4 spaces
     * (except the first line).
     */
    private String toIndentedString(Object o) {
      if (o == null) {
        return "null";
      }
      return o.toString().replace("\n", "\n    ");
    }
  
  }
  
  