Class EmitEachSelectorValidator.Config
- java.lang.Object
- 
- software.amazon.smithy.model.validation.linters.EmitEachSelectorValidator.Config
 
- 
- Enclosing class:
- EmitEachSelectorValidator
 
 public static final class EmitEachSelectorValidator.Config extends java.lang.ObjectEmitEachSelector configuration settings.
- 
- 
Constructor SummaryConstructors Constructor Description Config()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description ShapeIdgetBindToTrait()Gets the optional trait that each emitted event is bound to.java.lang.StringgetMessageTemplate()Gets the optional message template that can reference selector variables.SelectorgetSelector()Gets the required selector that matches shapes.voidsetBindToTrait(ShapeId bindToTrait)voidsetMessageTemplate(java.lang.String messageTemplate)Sets the optional message template for each emitted event.voidsetSelector(Selector selector)
 
- 
- 
- 
Method Detail- 
getSelectorpublic Selector 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.
 
 - 
setSelectorpublic void setSelector(Selector selector) 
 - 
getBindToTraitpublic ShapeId 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.
 
 - 
setBindToTraitpublic void setBindToTrait(ShapeId bindToTrait) 
 - 
getMessageTemplatepublic java.lang.String getMessageTemplate() Gets the optional message template that can reference selector variables.- Returns:
- Returns the message template.
 
 - 
setMessageTemplatepublic void setMessageTemplate(java.lang.String messageTemplate) Sets the optional message template for each emitted event.- Parameters:
- messageTemplate- Message template to set.
- Throws:
- ModelSyntaxException- if the message template is invalid.
 
 
- 
 
-