Package com.oracle.bmc.datacc.model
Class CreateVmInstanceDetails.Builder
- java.lang.Object
-
- com.oracle.bmc.datacc.model.CreateVmInstanceDetails.Builder
-
- Enclosing class:
- CreateVmInstanceDetails
public static class CreateVmInstanceDetails.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateVmInstanceDetails.BuilderbootStorageSizeInGBs(Double bootStorageSizeInGBs)Boot storage memory to be allocated in GBs.CreateVmInstanceDetailsbuild()CreateVmInstanceDetails.BuildercompartmentId(String compartmentId)The OCID of the compartment containing the VM instance.CreateVmInstanceDetails.Buildercopy(CreateVmInstanceDetails model)CreateVmInstanceDetails.BuildercpusEnabled(Integer cpusEnabled)The number of CPU cores enabled for each VM instance.CreateVmInstanceDetails.BuilderdataStorageSizeInGBs(Double dataStorageSizeInGBs)Data storage to be allocated in GBs.CreateVmInstanceDetails.BuilderdefinedTags(Map<String,Map<String,Object>> definedTags)Defined tags for this resource.CreateVmInstanceDetails.Builderdescription(String description)VM instance description.CreateVmInstanceDetails.BuilderdisplayName(String displayName)VM instance display name.CreateVmInstanceDetails.BuilderdnsServers(List<String> dnsServers)The list of DNS server IP addresses.CreateVmInstanceDetails.BuilderdomainName(String domainName)The domain name of the VM instance.CreateVmInstanceDetails.BuilderfreeformTags(Map<String,String> freeformTags)Simple key-value pair that is applied without any predefined name, type or scope.CreateVmInstanceDetails.Buildergateway(String gateway)The gateway IP address of the VM instance networkCreateVmInstanceDetails.Builderhostname(String hostname)The host name of the instance.CreateVmInstanceDetails.BuilderimageId(String imageId)The OCID of the VM custom instance uploaded.CreateVmInstanceDetails.BuilderinfrastructureId(String infrastructureId)The OCID of the Database Infrastructure.CreateVmInstanceDetails.BuilderipAddress(String ipAddress)The IP address of the instance.CreateVmInstanceDetails.BuildermemorySizeInGBs(Double memorySizeInGBs)The memory to be allocated in GBs.CreateVmInstanceDetails.Buildermetadata(Map<String,String> metadata)Custom metadata key/value pairs which can be used to: - Provide information to Cloud-Init to be used for various system initialization tasks.CreateVmInstanceDetails.Buildernetmask(String netmask)The netmask of the VM instance network.CreateVmInstanceDetails.BuilderntpServers(List<String> ntpServers)The list of NTP server IP addresses.CreateVmInstanceDetails.BuilderserverId(String serverId)The OCID of the compute node on which VM instance should be launched.CreateVmInstanceDetails.BuildersshPublicKeys(List<String> sshPublicKeys)List of public key used for SSH access to the VM instance.CreateVmInstanceDetails.BuildersystemTags(Map<String,Map<String,Object>> systemTags)Usage of system tag keys.CreateVmInstanceDetails.BuildertimeZone(String timeZone)The time zone to use for the VM instance.CreateVmInstanceDetails.Builderuserdata(String userdata)Base64-encoded data to be used by Cloud-Init to run custom scripts or provide custom Cloud-Init configuration.CreateVmInstanceDetails.BuildervlanId(String vlanId)The network VLAN ID.CreateVmInstanceDetails.BuildervmNetworkId(String vmNetworkId)The OCID of the VM Network.
-
-
-
Method Detail
-
compartmentId
public CreateVmInstanceDetails.Builder compartmentId(String compartmentId)
The OCID of the compartment containing the VM instance.- Parameters:
compartmentId- the value to set- Returns:
- this builder
-
displayName
public CreateVmInstanceDetails.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 CreateVmInstanceDetails.Builder description(String description)
VM instance description.- Parameters:
description- the value to set- Returns:
- this builder
-
infrastructureId
public CreateVmInstanceDetails.Builder infrastructureId(String infrastructureId)
The OCID of the Database Infrastructure.- Parameters:
infrastructureId- the value to set- Returns:
- this builder
-
cpusEnabled
public CreateVmInstanceDetails.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 CreateVmInstanceDetails.Builder memorySizeInGBs(Double memorySizeInGBs)
The memory to be allocated in GBs.- Parameters:
memorySizeInGBs- the value to set- Returns:
- this builder
-
bootStorageSizeInGBs
public CreateVmInstanceDetails.Builder bootStorageSizeInGBs(Double bootStorageSizeInGBs)
Boot storage memory to be allocated in GBs.- Parameters:
bootStorageSizeInGBs- the value to set- Returns:
- this builder
-
dataStorageSizeInGBs
public CreateVmInstanceDetails.Builder dataStorageSizeInGBs(Double dataStorageSizeInGBs)
Data storage to be allocated in GBs.- Parameters:
dataStorageSizeInGBs- the value to set- Returns:
- this builder
-
imageId
public CreateVmInstanceDetails.Builder imageId(String imageId)
The OCID of the VM custom instance uploaded.- Parameters:
imageId- the value to set- Returns:
- this builder
-
serverId
public CreateVmInstanceDetails.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
-
sshPublicKeys
public CreateVmInstanceDetails.Builder sshPublicKeys(List<String> sshPublicKeys)
List of public key used for SSH access to the VM instance.- Parameters:
sshPublicKeys- the value to set- Returns:
- this builder
-
domainName
public CreateVmInstanceDetails.Builder domainName(String domainName)
The domain name of the VM instance.- Parameters:
domainName- the value to set- Returns:
- this builder
-
timeZone
public CreateVmInstanceDetails.Builder timeZone(String timeZone)
The time zone to use for the VM instance.- Parameters:
timeZone- the value to set- Returns:
- this builder
-
dnsServers
public CreateVmInstanceDetails.Builder dnsServers(List<String> dnsServers)
The list of DNS server IP addresses.Maximum of 3 allowed.
- Parameters:
dnsServers- the value to set- Returns:
- this builder
-
ntpServers
public CreateVmInstanceDetails.Builder ntpServers(List<String> ntpServers)
The list of NTP server IP addresses.Maximum of 3 allowed.
- Parameters:
ntpServers- the value to set- Returns:
- this builder
-
hostname
public CreateVmInstanceDetails.Builder hostname(String hostname)
The host name of the instance.- Parameters:
hostname- the value to set- Returns:
- this builder
-
ipAddress
public CreateVmInstanceDetails.Builder ipAddress(String ipAddress)
The IP address of the instance.- Parameters:
ipAddress- the value to set- Returns:
- this builder
-
netmask
public CreateVmInstanceDetails.Builder netmask(String netmask)
The netmask of the VM instance network.- Parameters:
netmask- the value to set- Returns:
- this builder
-
gateway
public CreateVmInstanceDetails.Builder gateway(String gateway)
The gateway IP address of the VM instance network- Parameters:
gateway- the value to set- Returns:
- this builder
-
vlanId
public CreateVmInstanceDetails.Builder vlanId(String vlanId)
The network VLAN ID.- Parameters:
vlanId- the value to set- Returns:
- this builder
-
userdata
public CreateVmInstanceDetails.Builder userdata(String userdata)
Base64-encoded data to be used by Cloud-Init to run custom scripts or provide custom Cloud-Init configuration.For information about how to take advantage of user data, see the Cloud-Init Documentation.
- Parameters:
userdata- the value to set- Returns:
- this builder
-
metadata
public CreateVmInstanceDetails.Builder metadata(Map<String,String> metadata)
Custom metadata key/value pairs which can be used to: - Provide information to Cloud-Init to be used for various system initialization tasks.- Provide additional information which is exposed inside the instance context and can be queried or referenced by user-data scripts for dynamic configuration.
- Parameters:
metadata- the value to set- Returns:
- this builder
-
vmNetworkId
public CreateVmInstanceDetails.Builder vmNetworkId(String vmNetworkId)
The OCID of the VM Network.- Parameters:
vmNetworkId- the value to set- Returns:
- this builder
-
definedTags
public CreateVmInstanceDetails.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 CreateVmInstanceDetails.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 CreateVmInstanceDetails.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
-
build
public CreateVmInstanceDetails build()
-
copy
public CreateVmInstanceDetails.Builder copy(CreateVmInstanceDetails model)
-
-