public StatefulSetPersistentVolumeClaimRetentionPolicy build() {
            final var _resultValue = new StatefulSetPersistentVolumeClaimRetentionPolicy();
            _resultValue.whenDeleted = whenDeleted;
            _resultValue.whenScaled = whenScaled;
            return _resultValue;
        }
@return WhenScaled specifies what happens to PVCs created from StatefulSet VolumeClaimTemplates when the StatefulSet is scaled down. The default policy of `Retain` causes PVCs to not be affected by a scaledown. The `Delete` policy causes the associated PVCs for any excess pods above the replica count to be deleted.
sdk/java/src/main/java/com/pulumi/kubernetes/apps/v1/outputs/StatefulSetPersistentVolumeClaimRetentionPolicy.java