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.Builder
availabilityDomain(String availabilityDomain)
The availability domain the dedicated VM host is running in.DedicatedVmHostSummary
build()
DedicatedVmHostSummary.Builder
compartmentId(String compartmentId)
The OCID of the compartment that contains the dedicated VM host.DedicatedVmHostSummary.Builder
copy(DedicatedVmHostSummary model)
DedicatedVmHostSummary.Builder
dedicatedVmHostShape(String dedicatedVmHostShape)
The shape of the dedicated VM host.DedicatedVmHostSummary.Builder
displayName(String displayName)
A user-friendly name.DedicatedVmHostSummary.Builder
faultDomain(String faultDomain)
The fault domain for the dedicated VM host’s assigned instances.DedicatedVmHostSummary.Builder
id(String id)
The OCID of the dedicated VM host.DedicatedVmHostSummary.Builder
lifecycleState(DedicatedVmHostSummary.LifecycleState lifecycleState)
The current state of the dedicated VM host.DedicatedVmHostSummary.Builder
remainingMemoryInGBs(Float remainingMemoryInGBs)
The current available memory of the dedicated VM host, in GBs.DedicatedVmHostSummary.Builder
remainingOcpus(Float remainingOcpus)
The current available OCPUs of the dedicated VM host.DedicatedVmHostSummary.Builder
timeCreated(Date timeCreated)
The date and time the dedicated VM host was created, in the format defined by RFC3339.DedicatedVmHostSummary.Builder
totalMemoryInGBs(Float totalMemoryInGBs)
The current total memory of the dedicated VM host, in GBs.DedicatedVmHostSummary.Builder
totalOcpus(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)
-
-