com.vmware.vcloud.sdk
Class Service

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

public class Service
extends VcloudEntity<com.vmware.vcloud.api.rest.schema.ServiceType>

Helper class for the service in vCloud User API.

Since:
API 5.1, SDK 5.1
Author:
Ecosystem Engineering

Constructor Summary
Service(VcloudClient client, com.vmware.vcloud.api.rest.schema.ServiceType serviceResource)
          Default access constructor for creating a service helper class
 
Method Summary
 ReferenceResult getApiDefinitionRefs()
          Returns the list of all the service api definition references.
static Service getServiceById(VcloudClient client, String vCloudId)
          Get Service helper using the vCloud ID
static Service getServiceByReference(VcloudClient client, com.vmware.vcloud.api.rest.schema.ReferenceType reference)
          Returns the Service Helper for the given service 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
 

Constructor Detail

Service

public Service(VcloudClient client,
               com.vmware.vcloud.api.rest.schema.ServiceType serviceResource)
Default access constructor for creating a service helper class

Parameters:
client -
serviceResource - ServiceType
Method Detail

getServiceByReference

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

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

getServiceById

public static Service getServiceById(VcloudClient client,
                                     String vCloudId)
                              throws VCloudException
Get Service 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:
Service
Throws:
VCloudException

getApiDefinitionRefs

public ReferenceResult getApiDefinitionRefs()
                                     throws VCloudException
Returns the list of all the service api definition references.

Returns:
ReferenceResult
Throws:
VCloudException


Copyright © 2016. All Rights Reserved.