Package com.oracle.bmc.core.model
Class DedicatedVmHostSummary.Builder
- java.lang.Object
-
- com.oracle.bmc.core.model.DedicatedVmHostSummary.Builder
-
- Enclosing class:
- DedicatedVmHostSummary
public static class DedicatedVmHostSummary.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DedicatedVmHostSummary.BuilderavailabilityDomain(String availabilityDomain)The availability domain the dedicated VM host is running in.DedicatedVmHostSummarybuild()DedicatedVmHostSummary.BuildercompartmentId(String compartmentId)The OCID of the compartment that contains the dedicated VM host.DedicatedVmHostSummary.Buildercopy(DedicatedVmHostSummary model)DedicatedVmHostSummary.BuilderdedicatedVmHostShape(String dedicatedVmHostShape)The shape of the dedicated VM host.DedicatedVmHostSummary.BuilderdisplayName(String displayName)A user-friendly name.DedicatedVmHostSummary.BuilderfaultDomain(String faultDomain)The fault domain for the dedicated VM host’s assigned instances.DedicatedVmHostSummary.Builderid(String id)The OCID of the dedicated VM host.DedicatedVmHostSummary.BuilderlifecycleState(DedicatedVmHostSummary.LifecycleState lifecycleState)The current state of the dedicated VM host.DedicatedVmHostSummary.BuilderremainingMemoryInGBs(Float remainingMemoryInGBs)The current available memory of the dedicated VM host, in GBs.DedicatedVmHostSummary.BuilderremainingOcpus(Float remainingOcpus)The current available OCPUs of the dedicated VM host.DedicatedVmHostSummary.BuildertimeCreated(Date timeCreated)The date and time the dedicated VM host was created, in the format defined by RFC3339.DedicatedVmHostSummary.BuildertotalMemoryInGBs(Float totalMemoryInGBs)The current total memory of the dedicated VM host, in GBs.DedicatedVmHostSummary.BuildertotalOcpus(Float totalOcpus)The current total OCPUs of the dedicated VM host.
-
-
-
Method Detail
-
availabilityDomain
public DedicatedVmHostSummary.Builder availabilityDomain(String availabilityDomain)
The availability domain the dedicated VM host is running in.Example: Uocm:PHX-AD-1
- Parameters:
availabilityDomain- the value to set- Returns:
- this builder
-
compartmentId
public DedicatedVmHostSummary.Builder compartmentId(String compartmentId)
The OCID of the compartment that contains the dedicated VM host.- Parameters:
compartmentId- the value to set- Returns:
- this builder
-
dedicatedVmHostShape
public DedicatedVmHostSummary.Builder dedicatedVmHostShape(String dedicatedVmHostShape)
The shape of the dedicated VM host.The shape determines the number of CPUs and other resources available for VMs.
- Parameters:
dedicatedVmHostShape- the value to set- Returns:
- this builder
-
displayName
public DedicatedVmHostSummary.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 DedicatedVmHostSummary.Builder faultDomain(String faultDomain)
The fault domain for the dedicated VM 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 VM host, delete it and create a new dedicated VM 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.
Example: FAULT-DOMAIN-1
- Parameters:
faultDomain- the value to set- Returns:
- this builder
-
id
public DedicatedVmHostSummary.Builder id(String id)
The OCID of the dedicated VM host.- Parameters:
id- the value to set- Returns:
- this builder
-
lifecycleState
public DedicatedVmHostSummary.Builder lifecycleState(DedicatedVmHostSummary.LifecycleState lifecycleState)
The current state of the dedicated VM host.- Parameters:
lifecycleState- the value to set- Returns:
- this builder
-
timeCreated
public DedicatedVmHostSummary.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
-
remainingOcpus
public DedicatedVmHostSummary.Builder remainingOcpus(Float remainingOcpus)
The current available OCPUs of the dedicated VM host.- Parameters:
remainingOcpus- the value to set- Returns:
- this builder
-
totalOcpus
public DedicatedVmHostSummary.Builder totalOcpus(Float totalOcpus)
The current total OCPUs of the dedicated VM host.- Parameters:
totalOcpus- the value to set- Returns:
- this builder
-
totalMemoryInGBs
public DedicatedVmHostSummary.Builder totalMemoryInGBs(Float totalMemoryInGBs)
The current total memory of the dedicated VM host, in GBs.- Parameters:
totalMemoryInGBs- the value to set- Returns:
- this builder
-
remainingMemoryInGBs
public DedicatedVmHostSummary.Builder remainingMemoryInGBs(Float remainingMemoryInGBs)
The current available memory of the dedicated VM host, in GBs.- Parameters:
remainingMemoryInGBs- the value to set- Returns:
- this builder
-
build
public DedicatedVmHostSummary build()
-
copy
public DedicatedVmHostSummary.Builder copy(DedicatedVmHostSummary model)
-
-