Class OciInstance

java.lang.Object
co.yellowdog.platform.model.Instance
co.yellowdog.platform.model.OciInstance
All Implemented Interfaces:
Serializable

public class OciInstance extends Instance
Extends Instance to add fields specific to the OCI compute sources.
See Also:
  • Constructor Details

    • OciInstance

      public OciInstance()
  • Method Details

    • getCompartmentId

      public String getCompartmentId()
      The OCID of the compartment containing this instance.
      Returns:
      the compartment OCID
    • getFlexOcpus

      public Float getFlexOcpus()
      The number of OCPUs provisioned on this flex type instance.
      Returns:
      the number of OCPUs
    • getFlexRam

      public Float getFlexRam()
      The amount of ram in GB provisioned on this flex type instance.
      Returns:
      the amount of ram in GB
    • setCompartmentId

      public void setCompartmentId(String compartmentId)
      The OCID of the compartment containing this instance.
      Parameters:
      compartmentId - This should not be set outside of the YellowDog Compute service.
    • setFlexOcpus

      public void setFlexOcpus(Float flexOcpus)
      The number of OCPUs provisioned on this flex type instance.
      Parameters:
      flexOcpus - This should not be set outside of the YellowDog Compute service.
    • setFlexRam

      public void setFlexRam(Float flexRam)
      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

      public String toString()
      Overrides:
      toString in class Instance
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Instance
    • canEqual

      protected boolean canEqual(Object other)
      Overrides:
      canEqual in class Instance
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Instance