Class Node.Builder

  • Enclosing class:
    Node

    public static class Node.Builder
    extends Object
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • instanceId

        public Node.Builder instanceId​(String instanceId)
        The OCID of the underlying Oracle Cloud Infrastructure Compute instance.
        Parameters:
        instanceId - the value to set
        Returns:
        this builder
      • displayName

        public Node.Builder displayName​(String displayName)
        The name of the node.
        Parameters:
        displayName - the value to set
        Returns:
        this builder
      • lifecycleState

        public Node.Builder lifecycleState​(Node.LifecycleState lifecycleState)
        The state of the node.
        Parameters:
        lifecycleState - the value to set
        Returns:
        this builder
      • nodeType

        public Node.Builder nodeType​(Node.NodeType nodeType)
        Cluster node type.
        Parameters:
        nodeType - the value to set
        Returns:
        this builder
      • shape

        public Node.Builder shape​(String shape)
        Shape of the node.
        Parameters:
        shape - the value to set
        Returns:
        this builder
      • attachedBlockVolumes

        public Node.Builder attachedBlockVolumes​(List<VolumeAttachmentDetail> attachedBlockVolumes)
        The list of block volumes attached to a given node.
        Parameters:
        attachedBlockVolumes - the value to set
        Returns:
        this builder
      • subnetId

        public Node.Builder subnetId​(String subnetId)
        The OCID of the subnet in which the node is to be created.
        Parameters:
        subnetId - the value to set
        Returns:
        this builder
      • ipAddress

        public Node.Builder ipAddress​(String ipAddress)
        IP address of the node.
        Parameters:
        ipAddress - the value to set
        Returns:
        this builder
      • hostname

        public Node.Builder hostname​(String hostname)
        The fully-qualified hostname (FQDN) of the node.
        Parameters:
        hostname - the value to set
        Returns:
        this builder
      • imageId

        public Node.Builder imageId​(String imageId)
        The OCID of the image from which the node was created.
        Parameters:
        imageId - the value to set
        Returns:
        this builder
      • sshFingerprint

        public Node.Builder sshFingerprint​(String sshFingerprint)
        The fingerprint of the SSH key used for node access.
        Parameters:
        sshFingerprint - the value to set
        Returns:
        this builder
      • availabilityDomain

        public Node.Builder availabilityDomain​(String availabilityDomain)
        The name of the availability domain in which the node is running.
        Parameters:
        availabilityDomain - the value to set
        Returns:
        this builder
      • faultDomain

        public Node.Builder faultDomain​(String faultDomain)
        The name of the fault domain in which the node is running.
        Parameters:
        faultDomain - the value to set
        Returns:
        this builder
      • timeCreated

        public Node.Builder timeCreated​(Date timeCreated)
        The time the node was created, shown as an RFC 3339 formatted datetime string.
        Parameters:
        timeCreated - the value to set
        Returns:
        this builder
      • timeUpdated

        public Node.Builder timeUpdated​(Date timeUpdated)
        The time the cluster was updated, shown as an RFC 3339 formatted datetime string.
        Parameters:
        timeUpdated - the value to set
        Returns:
        this builder
      • ocpus

        public Node.Builder ocpus​(Integer ocpus)
        The total number of OCPUs available to the node.
        Parameters:
        ocpus - the value to set
        Returns:
        this builder
      • memoryInGBs

        public Node.Builder memoryInGBs​(Integer memoryInGBs)
        The total amount of memory available to the node, in gigabytes.
        Parameters:
        memoryInGBs - the value to set
        Returns:
        this builder
      • nvmes

        public Node.Builder nvmes​(Integer nvmes)
        The number of NVMe drives to be used for storage.

        A single drive has 6.8 TB available.

        Parameters:
        nvmes - the value to set
        Returns:
        this builder
      • localDisksTotalSizeInGBs

        public Node.Builder localDisksTotalSizeInGBs​(Double localDisksTotalSizeInGBs)
        The aggregate size of all local disks, in gigabytes.

        If the instance does not have any local disks, this field is null.

        Parameters:
        localDisksTotalSizeInGBs - the value to set
        Returns:
        this builder
      • timeMaintenanceRebootDue

        public Node.Builder timeMaintenanceRebootDue​(Date timeMaintenanceRebootDue)
        The date and time the instance is expected to be stopped / started, in the format defined by RFC3339.
        Parameters:
        timeMaintenanceRebootDue - the value to set
        Returns:
        this builder
      • osVersion

        public Node.Builder osVersion​(String osVersion)
        BDS-assigned Operating System version for the node.
        Parameters:
        osVersion - the value to set
        Returns:
        this builder
      • isRebootRequired

        public Node.Builder isRebootRequired​(Boolean isRebootRequired)
        Indicates if the node requires a reboot to either reflect the latest os kernel or take actions for maintenance reboot.
        Parameters:
        isRebootRequired - the value to set
        Returns:
        this builder
      • odhVersion

        public Node.Builder odhVersion​(String odhVersion)
        Version of the ODH (Oracle Distribution including Apache Hadoop) for the node.
        Parameters:
        odhVersion - the value to set
        Returns:
        this builder
      • timeReplaced

        public Node.Builder timeReplaced​(Date timeReplaced)
        The date and time the instance was replaced by a new vm with a node backup.
        Parameters:
        timeReplaced - the value to set
        Returns:
        this builder
      • nodeBackupId

        public Node.Builder nodeBackupId​(String nodeBackupId)
        The node back id that was used for replacing the node.
        Parameters:
        nodeBackupId - the value to set
        Returns:
        this builder
      • build

        public Node build()