com.vmware.vcloud.sdk
Class VmAffinityRule

java.lang.Object
  extended by com.vmware.vcloud.sdk.VcloudResource<T>
      extended by com.vmware.vcloud.sdk.VcloudEntity<com.vmware.vcloud.api.rest.schema.VmAffinityRuleType>
          extended by com.vmware.vcloud.sdk.VmAffinityRule

public class VmAffinityRule
extends VcloudEntity<com.vmware.vcloud.api.rest.schema.VmAffinityRuleType>


Method Summary
 com.vmware.vcloud.api.rest.schema.TaskType delete()
          Deletes the specified VM affinity/anti-affinity rule
 com.vmware.vcloud.api.rest.schema.VmAffinityRuleType getVmAffinityRule()
          Retrieves the specific VM affinity/anti-affinity rule
static VmAffinityRule getVmAffinityRuleByObject(VcloudClient client, com.vmware.vcloud.api.rest.schema.VmAffinityRuleType vmAffinityRuleType)
          Returns the VmAffinityRule Helper by VmAffinityRuleByObject
static VmAffinityRule getVmAffinityRuleByUrl(VcloudClient client, String url)
          Get VMAffinityRule helper for the given Url
 com.vmware.vcloud.api.rest.schema.TaskType updateVmAffinityRule(com.vmware.vcloud.api.rest.schema.VmAffinityRuleType vmAffinityRuleType)
          Updates the specified VM affinity/anti-affinity rule.
 
Methods inherited from class com.vmware.vcloud.sdk.VcloudEntity
getMetadata, getReference, getTasks
 
Methods inherited from class com.vmware.vcloud.sdk.VcloudResource
getResource
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getVmAffinityRuleByObject

public static VmAffinityRule getVmAffinityRuleByObject(VcloudClient client,
                                                       com.vmware.vcloud.api.rest.schema.VmAffinityRuleType vmAffinityRuleType)
                                                throws VCloudException
Returns the VmAffinityRule Helper by VmAffinityRuleByObject

Parameters:
client -
vmAffinityRuleType -
Returns:
VmAffinityRule
Throws:
VCloudException

getVmAffinityRuleByUrl

public static VmAffinityRule getVmAffinityRuleByUrl(VcloudClient client,
                                                    String url)
                                             throws VCloudException
Get VMAffinityRule helper for the given Url

Parameters:
client - vCloud API client VcloudClient
url - Url to the VmAffinityRule String
Returns:
VmAffinityRule
Throws:
VCloudException

getVmAffinityRule

public com.vmware.vcloud.api.rest.schema.VmAffinityRuleType getVmAffinityRule()
                                                                       throws VCloudException
Retrieves the specific VM affinity/anti-affinity rule

Returns:
@ VmAffinityRuleType}
Throws:
VCloudException
Since:
API 20.0, SDK 8.10

delete

public com.vmware.vcloud.api.rest.schema.TaskType delete()
                                                  throws VCloudException
Deletes the specified VM affinity/anti-affinity rule

Returns:
TaskType
Throws:
VCloudException
Since:
API 20.0, SDK 8.10

updateVmAffinityRule

public com.vmware.vcloud.api.rest.schema.TaskType updateVmAffinityRule(com.vmware.vcloud.api.rest.schema.VmAffinityRuleType vmAffinityRuleType)
                                                                throws VCloudException
Updates the specified VM affinity/anti-affinity rule. This operation is asynchronous and returns a task that you can monitor to track the progress of the request.

Parameters:
vmAffinityRuleType - VmAffinityRuleType
Returns:
TaskType
Throws:
VCloudException
Since:
API 20.0, SDK 8.10


Copyright © 2016. All Rights Reserved.