# Enum - PlacementAffinityRuleRuleType(vim.storageDrs.PlacementAffinityRule.RuleType)

Since
  vSphere API 6.0

## Enum Description

Rule type determines how the affinity rule is to be enforced: affinity: Vms in the list are kept together within the rule scope. anti-affinity: Vms in the rule list are kept separate across the objects in the rule scope. soft rule: The enforcement is best effort.

Enum Constants

Name | Description
--- | ---
affinity |
antiAffinity |
softAffinity |
softAntiAffinity |

Show WSDL type definition
<simpleType xmlns="http://www.w3.org/2001/XMLSchema" xmlns:vsan="urn:vsan" name="PlacementAffinityRuleRuleType"> <restriction base="xsd:string"> <enumeration value="affinity"/> <enumeration value="antiAffinity"/> <enumeration value="softAffinity"/> <enumeration value="softAntiAffinity"/> </restriction> </simpleType>