package org.etsi.osl.tmf.pm628.model;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;

import javax.annotation.Generated;

/**
 * This is enumeration for CollectionType state
 */

@Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-05-15T07:30:16.936523289Z[Etc/UTC]", comments = "Generator version: 7.6.0-SNAPSHOT")
public enum CollectionType {
  
  CUMULATIVE("cumulative"),
  
  DELTA("delta"),
  
  DISCRETE_EVENT("discrete_event"),
  
  GAUGE("gauge"),
  
  STATUS_INSPECTION("status_inspection");

  private String value;

  CollectionType(String value) {
    this.value = value;
  }

  @JsonValue
  public String getValue() {
    return value;
  }

  @Override
  public String toString() {
    return String.valueOf(value);
  }

  @JsonCreator
  public static CollectionType fromValue(String value) {
    for (CollectionType b : CollectionType.values()) {
      if (b.value.equals(value)) {
        return b;
      }
    }
    throw new IllegalArgumentException("Unexpected value '" + value + "'");
  }
}

