Class EmitEachSelectorValidator.Config
java.lang.Object
software.amazon.smithy.model.validation.linters.EmitEachSelectorValidator.Config
- Enclosing class:
- EmitEachSelectorValidator
EmitEachSelector configuration settings.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGets the optional trait that each emitted event is bound to.Gets the optional message template that can reference selector variables.Gets the required selector that matches shapes.void
setBindToTrait
(ShapeId bindToTrait) void
setMessageTemplate
(String messageTemplate) Sets the optional message template for each emitted event.void
setSelector
(Selector selector)
-
Constructor Details
-
Config
public Config()
-
-
Method Details
-
getSelector
Gets the required selector that matches shapes.Each shape that matches the given selector will emit a validation event.
- Returns:
- Selector to match on.
-
setSelector
-
getBindToTrait
Gets the optional trait that each emitted event is bound to.An event is only emitted for shapes that have this trait.
- Returns:
- Returns the trait to bind each event to.
-
setBindToTrait
-
getMessageTemplate
Gets the optional message template that can reference selector variables.- Returns:
- Returns the message template.
-
setMessageTemplate
Sets the optional message template for each emitted event.- Parameters:
messageTemplate
- Message template to set.- Throws:
ModelSyntaxException
- if the message template is invalid.
-