Enum Class GenerateEnumDirective.EnumType

java.lang.Object
java.lang.Enum<GenerateEnumDirective.EnumType>
software.amazon.smithy.codegen.core.directed.GenerateEnumDirective.EnumType
All Implemented Interfaces:
Serializable, Comparable<GenerateEnumDirective.EnumType>, Constable
Enclosing class:
GenerateEnumDirective<C extends CodegenContext<S,?,?>,S>

public static enum GenerateEnumDirective.EnumType extends Enum<GenerateEnumDirective.EnumType>
Represents the type of enum to generate. Smithy IDL 2.0 introduces actual enum shapes.
  • Enum Constant Details

  • Method Details

    • values

      public static GenerateEnumDirective.EnumType[] 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 GenerateEnumDirective.EnumType 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