Class ComputeHost.Builder
- java.lang.Object
-
- com.oracle.bmc.core.model.ComputeHost.Builder
-
- Enclosing class:
- ComputeHost
public static class ComputeHost.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ComputeHost.BuilderadditionalData(Map<String,Object> additionalData)Additional data that can be exposed to the customer.ComputeHost.BuilderavailabilityDomain(String availabilityDomain)The availability domain of the compute host.ComputeHostbuild()ComputeHost.BuildercapacityReservationId(String capacityReservationId)The OCID for the Capacity Reserver that is currently on hostComputeHost.BuildercompartmentId(String compartmentId)The OCID for the compartment.ComputeHost.BuildercomputeHostGroupId(String computeHostGroupId)The OCID for the Customer-unique host group associated with the Compute Bare Metal Host.ComputeHost.BuilderconfigurationData(ComputeHostConfigurationData configurationData)ComputeHost.BuilderconfigurationState(ConfigurationState configurationState)Configuration state of the Compute Bare Metal Host.ComputeHost.Buildercopy(ComputeHost model)ComputeHost.BuilderdefinedTags(Map<String,Map<String,Object>> definedTags)Defined tags for this resource.ComputeHost.BuilderdisplayName(String displayName)A user-friendly name.ComputeHost.BuilderfaultDomain(String faultDomain)A fault domain is a grouping of hardware and infrastructure within an availability domain.ComputeHost.BuilderfreeformTags(Map<String,String> freeformTags)Free-form tags for this resource.ComputeHost.BuildergpuMemoryFabricId(String gpuMemoryFabricId)The OCID for Customer-unique GPU Memory FabricComputeHost.Builderhealth(ComputeHost.Health health)The heathy state of the hostComputeHost.BuilderhpcIslandId(String hpcIslandId)The OCID for Customer-unique HPC IslandComputeHost.Builderid(String id)The OCID for the Customer-unique hostComputeHost.BuilderimpactedComponentDetails(Map<String,Object> impactedComponentDetails)A list that contains impacted components related to an unhealthy host.ComputeHost.BuilderinstanceId(String instanceId)The public OCID for the Virtual Machine or Bare Metal instanceComputeHost.BuilderlifecycleDetails(Map<String,Object> lifecycleDetails)A free-form description detailing why the host is in its current state.ComputeHost.BuilderlifecycleState(ComputeHost.LifecycleState lifecycleState)The lifecycle state of the hostComputeHost.BuilderlocalBlockId(String localBlockId)The OCID for Customer-unique Local BlockComputeHost.BuildernetworkBlockId(String networkBlockId)The OCID for Customer-unique Network BlockComputeHost.BuilderrecycleDetails(RecycleDetails recycleDetails)ComputeHost.Buildershape(String shape)The shape of hostComputeHost.BuildertimeConfigurationCheck(Date timeConfigurationCheck)The date and time that the compute bare metal host configuration check was updated, in the format defined by RFC3339.ComputeHost.BuildertimeCreated(Date timeCreated)The date and time that the compute host record was created, in the format defined by [RFC3339](https://tools .ietf.org/html/rfc3339).ComputeHost.BuildertimeUpdated(Date timeUpdated)The date and time that the compute host record was updated, in the format defined by RFC3339.
-
-
-
Method Detail
-
availabilityDomain
public ComputeHost.Builder availabilityDomain(String availabilityDomain)
The availability domain of the compute host.Example: Uocm:US-CHICAGO-1-AD-2
- Parameters:
availabilityDomain- the value to set- Returns:
- this builder
-
compartmentId
public ComputeHost.Builder compartmentId(String compartmentId)
The OCID for the compartment.This should always be the root compartment.
- Parameters:
compartmentId- the value to set- Returns:
- this builder
-
id
public ComputeHost.Builder id(String id)
The OCID for the Customer-unique host- Parameters:
id- the value to set- Returns:
- this builder
-
faultDomain
public ComputeHost.Builder faultDomain(String faultDomain)
A fault domain is a grouping of hardware and infrastructure within an availability domain.Each availability domain contains three fault domains. Fault domains let you distribute your instances so that they are not on the same physical hardware within a single availability domain. A hardware failure or Compute hardware maintenance that affects one fault domain does not affect instances in other fault domains.
This field is the Fault domain of the host
- Parameters:
faultDomain- the value to set- Returns:
- this builder
-
hpcIslandId
public ComputeHost.Builder hpcIslandId(String hpcIslandId)
The OCID for Customer-unique HPC Island- Parameters:
hpcIslandId- the value to set- Returns:
- this builder
-
computeHostGroupId
public ComputeHost.Builder computeHostGroupId(String computeHostGroupId)
The OCID for the Customer-unique host group associated with the Compute Bare Metal Host.- Parameters:
computeHostGroupId- the value to set- Returns:
- this builder
-
configurationState
public ComputeHost.Builder configurationState(ConfigurationState configurationState)
Configuration state of the Compute Bare Metal Host.- Parameters:
configurationState- the value to set- Returns:
- this builder
-
timeConfigurationCheck
public ComputeHost.Builder timeConfigurationCheck(Date timeConfigurationCheck)
The date and time that the compute bare metal host configuration check was updated, in the format defined by RFC3339.Example: 2016-08-25T21:10:29.600Z
- Parameters:
timeConfigurationCheck- the value to set- Returns:
- this builder
-
configurationData
public ComputeHost.Builder configurationData(ComputeHostConfigurationData configurationData)
-
recycleDetails
public ComputeHost.Builder recycleDetails(RecycleDetails recycleDetails)
-
networkBlockId
public ComputeHost.Builder networkBlockId(String networkBlockId)
The OCID for Customer-unique Network Block- Parameters:
networkBlockId- the value to set- Returns:
- this builder
-
localBlockId
public ComputeHost.Builder localBlockId(String localBlockId)
The OCID for Customer-unique Local Block- Parameters:
localBlockId- the value to set- Returns:
- this builder
-
gpuMemoryFabricId
public ComputeHost.Builder gpuMemoryFabricId(String gpuMemoryFabricId)
The OCID for Customer-unique GPU Memory Fabric- Parameters:
gpuMemoryFabricId- the value to set- Returns:
- this builder
-
instanceId
public ComputeHost.Builder instanceId(String instanceId)
The public OCID for the Virtual Machine or Bare Metal instance- Parameters:
instanceId- the value to set- Returns:
- this builder
-
shape
public ComputeHost.Builder shape(String shape)
The shape of host- Parameters:
shape- the value to set- Returns:
- this builder
-
health
public ComputeHost.Builder health(ComputeHost.Health health)
The heathy state of the host- Parameters:
health- the value to set- Returns:
- this builder
-
additionalData
public ComputeHost.Builder additionalData(Map<String,Object> additionalData)
Additional data that can be exposed to the customer.Will include raw fault codes for strategic customers
- Parameters:
additionalData- the value to set- Returns:
- this builder
-
lifecycleState
public ComputeHost.Builder lifecycleState(ComputeHost.LifecycleState lifecycleState)
The lifecycle state of the host- Parameters:
lifecycleState- the value to set- Returns:
- this builder
-
lifecycleDetails
public ComputeHost.Builder lifecycleDetails(Map<String,Object> lifecycleDetails)
A free-form description detailing why the host is in its current state.- Parameters:
lifecycleDetails- the value to set- Returns:
- this builder
-
capacityReservationId
public ComputeHost.Builder capacityReservationId(String capacityReservationId)
The OCID for the Capacity Reserver that is currently on host- Parameters:
capacityReservationId- the value to set- Returns:
- this builder
-
impactedComponentDetails
public ComputeHost.Builder impactedComponentDetails(Map<String,Object> impactedComponentDetails)
A list that contains impacted components related to an unhealthy host.An impacted component will be a free-form structure of key values pairs that will provide more or less details based on data tiering
- Parameters:
impactedComponentDetails- the value to set- Returns:
- this builder
-
timeCreated
public ComputeHost.Builder timeCreated(Date timeCreated)
The date and time that the compute host record was created, in the format defined by [RFC3339](https://tools .ietf.org/html/rfc3339).Example: 2016-08-25T21:10:29.600Z
- Parameters:
timeCreated- the value to set- Returns:
- this builder
-
timeUpdated
public ComputeHost.Builder timeUpdated(Date timeUpdated)
The date and time that the compute host record was updated, in the format defined by RFC3339.Example: 2016-08-25T21:10:29.600Z
- Parameters:
timeUpdated- the value to set- Returns:
- this builder
-
definedTags
public ComputeHost.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 ComputeHost.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
-
freeformTags
public ComputeHost.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
-
build
public ComputeHost build()
-
copy
public ComputeHost.Builder copy(ComputeHost model)
-
-