001package com.box.sdkgen.schemas.aiextractfieldoption;
002
003import com.box.sdkgen.internal.SerializableObject;
004import com.fasterxml.jackson.annotation.JsonFilter;
005import com.fasterxml.jackson.annotation.JsonProperty;
006import java.util.Objects;
007
008/** An option for an AI extract field. */
009@JsonFilter("nullablePropertyFilter")
010public class AiExtractFieldOption extends SerializableObject {
011
012  /** A unique identifier for the option. */
013  protected final String key;
014
015  public AiExtractFieldOption(@JsonProperty("key") String key) {
016    super();
017    this.key = key;
018  }
019
020  public String getKey() {
021    return key;
022  }
023
024  @Override
025  public boolean equals(Object o) {
026    if (this == o) {
027      return true;
028    }
029    if (o == null || getClass() != o.getClass()) {
030      return false;
031    }
032    AiExtractFieldOption casted = (AiExtractFieldOption) o;
033    return Objects.equals(key, casted.key);
034  }
035
036  @Override
037  public int hashCode() {
038    return Objects.hash(key);
039  }
040
041  @Override
042  public String toString() {
043    return "AiExtractFieldOption{" + "key='" + key + '\'' + "}";
044  }
045}