public Optional<Integer> deprecatedCount() {
        return Optional.ofNullable(this.deprecatedCount);
    }
@return deprecatedCount is the deprecated field assuring backward compatibility with core.v1 Event type.
sdk/java/src/main/java/com/pulumi/kubernetes/events/v1/outputs/Event.java