Class ServiceOffering

java.lang.Object
org.jclouds.cloudstack.domain.ServiceOffering
All Implemented Interfaces:
Comparable<ServiceOffering>

public class ServiceOffering extends Object implements Comparable<ServiceOffering>
Class ServiceOffering
  • Constructor Details

  • Method Details

    • builder

      public static ServiceOffering.Builder<?> builder()
    • toBuilder

      public ServiceOffering.Builder<?> toBuilder()
    • getId

      public String getId()
      Returns:
      the id of the service offering
    • getName

      public String getName()
      Returns:
      the name of the service offering
    • getDisplayText

      @Nullable public String getDisplayText()
      Returns:
      an alternate display text of the service offering.
    • getCreated

      @Nullable public Date getCreated()
      Returns:
      the date this service offering was created
    • getDomain

      @Nullable public String getDomain()
      Returns:
      Domain name for the offering
    • getDomainId

      @Nullable public String getDomainId()
      Returns:
      the domain id of the service offering
    • getCpuNumber

      public int getCpuNumber()
      Returns:
      the number of CPU
    • getCpuSpeed

      public int getCpuSpeed()
      Returns:
      the clock rate CPU speed in Mhz
    • getMemory

      public int getMemory()
      Returns:
      the memory in MB
    • supportsHA

      public boolean supportsHA()
    • getStorageType

      @Nullable public StorageType getStorageType()
      Returns:
      the storage type for this service offering
    • getTags

      public Set<String> getTags()
      Returns:
      the tags for the service offering
    • isDefaultUse

      public boolean isDefaultUse()
      Returns:
      whether this is a default system vm offering
    • isSystemOffering

      public boolean isSystemOffering()
      Returns:
      whether this is a system vm offering
    • isCpuUseLimited

      public boolean isCpuUseLimited()
      Returns:
      whether restrict the CPU usage to committed service offering
    • getNetworkRate

      public long getNetworkRate()
      Returns:
      data transfer rate in megabits per second allowed.
    • isSystemVmType

      public boolean isSystemVmType()
      Returns:
      whether this is a the systemvm type for system vm offering
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • string

      protected com.google.common.base.MoreObjects.ToStringHelper string()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • compareTo

      public int compareTo(ServiceOffering o)
      Specified by:
      compareTo in interface Comparable<ServiceOffering>