Class EffectiveTraitQuery

  • All Implemented Interfaces:
    software.amazon.smithy.utils.ToSmithyBuilder<EffectiveTraitQuery>

    public final class EffectiveTraitQuery
    extends java.lang.Object
    implements software.amazon.smithy.utils.ToSmithyBuilder<EffectiveTraitQuery>
    Queries a shape index for effective traits bound to shapes and members.
    • Method Detail

      • isTraitApplied

        public boolean isTraitApplied​(ToShapeId shapeId)
        Checks if the trait is effectively applied to a shape.
        Parameters:
        shapeId - Shape to test.
        Returns:
        Returns true if the trait is effectively applied to the shape.