content: package com.adyen.model.nexo;
  
  import io.swagger.v3.oas.annotations.media.Schema;
  import java.util.Arrays;
  import javax.xml.bind.annotation.XmlEnum;
  import javax.xml.bind.annotation.XmlEnumValue;
  import javax.xml.bind.annotation.XmlType;
  
  /**
   * Java class for PrinterStatusType.
   *
   * <p>The following schema fragment specifies the expected content contained within this class.
   *
   * <pre>
   * &lt;simpleType name="PrinterStatusType"&gt;
   *   &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"&gt;
   *     &lt;enumeration value="OK"/&gt;
   *     &lt;enumeration value="PaperLow"/&gt;
   *     &lt;enumeration value="NoPaper"/&gt;
   *     &lt;enumeration value="PaperJam"/&gt;
   *     &lt;enumeration value="OutOfOrder"/&gt;
   *   &lt;/restriction&gt;
   * &lt;/simpleType&gt;
   * </pre>
   */
  @XmlType(name = "PrinterStatusType")
  @XmlEnum
  public enum PrinterStatusType {
  
    /** The printer is operational. */
    OK("OK"),
  
    /** The printer is operational but paper roll is almost empty. */
    @XmlEnumValue("PaperLow")
    @Schema(description = "The printer is operational but paper roll is almost empty.")
    PAPER_LOW("PaperLow"),
  
    /** Paper roll is empty, an operator must insert a new paper roll. */
    @XmlEnumValue("NoPaper")
    @Schema(description = "Paper roll is empty, an operator must insert a new paper roll.")
    NO_PAPER("NoPaper"),
  
    /** An operator must remove the paper jam manually. */
    @XmlEnumValue("PaperJam")
    @Schema(description = "An operator must remove the paper jam manually.")
    PAPER_JAM("PaperJam"),
  
    /** The printer is out of order. */
    @XmlEnumValue("OutOfOrder")
    @Schema(description = "The printer is out of order.")
    OUT_OF_ORDER("OutOfOrder");
    private final String value;
  
    PrinterStatusType(String v) {
      value = v;
    }
  
    /**
     * Value string.
     *
     * @return the string
     */
    public String value() {
      return value;
    }
  
    public static PrinterStatusType fromValue(String v) {
      return Arrays.stream(values()).filter(s -> s.value.equals(v)).findFirst().orElse(null);
    }
  }
  