Enum Class ApiMaturity

java.lang.Object
java.lang.Enum<ApiMaturity>
com.sap.cloud.sdk.datamodel.openapi.generator.model.ApiMaturity
All Implemented Interfaces:
Serializable, Comparable<ApiMaturity>, Constable

public enum ApiMaturity extends Enum<ApiMaturity>
Represents the maturity of the API to generate code for. Reflects if the API is released for productive usage or rather in an experimental Beta state.
  • Enum Constant Details

    • RELEASED

      public static final ApiMaturity RELEASED
      The API is released for productive usage
    • BETA

      public static final ApiMaturity BETA
      The API is an experimental Beta state and not recommended for productive usage
  • Field Details

    • DEFAULT

      @Nonnull public static final ApiMaturity DEFAULT
      The fallback API maturity, which is used whenever nothing else is specified.
  • Method Details

    • values

      public static ApiMaturity[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static ApiMaturity valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getValueOrDefault

      @Nonnull public static ApiMaturity getValueOrDefault(@Nullable String identifier)
      Returns the enum value for the given identifier. Returns the default RELEASED if no corresponding value is found.
      Parameters:
      identifier - The String identifier
      Returns:
      The corresponding enum value or the default value
    • toString

      public String toString()
      Overrides:
      toString in class Enum<ApiMaturity>