public boolean hasTrait(ShapeId id) {
        return traits.containsKey(id);
    }
Checks if the shape has a specific trait by name.

@param id The fully-qualified trait ID.
@return Returns true if the shape has the given trait.
smithy-model/src/main/java/software/amazon/smithy/model/shapes/Shape.java