Class IncludeTraits

  • All Implemented Interfaces:
    ProjectionTransformer

    public final class IncludeTraits
    extends ConfigurableProjectionTransformer<T>
    includeTraits removes trait definitions when a trait name does not match one of the provided traits shape IDs. Any instance of the trait is also removed from the model.

    End an argument with "#" to include the traits from an entire namespace. Trait shape IDs that are relative are assumed to be part of the smithy.api prelude namespace.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  IncludeTraits.Config
      includeTraits configuration settings.
    • Constructor Summary

      Constructors 
      Constructor Description
      IncludeTraits()