Interface Suppression
- 
- 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 SuppressionSuppressesValidationEvents emitted fromValidators.
- 
- 
Method SummaryAll Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description static SuppressionfromMetadata(Node node)Creates a suppression from aNodefound in the "suppressions" metadata of a Smithy model.static SuppressionfromSuppressTrait(Shape shape)Creates a suppression using theSuppressTraitof the given shape.default java.util.Optional<java.lang.String>getReason()Gets the optional reason for the suppression.booleantest(ValidationEvent event)Determines if the suppression applies to the given event.
 
- 
- 
- 
Method Detail- 
testboolean test(ValidationEvent event) Determines if the suppression applies to the given event.- Parameters:
- event- Event to test.
- Returns:
- Returns true if the suppression applies.
 
 - 
getReasondefault java.util.Optional<java.lang.String> getReason() Gets the optional reason for the suppression.- Returns:
- Returns the optional suppression reason.
 
 - 
fromSuppressTraitstatic Suppression fromSuppressTrait(Shape shape) Creates a suppression using theSuppressTraitof the given shape.- Parameters:
- shape- Shape to get the- SuppressTraitfrom.
- Returns:
- Returns the created suppression.
- Throws:
- ExpectationNotMetException- if the shape has no- SuppressTrait.
 
 - 
fromMetadatastatic Suppression fromMetadata(Node node) Creates a suppression from aNodefound in the "suppressions" metadata of a Smithy model.- Parameters:
- node- Node to parse.
- Returns:
- Returns the loaded suppression.
- Throws:
- ExpectationNotMetException- if the suppression node is malformed.
 
 
- 
 
-