public Map<ShapeId, Trait> getAllTraits() {
        return traits.peek();
    }
Get an immutable view of the traits applied to the builder.

@return Returns the applied traits.
smithy-model/src/main/java/software/amazon/smithy/model/shapes/AbstractShapeBuilder.java