public Optional<String> whenDeleted() {
        return Optional.ofNullable(this.whenDeleted);
    }
@return WhenDeleted specifies what happens to PVCs created from StatefulSet VolumeClaimTemplates when the StatefulSet is deleted. The default policy of `Retain` causes PVCs to not be affected by StatefulSet deletion. The `Delete` policy causes those PVCs to be deleted.
sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/outputs/StatefulSetPersistentVolumeClaimRetentionPolicy.java