Interface SeverityOverride

  • Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    public interface SeverityOverride
    Changes the severity of a validation event.
    • Method Detail

      • apply

        Severity apply​(ValidationEvent event)
        Returns the severity to apply to the validation event.
        Parameters:
        event - Event to modify.
        Returns:
        Returns the severity to use with the event.
      • fromMetadata

        static SeverityOverride fromMetadata​(Node node)
        Creates a severity override from a Node found in the "severityOverrides" metadata of a Smithy model.
        Parameters:
        node - Node to parse.
        Returns:
        Returns the loaded override.
        Throws:
        ExpectationNotMetException - if the override node is malformed.