public static class CreateImageDetails.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
CreateImageDetails |
build() |
CreateImageDetails.Builder |
compartmentId(String compartmentId)
The OCID of the compartment you want the image to be created in.
|
CreateImageDetails.Builder |
copy(CreateImageDetails model) |
CreateImageDetails.Builder |
definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.
|
CreateImageDetails.Builder |
displayName(String displayName)
A user-friendly name for the image.
|
CreateImageDetails.Builder |
freeformTags(Map<String,String> freeformTags)
Free-form tags for this resource.
|
CreateImageDetails.Builder |
imageSourceDetails(ImageSourceDetails imageSourceDetails) |
CreateImageDetails.Builder |
instanceId(String instanceId)
The OCID of the instance you want to use as the basis for the image.
|
CreateImageDetails.Builder |
launchMode(CreateImageDetails.LaunchMode launchMode)
Specifies the configuration mode for launching virtual machine (VM) instances.
|
public CreateImageDetails.Builder compartmentId(String compartmentId)
The OCID of the compartment you want the image to be created in.
compartmentId
- the value to setpublic CreateImageDetails.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"}}
definedTags
- the value to setpublic CreateImageDetails.Builder displayName(String displayName)
A user-friendly name for the image. It does not have to be unique, and it’s changeable. Avoid entering confidential information.
You cannot use a platform image name as a custom image name.
Example: My Oracle Linux image
displayName
- the value to setpublic CreateImageDetails.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"}
freeformTags
- the value to setpublic CreateImageDetails.Builder imageSourceDetails(ImageSourceDetails imageSourceDetails)
public CreateImageDetails.Builder instanceId(String instanceId)
The OCID of the instance you want to use as the basis for the image.
instanceId
- the value to setpublic CreateImageDetails.Builder launchMode(CreateImageDetails.LaunchMode launchMode)
Specifies the configuration mode for launching virtual machine (VM) instances. The
configuration modes are: * NATIVE
- VM instances launch with iSCSI boot and VFIO
devices. The default value for platform images. * EMULATED
- VM instances launch
with emulated devices, such as the E1000 network driver and emulated SCSI disk
controller. * PARAVIRTUALIZED
- VM instances launch with paravirtualized devices
using VirtIO drivers. * CUSTOM
- VM instances launch with custom configuration
settings specified in the LaunchOptions
parameter.
launchMode
- the value to setpublic CreateImageDetails build()
public CreateImageDetails.Builder copy(CreateImageDetails model)
Copyright © 2016–2024. All rights reserved.