Class CreateImageDetails.Builder
- java.lang.Object
-
- com.oracle.bmc.core.model.CreateImageDetails.Builder
-
- Enclosing class:
- CreateImageDetails
public static class CreateImageDetails.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Method Detail
-
compartmentId
public CreateImageDetails.Builder compartmentId(String compartmentId)
The OCID of the compartment you want the image to be created in.- Parameters:
compartmentId
- the value to set- Returns:
- this builder
-
definedTags
public 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"}}
- Parameters:
definedTags
- the value to set- Returns:
- this builder
-
displayName
public 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
- Parameters:
displayName
- the value to set- Returns:
- this builder
-
freeformTags
public 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"}
- Parameters:
freeformTags
- the value to set- Returns:
- this builder
-
imageSourceDetails
public CreateImageDetails.Builder imageSourceDetails(ImageSourceDetails imageSourceDetails)
-
instanceId
public CreateImageDetails.Builder instanceId(String instanceId)
The OCID of the instance you want to use as the basis for the image.- Parameters:
instanceId
- the value to set- Returns:
- this builder
-
launchMode
public 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.
- Parameters:
launchMode
- the value to set- Returns:
- this builder
-
build
public CreateImageDetails build()
-
copy
public CreateImageDetails.Builder copy(CreateImageDetails model)
-
-