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
Nested Classes Modifier and Type Class Description static class
InstanceType.FamilyEnum
Instance type familystatic class
InstanceType.SizeEnum
Instance type size
-
Field Summary
Fields Modifier and Type Field Description static String
JSON_PROPERTY_AUTHORIZED
static String
JSON_PROPERTY_CPUS
static String
JSON_PROPERTY_FAMILY
static String
JSON_PROPERTY_GPUS
static String
JSON_PROPERTY_ID
static String
JSON_PROPERTY_MEMORY
static String
JSON_PROPERTY_SIZE
static String
JSON_PROPERTY_ZONES
-
Constructor Summary
Constructors Constructor Description InstanceType()
InstanceType(UUID id, InstanceType.SizeEnum size, InstanceType.FamilyEnum family, Long cpus, Long gpus, Boolean authorized, Long memory, List<ZoneName> zones)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
Return true if this instance-type object is equal to o.Boolean
getAuthorized()
Requires authorization or publicly availableLong
getCpus()
CPU count minimum: 0InstanceType.FamilyEnum
getFamily()
Instance type familyLong
getGpus()
GPU count minimum: 0UUID
getId()
Instance type IDLong
getMemory()
Available memory minimum: 0InstanceType.SizeEnum
getSize()
Instance type sizeList<ZoneName>
getZones()
Instance Type available zonesint
hashCode()
String
toString()
String
toUrlQueryString()
Convert the instance into URL query string.String
toUrlQueryString(String prefix)
Convert the instance into URL query string.
-
-
-
Field Detail
-
JSON_PROPERTY_ID
public static final String JSON_PROPERTY_ID
- See Also:
- Constant Field Values
-
JSON_PROPERTY_SIZE
public static final String JSON_PROPERTY_SIZE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_FAMILY
public static final String JSON_PROPERTY_FAMILY
- See Also:
- Constant Field Values
-
JSON_PROPERTY_CPUS
public static final String JSON_PROPERTY_CPUS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_GPUS
public static final String JSON_PROPERTY_GPUS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_AUTHORIZED
public static final String JSON_PROPERTY_AUTHORIZED
- See Also:
- Constant Field Values
-
JSON_PROPERTY_MEMORY
public static final String JSON_PROPERTY_MEMORY
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ZONES
public static final String JSON_PROPERTY_ZONES
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
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 Detail
-
getId
@Nullable public UUID getId()
Instance type ID- Returns:
- id
-
getSize
@Nullable public InstanceType.SizeEnum getSize()
Instance type size- Returns:
- size
-
getFamily
@Nullable public InstanceType.FamilyEnum getFamily()
Instance type family- Returns:
- family
-
getCpus
@Nullable public Long getCpus()
CPU count minimum: 0- Returns:
- cpus
-
getGpus
@Nullable public Long getGpus()
GPU count minimum: 0- Returns:
- gpus
-
getAuthorized
@Nullable public Boolean getAuthorized()
Requires authorization or publicly available- Returns:
- authorized
-
getMemory
@Nullable public Long getMemory()
Available memory minimum: 0- Returns:
- memory
-
equals
public boolean equals(Object o)
Return true if this instance-type object is equal to o.
-
toUrlQueryString
public String toUrlQueryString()
Convert the instance into URL query string.- Returns:
- URL query string
-
-