Class OciInstance
java.lang.Object
co.yellowdog.platform.model.Instance
co.yellowdog.platform.model.OciInstance
- All Implemented Interfaces:
Serializable
Extends
Instance
to add fields specific to the OCI compute sources.- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
The OCID of the compartment containing this instance.The number of OCPUs provisioned on this flex type instance.The amount of ram in GB provisioned on this flex type instance.int
hashCode()
void
setCompartmentId
(String compartmentId) The OCID of the compartment containing this instance.void
setFlexOcpus
(Float flexOcpus) The number of OCPUs provisioned on this flex type instance.void
setFlexRam
(Float flexRam) The amount of ram in GB provisioned on this flex type instance.toString()
Methods inherited from class co.yellowdog.platform.model.Instance
getCreatedTime, getCreatedTimeAccuracy, getHostname, getId, getImageId, getInstanceType, getPrivateIpAddress, getProvider, getPublicIpAddress, getRegion, getStatus, getStatusChangedTime, getSubregion, isSpot, setCreatedTime, setHostname, setId, setImageId, setInstanceType, setPrivateIpAddress, setProvider, setPublicIpAddress, setRegion, setSpot, setStatus, setStatusChangedTime, setSubregion
-
Constructor Details
-
OciInstance
public OciInstance()
-
-
Method Details
-
getCompartmentId
The OCID of the compartment containing this instance.- Returns:
- the compartment OCID
-
getFlexOcpus
The number of OCPUs provisioned on this flex type instance.- Returns:
- the number of OCPUs
-
getFlexRam
The amount of ram in GB provisioned on this flex type instance.- Returns:
- the amount of ram in GB
-
setCompartmentId
The OCID of the compartment containing this instance.- Parameters:
compartmentId
- This should not be set outside of the YellowDog Compute service.
-
setFlexOcpus
The number of OCPUs provisioned on this flex type instance.- Parameters:
flexOcpus
- This should not be set outside of the YellowDog Compute service.
-
setFlexRam
The amount of ram in GB provisioned on this flex type instance.- Parameters:
flexRam
- This should not be set outside of the YellowDog Compute service.
-
toString
-
equals
-
canEqual
-
hashCode
-