Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
Image.Builder |
agentFeatures(InstanceAgentFeatures agentFeatures) |
Image.Builder |
baseImageId(String baseImageId)
The OCID of the image originally used to launch the instance.
|
Image.Builder |
billableSizeInGBs(Long billableSizeInGBs)
The size of the internal storage for this image that is subject to billing (1 GB =
1,073,741,824 bytes).
|
Image |
build() |
Image.Builder |
compartmentId(String compartmentId)
The OCID of the compartment containing the instance you want to use as the basis for the
image.
|
Image.Builder |
copy(Image model) |
Image.Builder |
createImageAllowed(Boolean createImageAllowed)
Whether instances launched with this image can be used to create new images.
|
Image.Builder |
definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.
|
Image.Builder |
displayName(String displayName)
A user-friendly name for the image.
|
Image.Builder |
freeformTags(Map<String,String> freeformTags)
Free-form tags for this resource.
|
Image.Builder |
id(String id)
The OCID of the image.
|
Image.Builder |
launchMode(Image.LaunchMode launchMode)
Specifies the configuration mode for launching virtual machine (VM) instances.
|
Image.Builder |
launchOptions(LaunchOptions launchOptions) |
Image.Builder |
lifecycleState(Image.LifecycleState lifecycleState) |
Image.Builder |
listingType(Image.ListingType listingType)
The listing type of the image.
|
Image.Builder |
operatingSystem(String operatingSystem)
The image’s operating system.
|
Image.Builder |
operatingSystemVersion(String operatingSystemVersion)
The image’s operating system version.
|
Image.Builder |
sizeInMBs(Long sizeInMBs)
The boot volume size for an instance launched from this image (1 MB = 1,048,576 bytes).
|
Image.Builder |
timeCreated(Date timeCreated)
The date and time the image was created, in the format defined by
RFC3339.
|
public Image.Builder baseImageId(String baseImageId)
The OCID of the image originally used to launch the instance.
baseImageId
- the value to setpublic Image.Builder compartmentId(String compartmentId)
The OCID of the compartment containing the instance you want to use as the basis for the image.
compartmentId
- the value to setpublic Image.Builder createImageAllowed(Boolean createImageAllowed)
Whether instances launched with this image can be used to create new images. For example, you cannot create an image of an Oracle Database instance.
Example: true
createImageAllowed
- the value to setpublic Image.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 Image.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 custom Oracle Linux image
displayName
- the value to setpublic Image.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 Image.Builder id(String id)
The OCID of the image.
id
- the value to setpublic Image.Builder launchMode(Image.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 Image.Builder launchOptions(LaunchOptions launchOptions)
public Image.Builder lifecycleState(Image.LifecycleState lifecycleState)
public Image.Builder operatingSystem(String operatingSystem)
The image’s operating system.
Example: Oracle Linux
operatingSystem
- the value to setpublic Image.Builder operatingSystemVersion(String operatingSystemVersion)
The image’s operating system version.
Example: 7.2
operatingSystemVersion
- the value to setpublic Image.Builder agentFeatures(InstanceAgentFeatures agentFeatures)
public Image.Builder listingType(Image.ListingType listingType)
The listing type of the image. The default value is “NONE”.
listingType
- the value to setpublic Image.Builder sizeInMBs(Long sizeInMBs)
The boot volume size for an instance launched from this image (1 MB = 1,048,576 bytes). Note this is not the same as the size of the image when it was exported or the actual size of the image.
Example: 47694
sizeInMBs
- the value to setpublic Image.Builder billableSizeInGBs(Long billableSizeInGBs)
The size of the internal storage for this image that is subject to billing (1 GB = 1,073,741,824 bytes).
Example: 100
billableSizeInGBs
- the value to setpublic Image.Builder timeCreated(Date timeCreated)
The date and time the image was created, in the format defined by RFC3339.
Example: 2016-08-25T21:10:29.600Z
timeCreated
- the value to setpublic Image build()
public Image.Builder copy(Image model)
Copyright © 2016–2025. All rights reserved.