org.jclouds.savvis.vpdc.domain
Class VM

java.lang.Object
  extended by org.jclouds.ovf.Section<T>
      extended by org.jclouds.ovf.internal.BaseVirtualSystem<VM>
          extended by org.jclouds.savvis.vpdc.domain.VM
All Implemented Interfaces:
Comparable<Resource>, Resource

public class VM
extends BaseVirtualSystem<VM>
implements Resource

A virtual application (vApp) is a software solution, packaged in OVF containing one or more virtual machines. A vApp can be authored by Developers at ISVs and VARs or by IT Administrators in Enterprises and Service Providers.

Author:
Adrian Cole

Nested Class Summary
static class VM.Builder
           
static class VM.Status
          Objects such as vAppTemplate, vApp, and Vm have a status attribute whose value indicates the state of the object.
 
Field Summary
protected  URI href
           
protected  Set<NetworkConfigSection> networkConfigSections
           
protected  Set<NetworkConnectionSection> networkConnectionSections
           
protected  NetworkSection networkSection
           
protected  VM.Status status
           
protected  String type
           
 
Fields inherited from class org.jclouds.ovf.internal.BaseVirtualSystem
additionalSections, id, name, operatingSystem, productSections, virtualHardwareSections
 
Fields inherited from class org.jclouds.ovf.Section
info
 
Constructor Summary
VM(String id, String info, String name, OperatingSystemSection operatingSystem, Iterable<? extends VirtualHardwareSection> virtualHardwareSections, Iterable<? extends ProductSection> productSections, com.google.common.collect.Multimap<String,Section> additionalSections, String type, URI href, VM.Status status, NetworkSection networkSection, Iterable<NetworkConfigSection> networkConfigSections, Iterable<NetworkConnectionSection> networkConnectionSections)
           
 
Method Summary
static VM.Builder builder()
           
 int compareTo(Resource that)
           
 URI getHref()
           
 Set<NetworkConfigSection> getNetworkConfigSections()
           
 Set<NetworkConnectionSection> getNetworkConnectionSections()
           
 NetworkSection getNetworkSection()
           
 VM.Status getStatus()
           
 String getType()
           
 VM.Builder toBuilder()
          
 String toString()
           
 
Methods inherited from class org.jclouds.ovf.internal.BaseVirtualSystem
equals, getAdditionalSections, getId, getName, getOperatingSystemSection, getProductSections, getVirtualHardwareSections, hashCode
 
Methods inherited from class org.jclouds.ovf.Section
getInfo
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.jclouds.savvis.vpdc.domain.Resource
getId, getName
 

Field Detail

type

protected final String type

href

protected final URI href

status

protected final VM.Status status

networkSection

protected final NetworkSection networkSection

networkConfigSections

protected final Set<NetworkConfigSection> networkConfigSections

networkConnectionSections

protected final Set<NetworkConnectionSection> networkConnectionSections
Constructor Detail

VM

public VM(String id,
          String info,
          String name,
          OperatingSystemSection operatingSystem,
          Iterable<? extends VirtualHardwareSection> virtualHardwareSections,
          Iterable<? extends ProductSection> productSections,
          com.google.common.collect.Multimap<String,Section> additionalSections,
          String type,
          URI href,
          VM.Status status,
          NetworkSection networkSection,
          Iterable<NetworkConfigSection> networkConfigSections,
          Iterable<NetworkConnectionSection> networkConnectionSections)
Method Detail

builder

public static VM.Builder builder()

getStatus

public VM.Status getStatus()

getNetworkSection

public NetworkSection getNetworkSection()

getNetworkConfigSections

public Set<NetworkConfigSection> getNetworkConfigSections()

getNetworkConnectionSections

public Set<NetworkConnectionSection> getNetworkConnectionSections()

getType

public String getType()
Specified by:
getType in interface Resource

getHref

public URI getHref()
Specified by:
getHref in interface Resource

toString

public String toString()
Overrides:
toString in class BaseVirtualSystem<VM>

compareTo

public int compareTo(Resource that)
Specified by:
compareTo in interface Comparable<Resource>
Specified by:
compareTo in interface Resource

toBuilder

public VM.Builder toBuilder()
Description copied from class: BaseVirtualSystem

Overrides:
toBuilder in class BaseVirtualSystem<VM>


Copyright © 2009-2012 jclouds. All Rights Reserved.