Package com.exoscale.sdk.model
Class InstanceType
java.lang.Object
com.exoscale.sdk.model.InstanceType
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.4.0")
public class InstanceType
extends Object
Compute instance type
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Instance type familystatic enum
Instance type size -
Field Summary
-
Constructor Summary
ConstructorDescriptionInstanceType
(UUID id, InstanceType.SizeEnum size, InstanceType.FamilyEnum family, Long cpus, Long gpus, Boolean authorized, Long memory, List<ZoneName> zones) -
Method Summary
Modifier and TypeMethodDescriptionboolean
Return true if this instance-type object is equal to o.Requires authorization or publicly availablegetCpus()
CPU count minimum: 0Instance type familygetGpus()
GPU count minimum: 0getId()
Instance type IDAvailable memory minimum: 0getSize()
Instance type sizegetZones()
Instance Type available zonesint
hashCode()
toString()
Convert the instance into URL query string.toUrlQueryString
(String prefix) Convert the instance into URL query string.
-
Field Details
-
JSON_PROPERTY_ID
- See Also:
-
JSON_PROPERTY_SIZE
- See Also:
-
JSON_PROPERTY_FAMILY
- See Also:
-
JSON_PROPERTY_CPUS
- See Also:
-
JSON_PROPERTY_GPUS
- See Also:
-
JSON_PROPERTY_AUTHORIZED
- See Also:
-
JSON_PROPERTY_MEMORY
- See Also:
-
JSON_PROPERTY_ZONES
- See Also:
-
-
Constructor Details
-
InstanceType
public InstanceType() -
InstanceType
public InstanceType(UUID id, InstanceType.SizeEnum size, InstanceType.FamilyEnum family, Long cpus, Long gpus, Boolean authorized, Long memory, List<ZoneName> zones)
-
-
Method Details
-
getId
Instance type ID- Returns:
- id
-
getSize
Instance type size- Returns:
- size
-
getFamily
Instance type family- Returns:
- family
-
getCpus
CPU count minimum: 0- Returns:
- cpus
-
getGpus
GPU count minimum: 0- Returns:
- gpus
-
getAuthorized
Requires authorization or publicly available- Returns:
- authorized
-
getMemory
Available memory minimum: 0- Returns:
- memory
-
getZones
Instance Type available zones- Returns:
- zones
-
equals
Return true if this instance-type object is equal to o. -
hashCode
public int hashCode() -
toString
-
toUrlQueryString
Convert the instance into URL query string.- Returns:
- URL query string
-
toUrlQueryString
Convert the instance into URL query string.- Parameters:
prefix
- prefix of the query string- Returns:
- URL query string
-