org.jclouds.googlecomputeengine.domain
Class MachineType

java.lang.Object
  extended by org.jclouds.googlecomputeengine.domain.Resource
      extended by org.jclouds.googlecomputeengine.domain.MachineType

@Beta
public final class MachineType
extends Resource

Represents a machine type used to host an instance.

See Also:

Nested Class Summary
static class MachineType.Builder
           
static class MachineType.ScratchDisk
          An scratch disk of a MachineType
 
Nested classes/interfaces inherited from class org.jclouds.googlecomputeengine.domain.Resource
Resource.Kind
 
Field Summary
 
Fields inherited from class org.jclouds.googlecomputeengine.domain.Resource
creationTimestamp, description, id, kind, name, selfLink
 
Method Summary
static MachineType.Builder builder()
           
 boolean equals(Object obj)
          
 com.google.common.base.Optional<Deprecated> getDeprecated()
           
 int getGuestCpus()
           
 int getImageSpaceGb()
           
 int getMaximumPersistentDisks()
           
 long getMaximumPersistentDisksSizeGb()
           
 int getMemoryMb()
           
 List<MachineType.ScratchDisk> getScratchDisks()
           
 String getZone()
           
protected  com.google.common.base.Objects.ToStringHelper string()
          
 MachineType.Builder toBuilder()
           
 String toString()
          
 
Methods inherited from class org.jclouds.googlecomputeengine.domain.Resource
getCreationTimestamp, getDescription, getId, getKind, getName, getSelfLink, hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

getGuestCpus

public int getGuestCpus()
Returns:
count of CPUs exposed to the instance.

getMemoryMb

public int getMemoryMb()
Returns:
physical memory assigned to the instance, defined in MB.

getImageSpaceGb

public int getImageSpaceGb()
Returns:
space allotted for the image, defined in GB.

getScratchDisks

public List<MachineType.ScratchDisk> getScratchDisks()
Returns:
extended scratch disks assigned to the instance.

getMaximumPersistentDisks

public int getMaximumPersistentDisks()
Returns:
maximum persistent disks allowed.

getMaximumPersistentDisksSizeGb

public long getMaximumPersistentDisksSizeGb()
Returns:
maximum total persistent disks size (GB) allowed.

getZone

public String getZone()
Returns:
the zones that this machine type can run in.

getDeprecated

public com.google.common.base.Optional<Deprecated> getDeprecated()
Returns:
the deprecation information for this machine type

equals

public boolean equals(Object obj)

Overrides:
equals in class Resource

string

protected com.google.common.base.Objects.ToStringHelper string()

Overrides:
string in class Resource

toString

public String toString()

Overrides:
toString in class Resource

builder

public static MachineType.Builder builder()

toBuilder

public MachineType.Builder toBuilder()
Overrides:
toBuilder in class Resource


Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.