Class ExcludeTraits.Config

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

public static final class ExcludeTraits.Config extends Object
excludeTraits configuration settings.
  • Constructor Details

    • Config

      public Config()
  • Method Details

    • getTraits

      public Set<String> getTraits()
      Gets the list of trait shape IDs/namespaces to exclude.
      Returns:
      shape IDs to exclude.
    • setTraits

      public void setTraits(Set<String> traits)
      Sets the list of trait shape IDs/namespaces to exclude.

      Relative shape IDs are considered traits in the prelude namespace, smithy.api. Strings ending in "#" are used to exclude traits from an entire namespace.

      Parameters:
      traits - Traits to exclude.