Class RegionTier
- java.lang.Object
-
- com.rivet.api.resources.cloud.common.types.RegionTier
-
public final class RegionTier extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceRegionTier._FinalStagestatic interfaceRegionTier.BandwidthStagestatic classRegionTier.Builderstatic interfaceRegionTier.CpuStagestatic interfaceRegionTier.DiskStagestatic interfaceRegionTier.MemoryStagestatic interfaceRegionTier.PricePerSecondStagestatic interfaceRegionTier.RivetCoresDenominatorStagestatic interfaceRegionTier.RivetCoresNumeratorStagestatic interfaceRegionTier.TierNameIdStage
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static RegionTier.TierNameIdStagebuilder()booleanequals(java.lang.Object other)intgetBandwidth()intgetCpu()intgetDisk()intgetMemory()intgetPricePerSecond()intgetRivetCoresDenominator()intgetRivetCoresNumerator()java.lang.StringgetTierNameId()inthashCode()java.lang.StringtoString()
-
-
-
Method Detail
-
getTierNameId
public java.lang.String getTierNameId()
- Returns:
- A human readable short identifier used to references resources. Different than a
rivet.common#Uuidbecause this is intended to be human readable. Different thanrivet.common#DisplayNamebecause this should not include special characters and be short.
-
getRivetCoresNumerator
public int getRivetCoresNumerator()
- Returns:
- Together with the denominator, denotes the portion of the CPU a given server uses.
-
getRivetCoresDenominator
public int getRivetCoresDenominator()
- Returns:
- Together with the numerator, denotes the portion of the CPU a given server uses.
-
getCpu
public int getCpu()
- Returns:
- CPU frequency (MHz).
-
getMemory
public int getMemory()
- Returns:
- Allocated memory (MB).
-
getDisk
public int getDisk()
- Returns:
- Allocated disk space (MB).
-
getBandwidth
public int getBandwidth()
- Returns:
- Internet bandwidth (MB).
-
getPricePerSecond
public int getPricePerSecond()
- Returns:
- Price billed for every second this server is running (in quadrillionth USD, 1,000,000,000,000 = $1.00).
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
builder
public static RegionTier.TierNameIdStage builder()
-
-