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 SeverityOverrideChanges the severity of a validation event.
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description Severityapply(ValidationEvent event)Returns the severity to apply to the validation event.static SeverityOverridefromMetadata(Node node)Creates a severity override from aNodefound in the "severityOverrides" metadata of a Smithy model.
-
-
-
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 aNodefound 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.
-
-