public boolean isRequired() {
        return hasTrait(RequiredTrait.ID);
    }
@return Returns true if the member has the required trait.
smithy-model/src/main/java/software/amazon/smithy/model/shapes/MemberShape.java