All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.bitmovin.api.sdk.model.RaiUnit Maven / Gradle / Ivy

There is a newer version: 1.205.0
Show newest version
package com.bitmovin.api.sdk.model;

import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonSubTypes;
import com.fasterxml.jackson.annotation.JsonTypeInfo;

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

public enum RaiUnit {
  
  /**
   * Never set RAI.
   */
  NONE("NONE"),
  
  /**
   * Set RAI in all PES packets.
   */
  ALL_PES_PACKETS("ALL_PES_PACKETS"),
  
  /**
   * Set RAI if packet is marked acquisition point.
   */
  ACQUISITION_POINT_PACKETS("ACQUISITION_POINT_PACKETS"),
  
  /**
   * Set RAI according to instructions in input file.
   */
  ACCORDING_TO_INPUT("ACCORDING_TO_INPUT");

  private String value;

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

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

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

  @JsonCreator
  public static RaiUnit fromValue(String text) {
    for (RaiUnit b : RaiUnit.values()) {
      if (String.valueOf(b.value).equals(text)) {
        return b;
      }
    }
    return null;
  }
}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy