Package com.oracle.bmc.datacc.model
Class VmInstanceSummary.Builder
- java.lang.Object
-
- com.oracle.bmc.datacc.model.VmInstanceSummary.Builder
-
- Enclosing class:
- VmInstanceSummary
public static class VmInstanceSummary.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VmInstanceSummarybuild()VmInstanceSummary.BuildercompartmentId(String compartmentId)The OCID of the compartment containing the VM instance.VmInstanceSummary.Buildercopy(VmInstanceSummary model)VmInstanceSummary.BuildercpusEnabled(Integer cpusEnabled)The number of CPU cores enabled for each VM instance.VmInstanceSummary.BuilderdefinedTags(Map<String,Map<String,Object>> definedTags)Defined tags for this resource.VmInstanceSummary.Builderdescription(String description)VM instance description.VmInstanceSummary.BuilderdisplayName(String displayName)VM instance display name.VmInstanceSummary.BuilderdomainName(String domainName)The domain name of the VM instance.VmInstanceSummary.BuilderfreeformTags(Map<String,String> freeformTags)Simple key-value pair that is applied without any predefined name, type or scope.VmInstanceSummary.Builderid(String id)The OCID of the VM instance.VmInstanceSummary.BuilderimageId(String imageId)The OCID of the VM custom instance uploaded.VmInstanceSummary.BuilderinfrastructureId(String infrastructureId)The OCID of the Database Infrastructure.VmInstanceSummary.BuilderlifecycleDetails(String lifecycleDetails)Lifecycle state details of the VM instance.VmInstanceSummary.BuilderlifecycleState(VmInstanceLifecycleState lifecycleState)The current state of the VM instance.VmInstanceSummary.BuildermemorySizeInGBs(Double memorySizeInGBs)The memory to be allocated in GBs.VmInstanceSummary.BuilderserverId(String serverId)The OCID of the compute node on which VM instance should be launched.VmInstanceSummary.BuildersystemTags(Map<String,Map<String,Object>> systemTags)Usage of system tag keys.VmInstanceSummary.BuildertimeCreated(Date timeCreated)The time that the VM instance was created.VmInstanceSummary.BuildertimeUpdated(Date timeUpdated)The time that the VM instance was last updated.VmInstanceSummary.BuildertimeZone(String timeZone)The time zone to use for the VM instance.VmInstanceSummary.BuildervmNetworkId(String vmNetworkId)The OCID of the VM Network.
-
-
-
Method Detail
-
id
public VmInstanceSummary.Builder id(String id)
The OCID of the VM instance.- Parameters:
id- the value to set- Returns:
- this builder
-
compartmentId
public VmInstanceSummary.Builder compartmentId(String compartmentId)
The OCID of the compartment containing the VM instance.- Parameters:
compartmentId- the value to set- Returns:
- this builder
-
displayName
public VmInstanceSummary.Builder displayName(String displayName)
VM instance display name.This name does not have to be unique, and is changeable.
- Parameters:
displayName- the value to set- Returns:
- this builder
-
description
public VmInstanceSummary.Builder description(String description)
VM instance description.- Parameters:
description- the value to set- Returns:
- this builder
-
infrastructureId
public VmInstanceSummary.Builder infrastructureId(String infrastructureId)
The OCID of the Database Infrastructure.- Parameters:
infrastructureId- the value to set- Returns:
- this builder
-
cpusEnabled
public VmInstanceSummary.Builder cpusEnabled(Integer cpusEnabled)
The number of CPU cores enabled for each VM instance.- Parameters:
cpusEnabled- the value to set- Returns:
- this builder
-
memorySizeInGBs
public VmInstanceSummary.Builder memorySizeInGBs(Double memorySizeInGBs)
The memory to be allocated in GBs.- Parameters:
memorySizeInGBs- the value to set- Returns:
- this builder
-
definedTags
public VmInstanceSummary.Builder definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.Each key is predefined and scoped to a namespace. Example: {“foo-namespace”: {“bar-key”: “value”}}
- Parameters:
definedTags- the value to set- Returns:
- this builder
-
freeformTags
public VmInstanceSummary.Builder freeformTags(Map<String,String> freeformTags)
Simple key-value pair that is applied without any predefined name, type or scope.This tag option exists for cross-compatibility only. Example: {“bar-key”: “value”}
- Parameters:
freeformTags- the value to set- Returns:
- this builder
-
systemTags
public VmInstanceSummary.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-retained”: “true” } }
- Parameters:
systemTags- the value to set- Returns:
- this builder
-
imageId
public VmInstanceSummary.Builder imageId(String imageId)
The OCID of the VM custom instance uploaded.- Parameters:
imageId- the value to set- Returns:
- this builder
-
serverId
public VmInstanceSummary.Builder serverId(String serverId)
The OCID of the compute node on which VM instance should be launched.- Parameters:
serverId- the value to set- Returns:
- this builder
-
lifecycleState
public VmInstanceSummary.Builder lifecycleState(VmInstanceLifecycleState lifecycleState)
The current state of the VM instance.- Parameters:
lifecycleState- the value to set- Returns:
- this builder
-
lifecycleDetails
public VmInstanceSummary.Builder lifecycleDetails(String lifecycleDetails)
Lifecycle state details of the VM instance.- Parameters:
lifecycleDetails- the value to set- Returns:
- this builder
-
timeCreated
public VmInstanceSummary.Builder timeCreated(Date timeCreated)
The time that the VM instance was created.An RFC3339 formatted datetime string.
- Parameters:
timeCreated- the value to set- Returns:
- this builder
-
timeUpdated
public VmInstanceSummary.Builder timeUpdated(Date timeUpdated)
The time that the VM instance was last updated.An RFC3339 formatted datetime string.
- Parameters:
timeUpdated- the value to set- Returns:
- this builder
-
domainName
public VmInstanceSummary.Builder domainName(String domainName)
The domain name of the VM instance.- Parameters:
domainName- the value to set- Returns:
- this builder
-
timeZone
public VmInstanceSummary.Builder timeZone(String timeZone)
The time zone to use for the VM instance.- Parameters:
timeZone- the value to set- Returns:
- this builder
-
vmNetworkId
public VmInstanceSummary.Builder vmNetworkId(String vmNetworkId)
The OCID of the VM Network.- Parameters:
vmNetworkId- the value to set- Returns:
- this builder
-
build
public VmInstanceSummary build()
-
copy
public VmInstanceSummary.Builder copy(VmInstanceSummary model)
-
-