public final Map<ShapeId, Trait> getAllTraits() {
        return traits;
    }
Gets all of the traits attached to the shape.

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