Class ExcludeShapesByTrait.Config

java.lang.Object
software.amazon.smithy.build.transforms.ExcludeShapesByTrait.Config
Enclosing class:
ExcludeShapesByTrait

public static final class ExcludeShapesByTrait.Config extends Object
  • Constructor Details

    • Config

      public Config()
  • Method Details

    • getTraits

      public Set<String> getTraits()
      Gets the shape IDs of the traits to filter shapes by.

      Relative shape IDs are assumed to be in the smithy.api namespace.

      Returns:
      Returns the trait shape IDs.
    • setTraits

      public void setTraits(Set<String> traits)
      Sets the shape IDs of the traits to filter shapes by.
      Parameters:
      traits - The shape IDs of the traits that if present causes a shape to be removed.