Enum Class TimestampValidationStrategy

All Implemented Interfaces:
Serializable, Comparable<TimestampValidationStrategy>, Constable, NodeValidatorPlugin

public enum TimestampValidationStrategy extends Enum<TimestampValidationStrategy> implements NodeValidatorPlugin
Defines how timestamps are validated.
  • Enum Constant Details

    • FORMAT

      public static final TimestampValidationStrategy FORMAT
      Validates timestamps by requiring that the value uses matches the resolved timestamp format, or is a unix timestamp or integer in the case that a member or shape does not have a timestampFormat trait.

      public static final TimestampValidationStrategy EPOCH_SECONDS
      Requires that the value provided for all timestamp shapes is a unix timestamp.
  • Method Details

    • values

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

      public static TimestampValidationStrategy 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.)
      name - the name of the enum constant to be returned.
      the enum constant with the specified name
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null