Interface OciComputeSource

All Superinterfaces:
ComputeSource, Credentialed, Identified, Named, Serializable
All Known Implementing Classes:
OciInstancePoolComputeSource, OciInstancesComputeSource

public interface OciComputeSource extends ComputeSource
Derives from ComputeSource to provide the interface for all AWS compute source model objects.
  • Method Details

    • getProvider

      default CloudProvider getProvider()
      Description copied from interface: ComputeSource
      Gets the Cloud Provider for this source.
      Specified by:
      getProvider in interface ComputeSource
      Returns:
      the Cloud Provider for this source
    • getSubregion

      default String getSubregion()
      Description copied from interface: ComputeSource
      Gets the provider-specific subregion (aka Availability Domain, Availability Zone or Zone) where instances will be provisioned.
      Specified by:
      getSubregion in interface ComputeSource
      Returns:
      the provider-specific subregion where instances will be provisioned
    • getInstanceType

      default String getInstanceType()
      Description copied from interface: ComputeSource
      Gets the provider-specific instance type of the instances that will be provisioned.
      Specified by:
      getInstanceType in interface ComputeSource
      Returns:
      the provider-specific instance type of the instances that will be provisioned
    • setInstanceType

      default void setInstanceType(String instanceType)
      Description copied from interface: ComputeSource
      Sets the provider-specific instance type of the instances that will be provisioned.
      Specified by:
      setInstanceType in interface ComputeSource
      Parameters:
      instanceType - the provider-specific instance type of the instances that will be provisioned
    • getCredential

      @NotBlank @NotBlank String getCredential()
      Specified by:
      getCredential in interface ComputeSource
    • getCompartmentId

      @NotBlank @JsonPropertyDescription("The OCI compartment ID (ocid) where instances will be provisioned") @NotBlank String getCompartmentId()
      The OCI compartment ID (ocid) where instances will be provisioned.
      Returns:
      the OCI compartment ID (ocid) where instances will be provisioned
    • getAvailabilityDomain

      @JsonPropertyDescription("The OCI availability domain where instances will be provisioned") String getAvailabilityDomain()
      The OCI availability domain where instances will be provisioned.
      Returns:
      the OCI availability domain where instances will be provisioned
    • getSubnetId

      @NotBlank @JsonPropertyDescription("The region-specific OCI Subnet ID (ocid) for the subnet to use for provisioned instances") @NotBlank String getSubnetId()
      The region-specific OCI Subnet ID (ocid) for the subnet to use for the provisioned instances.
      Returns:
      the region-specific OCI Subnet ID (ocid) for the subnet to use for the provisioned instances
    • getShape

      @NotBlank @JsonPropertyDescription("The machine shape (aka instance type) of the instances that will be provisioned") @NotBlank String getShape()
      The machine shape to use for the provisioned instances.
      Returns:
      the machine shape to use for the provisioned instances
    • setShape

      void setShape(String shape)
      The machine shape to use for the provisioned instances.
      Parameters:
      shape - the machine shape to use for the provisioned instances
    • getFlexOcpus

      @Min(0L) @JsonPropertyDescription("The number of OCPUs to provision on a flex type machine shape") @Min(0L) Float getFlexOcpus()
      The number of OCPUs to provision on a flex type machine shape
      Returns:
      the number of OCPUs to provision on a flex type machine shape
    • getFlexRam

      @Min(0L) @JsonPropertyDescription("The amount of ram in GB to provision on a flex type machine shape") @Min(0L) Float getFlexRam()
      The amount of ram in GB to provision on a flex type machine shape
      Returns:
      the amount of ram in GB to provision on a flex type machine shape
    • getSshKey

      @JsonPropertyDescription("The public SSH key to allow instances to be accessible with the matching private key through SSH") String getSshKey()
      The public SSH key. If provided, instances will be accessible with the matching private key through SSH.
      Returns:
      the public SSH key
    • isAssignPublicIp

      @JsonPropertyDescription("Assign public IP address to provisioned instances") boolean isAssignPublicIp()