Class EmitEachSelectorValidator.Config

java.lang.Object
software.amazon.smithy.model.validation.linters.EmitEachSelectorValidator.Config
Enclosing class:
EmitEachSelectorValidator

public static final class EmitEachSelectorValidator.Config extends Object
EmitEachSelector configuration settings.
  • Constructor Details

    • Config

      public Config()
  • Method Details

    • getSelector

      public 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.
    • setSelector

      public void setSelector(Selector selector)
    • getBindToTrait

      public 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.
    • setBindToTrait

      public void setBindToTrait(ShapeId bindToTrait)
    • getMessageTemplate

      public String getMessageTemplate()
      Gets the optional message template that can reference selector variables.
      Returns:
      Returns the message template.
    • setMessageTemplate

      public void setMessageTemplate(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.