code: public OperationFuture<AntiAffinityPolicy> create(AntiAffinityPolicyConfig createConfig) {
          AntiAffinityPolicyMetadata policy = client.createAntiAffinityPolicy(
              new AntiAffinityPolicyRequest()
                  .name(createConfig.getName())
                  .location(dataCenterService.findByRef(createConfig.getDataCenter()).getId())
          );
  
          return new OperationFuture<>(
              AntiAffinityPolicy.refById(policy.getId()),
              new NoWaitingJobFuture()
          );
      }
docs: Create Anti-affinity policy
  
  @param createConfig policy config
  @return OperationFuture wrapper for AntiAffinityPolicy