@Deprecated
    public int getEventCode() {
        Integer legacyCode =  legacyEventCodes.get(eventType);
        // Returns -1 if the event type does not have a legacy event code
        return legacyCode == null ? -1 : legacyCode;
    }
Returns the unique event code identifying the type of event this object
represents.

@return The unique event code that identifies what type of specific type
        of event this object represents.

@deprecated Use {@link #getEventType()} instead.
aws-java-sdk-core/src/main/java/com/amazonaws/event/ProgressEvent.java