Class EsxiHost.Builder

  • Enclosing class:
    EsxiHost

    public static class EsxiHost.Builder
    extends Object
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • id

        public EsxiHost.Builder id​(String id)
        The OCID of the ESXi host.
        Parameters:
        id - the value to set
        Returns:
        this builder
      • displayName

        public EsxiHost.Builder displayName​(String displayName)
        A descriptive name for the ESXi host.

        Does not have to be unique, and it’s changeable. Avoid entering confidential information.

        Parameters:
        displayName - the value to set
        Returns:
        this builder
      • sddcId

        public EsxiHost.Builder sddcId​(String sddcId)
        The OCID of the SDDC that the ESXi host belongs to.
        Parameters:
        sddcId - the value to set
        Returns:
        this builder
      • clusterId

        public EsxiHost.Builder clusterId​(String clusterId)
        The OCID of the Cluster that the ESXi host belongs to.
        Parameters:
        clusterId - the value to set
        Returns:
        this builder
      • compartmentId

        public EsxiHost.Builder compartmentId​(String compartmentId)
        The OCID of the compartment that contains the Cluster.
        Parameters:
        compartmentId - the value to set
        Returns:
        this builder
      • computeInstanceId

        public EsxiHost.Builder computeInstanceId​(String computeInstanceId)
        In terms of implementation, an ESXi host is a Compute instance that is configured with the chosen bundle of VMware software.

        The computeInstanceId is the OCID of that Compute instance.

        Parameters:
        computeInstanceId - the value to set
        Returns:
        this builder
      • timeCreated

        public EsxiHost.Builder timeCreated​(Date timeCreated)
        The date and time the ESXi host was created, in the format defined by RFC3339.

        Example: 2016-08-25T21:10:29.600Z

        Parameters:
        timeCreated - the value to set
        Returns:
        this builder
      • timeUpdated

        public EsxiHost.Builder timeUpdated​(Date timeUpdated)
        The date and time the ESXi host was updated, in the format defined by RFC3339.
        Parameters:
        timeUpdated - the value to set
        Returns:
        this builder
      • lifecycleState

        public EsxiHost.Builder lifecycleState​(LifecycleStates lifecycleState)
        The current state of the ESXi host.
        Parameters:
        lifecycleState - the value to set
        Returns:
        this builder
      • billingDonorHostId

        public EsxiHost.Builder billingDonorHostId​(String billingDonorHostId)
        The OCID of the deleted ESXi Host with LeftOver billing cycle.
        Parameters:
        billingDonorHostId - the value to set
        Returns:
        this builder
      • swapBillingHostId

        public EsxiHost.Builder swapBillingHostId​(String swapBillingHostId)
        The OCID of the active ESXi Host to swap billing with current host.
        Parameters:
        swapBillingHostId - the value to set
        Returns:
        this builder
      • isBillingContinuationInProgress

        public EsxiHost.Builder isBillingContinuationInProgress​(Boolean isBillingContinuationInProgress)
        Indicates whether this host is in the progress of billing continuation.
        Parameters:
        isBillingContinuationInProgress - the value to set
        Returns:
        this builder
      • isBillingSwappingInProgress

        public EsxiHost.Builder isBillingSwappingInProgress​(Boolean isBillingSwappingInProgress)
        Indicates whether this host is in the progress of swapping billing.
        Parameters:
        isBillingSwappingInProgress - the value to set
        Returns:
        this builder
      • currentCommitment

        public EsxiHost.Builder currentCommitment​(Commitment currentCommitment)
        The billing option currently used by the ESXi host.

        listSupportedCommitments.

        Parameters:
        currentCommitment - the value to set
        Returns:
        this builder
      • nextCommitment

        public EsxiHost.Builder nextCommitment​(Commitment nextCommitment)
        The billing option to switch to after the current billing cycle ends.

        If nextCommitment is null or empty, currentCommitment continues to the next billing cycle. listSupportedCommitments.

        Parameters:
        nextCommitment - the value to set
        Returns:
        this builder
      • billingContractEndDate

        public EsxiHost.Builder billingContractEndDate​(Date billingContractEndDate)
        Current billing cycle end date.

        If the value in currentCommitment and nextCommitment are different, the value specified in nextCommitment becomes the new currentCommitment when the contractEndDate is reached. Example: 2016-08-25T21:10:29.600Z

        Parameters:
        billingContractEndDate - the value to set
        Returns:
        this builder
      • failedEsxiHostId

        public EsxiHost.Builder failedEsxiHostId​(String failedEsxiHostId)
        The OCID of the ESXi host that failed.
        Parameters:
        failedEsxiHostId - the value to set
        Returns:
        this builder
      • replacementEsxiHostId

        public EsxiHost.Builder replacementEsxiHostId​(String replacementEsxiHostId)
        The OCID of the ESXi host that is created to replace the failed host.
        Parameters:
        replacementEsxiHostId - the value to set
        Returns:
        this builder
      • gracePeriodEndDate

        public EsxiHost.Builder gracePeriodEndDate​(Date gracePeriodEndDate)
        The date and time when the new esxi host should start billing cycle.

        RFC3339. Example: 2021-07-25T21:10:29.600Z

        Parameters:
        gracePeriodEndDate - the value to set
        Returns:
        this builder
      • vmwareSoftwareVersion

        public EsxiHost.Builder vmwareSoftwareVersion​(String vmwareSoftwareVersion)
        The version of VMware software that Oracle Cloud VMware Solution installed on the ESXi hosts.
        Parameters:
        vmwareSoftwareVersion - the value to set
        Returns:
        this builder
      • esxiSoftwareVersion

        public EsxiHost.Builder esxiSoftwareVersion​(String esxiSoftwareVersion)
        The version of ESXi software that Oracle Cloud VMware Solution installed on the ESXi hosts.
        Parameters:
        esxiSoftwareVersion - the value to set
        Returns:
        this builder
      • nonUpgradedEsxiHostId

        public EsxiHost.Builder nonUpgradedEsxiHostId​(String nonUpgradedEsxiHostId)
        The OCID of the ESXi host that will be upgraded.
        Parameters:
        nonUpgradedEsxiHostId - the value to set
        Returns:
        this builder
      • upgradedReplacementEsxiHostId

        public EsxiHost.Builder upgradedReplacementEsxiHostId​(String upgradedReplacementEsxiHostId)
        The OCID of the ESXi host that is newly created to upgrade the original host.
        Parameters:
        upgradedReplacementEsxiHostId - the value to set
        Returns:
        this builder
      • computeAvailabilityDomain

        public EsxiHost.Builder computeAvailabilityDomain​(String computeAvailabilityDomain)
        The availability domain of the ESXi host.
        Parameters:
        computeAvailabilityDomain - the value to set
        Returns:
        this builder
      • hostShapeName

        public EsxiHost.Builder hostShapeName​(String hostShapeName)
        The compute shape name of the ESXi host.

        listSupportedHostShapes.

        Parameters:
        hostShapeName - the value to set
        Returns:
        this builder
      • hostOcpuCount

        public EsxiHost.Builder hostOcpuCount​(Float hostOcpuCount)
        The OCPU count of the ESXi host.
        Parameters:
        hostOcpuCount - the value to set
        Returns:
        this builder
      • capacityReservationId

        public EsxiHost.Builder capacityReservationId​(String capacityReservationId)
        The OCID of the Capacity Reservation.
        Parameters:
        capacityReservationId - the value to set
        Returns:
        this builder
      • freeformTags

        public EsxiHost.Builder freeformTags​(Map<String,​String> freeformTags)
        Free-form tags for this resource.

        Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags.

        Example: {"Department": "Finance"}

        Parameters:
        freeformTags - the value to set
        Returns:
        this builder
      • definedTags

        public EsxiHost.Builder definedTags​(Map<String,​Map<String,​Object>> definedTags)
        Defined tags for this resource.

        Each key is predefined and scoped to a namespace. For more information, see Resource Tags.

        Example: {"Operations": {"CostCenter": "42"}}

        Parameters:
        definedTags - the value to set
        Returns:
        this builder
      • systemTags

        public EsxiHost.Builder systemTags​(Map<String,​Map<String,​Object>> systemTags)
        Usage of system tag keys.

        These predefined keys are scoped to namespaces. Example: {orcl-cloud: {free-tier-retain: true}}

        Parameters:
        systemTags - the value to set
        Returns:
        this builder