code: func flattenClusterVMComponentProtectionSettings(d *schema.ResourceData, obj *types.ClusterVmComponentProtectionSettings) error {
  	return structure.SetBatch(d, map[string]interface{}{
  		"ha_datastore_apd_recovery_action": obj.VmReactionOnAPDCleared,
  		"ha_datastore_apd_response":        obj.VmStorageProtectionForAPD,
  		"ha_datastore_pdl_response":        obj.VmStorageProtectionForPDL,
  		"ha_datastore_apd_response_delay":  obj.VmTerminateDelayForAPDSec,
  	})
  }
docs: // flattenClusterVmComponentProtectionSettings saves a
  // ClusterVmComponentProtectionSettings into the supplied ResourceData.