Enum SerialNumberPolicy

    • Enum Constant Detail

      • CUSTOM

        public static final SerialNumberPolicy CUSTOM
        This policy allows the user to provide an arbitrary string as the Serial Number.
      • HOST

        public static final SerialNumberPolicy HOST
        This policy is the legacy policy. It will use the Host ID as the Serial Number.
      • NONE

        public static final SerialNumberPolicy NONE
        This policy is used to remove the Serial Number Policy, moving it to default: null.
      • VM

        public static final SerialNumberPolicy VM
        This policy will use the Virtual Machine ID as the Serial Number.
    • Method Detail

      • values

        public static SerialNumberPolicy[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (SerialNumberPolicy c : SerialNumberPolicy.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static SerialNumberPolicy valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
        NullPointerException - if the argument is null
      • value

        public String value()