com.vmware.vcloud.sdk.admin.extensions.service
Class AdminServiceLink

java.lang.Object
  extended by com.vmware.vcloud.sdk.VcloudResource<com.vmware.vcloud.api.rest.schema.extension.AdminServiceLinkType>
      extended by com.vmware.vcloud.sdk.admin.extensions.service.AdminServiceLink

public class AdminServiceLink
extends VcloudResource<com.vmware.vcloud.api.rest.schema.extension.AdminServiceLinkType>

Helper class for the service link in vCloud Extension Service API.

Since:
API 5.1, SDK 5.1
Author:
Ecosystem Engineering

Method Summary
 void delete()
          Delete the service link
static AdminServiceLink getAdminServiceLinkById(VcloudClient client, String vCloudId)
          Get ServiceLink helper using the vCloud ID
static AdminServiceLink getAdminServiceLinkByReference(VcloudClient client, com.vmware.vcloud.api.rest.schema.ReferenceType reference)
          Returns the Service Link Helper for the given service link reference
 com.vmware.vcloud.api.rest.schema.ReferenceType getAdminServiceReference()
          Returns the service reference.
 
Methods inherited from class com.vmware.vcloud.sdk.VcloudResource
getReference, getResource
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getAdminServiceLinkByReference

public static AdminServiceLink getAdminServiceLinkByReference(VcloudClient client,
                                                              com.vmware.vcloud.api.rest.schema.ReferenceType reference)
                                                       throws VCloudException
Returns the Service Link Helper for the given service link reference

Parameters:
client -
reference -
Returns:
AdminServiceLink
Throws:
VCloudException

getAdminServiceLinkById

public static AdminServiceLink getAdminServiceLinkById(VcloudClient client,
                                                       String vCloudId)
                                                throws VCloudException
Get ServiceLink 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:media:d9d976ba-e0ec-4682-a67d-380af49b54e1". String
Returns:
AdminServiceLink
Throws:
VCloudException

delete

public void delete()
            throws VCloudException
Delete the service link

Throws:
VCloudException

getAdminServiceReference

public com.vmware.vcloud.api.rest.schema.ReferenceType getAdminServiceReference()
                                                                         throws VCloudException
Returns the service reference.

Returns:
ReferenceType
Throws:
VCloudException


Copyright © 2016. All Rights Reserved.