com.vmware.vcloud.sdk
Class VdcTemplate

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

public class VdcTemplate
extends VcloudEntity<com.vmware.vcloud.api.rest.schema.VdcTemplateType>

Helper class to access the VdcTempalte Resource in vCloud API.

Since:
API 5.7, SDK 5.7
See Also:
VdcTemplateType

Method Summary
static VdcTemplate getVdcTemplateById(VcloudClient client, String vCloudId)
          Get VdcTemplate helper using the vCloud ID
static VdcTemplate getVdcTemplateByReference(VcloudClient client, com.vmware.vcloud.api.rest.schema.ReferenceType vdcTemplateRef)
          Get VdcTemplate for the given VdcTemplate reference
 
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

getVdcTemplateByReference

public static VdcTemplate getVdcTemplateByReference(VcloudClient client,
                                                    com.vmware.vcloud.api.rest.schema.ReferenceType vdcTemplateRef)
                                             throws VCloudException
Get VdcTemplate for the given VdcTemplate reference

Parameters:
client -
vdcTemplateRef -
Returns:
VdcTemplate
Throws:
VCloudException

getVdcTemplateById

public static VdcTemplate getVdcTemplateById(VcloudClient client,
                                             String vCloudId)
                                      throws VCloudException
Get VdcTemplate helper using the vCloud ID

Parameters:
client - VcloudClient
vCloudId - format - The vCloud ID is of the form: "urn:vcloud:type:uuid". For example: "urn:vcloud:disk:d9d976ba-e0ec-4682-a67d-380af49b54e1". String
Returns:
VdcTemplate
Throws:
VCloudException


Copyright © 2016. All Rights Reserved.