Class DedicatedVmHost.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • availabilityDomain

        public DedicatedVmHost.Builder availabilityDomain​(String availabilityDomain)
        The availability domain the dedicated virtual machine host is running in.

        Example: Uocm:PHX-AD-1

        Parameters:
        availabilityDomain - the value to set
        Returns:
        this builder
      • compartmentId

        public DedicatedVmHost.Builder compartmentId​(String compartmentId)
        The OCID of the compartment that contains the dedicated virtual machine host.
        Parameters:
        compartmentId - the value to set
        Returns:
        this builder
      • dedicatedVmHostShape

        public DedicatedVmHost.Builder dedicatedVmHostShape​(String dedicatedVmHostShape)
        The dedicated virtual machine host shape.

        The shape determines the number of CPUs and other resources available for VMs.

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

        public DedicatedVmHost.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
      • displayName

        public DedicatedVmHost.Builder displayName​(String displayName)
        A user-friendly name.

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

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

        public DedicatedVmHost.Builder faultDomain​(String faultDomain)
        The fault domain for the dedicated virtual machine host’s assigned instances.

        For more information, see Fault Domains.

        If you do not specify the fault domain, the system selects one for you. To change the fault domain for a dedicated virtual machine host, delete it, and then create a new dedicated virtual machine host in the preferred fault domain.

        To get a list of fault domains, use the ListFaultDomains operation in the [Identity and Access Management Service API](https://docs.oracle.com/iaas/api/#/en/identity/20160918/).

        Example: FAULT-DOMAIN-1

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

        public DedicatedVmHost.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
      • timeCreated

        public DedicatedVmHost.Builder timeCreated​(Date timeCreated)
        The date and time the dedicated VM 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
      • totalOcpus

        public DedicatedVmHost.Builder totalOcpus​(Float totalOcpus)
        The total OCPUs of the dedicated VM host.
        Parameters:
        totalOcpus - the value to set
        Returns:
        this builder
      • remainingOcpus

        public DedicatedVmHost.Builder remainingOcpus​(Float remainingOcpus)
        The available OCPUs of the dedicated VM host.
        Parameters:
        remainingOcpus - the value to set
        Returns:
        this builder
      • totalMemoryInGBs

        public DedicatedVmHost.Builder totalMemoryInGBs​(Float totalMemoryInGBs)
        The total memory of the dedicated VM host, in GBs.
        Parameters:
        totalMemoryInGBs - the value to set
        Returns:
        this builder
      • remainingMemoryInGBs

        public DedicatedVmHost.Builder remainingMemoryInGBs​(Float remainingMemoryInGBs)
        The remaining memory of the dedicated VM host, in GBs.
        Parameters:
        remainingMemoryInGBs - the value to set
        Returns:
        this builder
      • capacityBins

        public DedicatedVmHost.Builder capacityBins​(List<CapacityBin> capacityBins)
        A list of total and remaining CPU & memory per capacity bucket.
        Parameters:
        capacityBins - the value to set
        Returns:
        this builder
      • computeBareMetalHostId

        public DedicatedVmHost.Builder computeBareMetalHostId​(String computeBareMetalHostId)
        The compute bare metal host OCID of the dedicated virtual machine host.
        Parameters:
        computeBareMetalHostId - the value to set
        Returns:
        this builder