Class RegionTier.Builder
- java.lang.Object
-
- com.rivet.api.resources.cloud.common.types.RegionTier.Builder
-
- All Implemented Interfaces:
RegionTier._FinalStage,RegionTier.BandwidthStage,RegionTier.CpuStage,RegionTier.DiskStage,RegionTier.MemoryStage,RegionTier.PricePerSecondStage,RegionTier.RivetCoresDenominatorStage,RegionTier.RivetCoresNumeratorStage,RegionTier.TierNameIdStage
- Enclosing class:
- RegionTier
public static final class RegionTier.Builder extends java.lang.Object implements RegionTier.TierNameIdStage, RegionTier.RivetCoresNumeratorStage, RegionTier.RivetCoresDenominatorStage, RegionTier.CpuStage, RegionTier.MemoryStage, RegionTier.DiskStage, RegionTier.BandwidthStage, RegionTier.PricePerSecondStage, RegionTier._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RegionTier.PricePerSecondStagebandwidth(int bandwidth)Internet bandwidth (MB).RegionTierbuild()RegionTier.MemoryStagecpu(int cpu)CPU frequency (MHz).RegionTier.BandwidthStagedisk(int disk)Allocated disk space (MB).RegionTier.Builderfrom(RegionTier other)RegionTier.DiskStagememory(int memory)Allocated memory (MB).RegionTier._FinalStagepricePerSecond(int pricePerSecond)Price billed for every second this server is running (in quadrillionth USD, 1,000,000,000,000 = $1.00).RegionTier.CpuStagerivetCoresDenominator(int rivetCoresDenominator)Together with the numerator, denotes the portion of the CPU a given server uses.RegionTier.RivetCoresDenominatorStagerivetCoresNumerator(int rivetCoresNumerator)Together with the denominator, denotes the portion of the CPU a given server uses.RegionTier.RivetCoresNumeratorStagetierNameId(java.lang.String tierNameId)A human readable short identifier used to references resources.
-
-
-
Method Detail
-
from
public RegionTier.Builder from(RegionTier other)
- Specified by:
fromin interfaceRegionTier.TierNameIdStage
-
tierNameId
public RegionTier.RivetCoresNumeratorStage tierNameId(java.lang.String tierNameId)
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.- Specified by:
tierNameIdin interfaceRegionTier.TierNameIdStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
rivetCoresNumerator
public RegionTier.RivetCoresDenominatorStage rivetCoresNumerator(int rivetCoresNumerator)
Together with the denominator, denotes the portion of the CPU a given server uses.
- Specified by:
rivetCoresNumeratorin interfaceRegionTier.RivetCoresNumeratorStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
rivetCoresDenominator
public RegionTier.CpuStage rivetCoresDenominator(int rivetCoresDenominator)
Together with the numerator, denotes the portion of the CPU a given server uses.
- Specified by:
rivetCoresDenominatorin interfaceRegionTier.RivetCoresDenominatorStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
cpu
public RegionTier.MemoryStage cpu(int cpu)
CPU frequency (MHz).
- Specified by:
cpuin interfaceRegionTier.CpuStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
memory
public RegionTier.DiskStage memory(int memory)
Allocated memory (MB).
- Specified by:
memoryin interfaceRegionTier.MemoryStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
disk
public RegionTier.BandwidthStage disk(int disk)
Allocated disk space (MB).
- Specified by:
diskin interfaceRegionTier.DiskStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
bandwidth
public RegionTier.PricePerSecondStage bandwidth(int bandwidth)
Internet bandwidth (MB).
- Specified by:
bandwidthin interfaceRegionTier.BandwidthStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
pricePerSecond
public RegionTier._FinalStage pricePerSecond(int pricePerSecond)
Price billed for every second this server is running (in quadrillionth USD, 1,000,000,000,000 = $1.00).
- Specified by:
pricePerSecondin interfaceRegionTier.PricePerSecondStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
build
public RegionTier build()
- Specified by:
buildin interfaceRegionTier._FinalStage
-
-