Enum CreateInstanceConfigurationBase.Source
- java.lang.Object
-
- java.lang.Enum<CreateInstanceConfigurationBase.Source>
-
- com.oracle.bmc.core.model.CreateInstanceConfigurationBase.Source
-
- All Implemented Interfaces:
BmcEnum
,Serializable
,Comparable<CreateInstanceConfigurationBase.Source>
- Enclosing class:
- CreateInstanceConfigurationBase
public static enum CreateInstanceConfigurationBase.Source extends Enum<CreateInstanceConfigurationBase.Source> implements BmcEnum
The source of the instance configuration.An instance configuration defines the settings to use when creating Compute instances, including details such as the base image, shape, and metadata. You can also specify the associated resources for the instance, such as block volume attachments and network configuration.
When you create an instance configuration using an existing instance as a template, the instance configuration does not include any information from the source instance's boot volume, such as installed applications, binaries, and files on the instance. It also does not include the contents of any block volumes that are attached to the instance.
To create an instance configuration that includes the custom setup from an instance's boot volume, you must first create a custom image from the instance (see
createImage
). Then, use the custom image to launch a new instance (seelaunchInstance
). Finally, create the instance configuration based on the instance that you created from the custom image.To include block volume contents with an instance configuration, first create a backup of the attached block volumes (see
createVolumeBackup
). Then, create the instance configuration by specifying the list of settings, usinginstanceConfigurationVolumeSourceFromVolumeBackupDetails
to include the block volume backups in the list of settings.The following values are supported:
NONE: Creates an instance configuration using the list of settings that you specify. * INSTANCE: Creates an instance configuration using an existing instance as a template.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CreateInstanceConfigurationBase.Source
create(String key)
String
getValue()
static CreateInstanceConfigurationBase.Source
valueOf(String name)
Returns the enum constant of this type with the specified name.static CreateInstanceConfigurationBase.Source[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
None
public static final CreateInstanceConfigurationBase.Source None
-
Instance
public static final CreateInstanceConfigurationBase.Source Instance
-
-
Method Detail
-
values
public static CreateInstanceConfigurationBase.Source[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (CreateInstanceConfigurationBase.Source c : CreateInstanceConfigurationBase.Source.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CreateInstanceConfigurationBase.Source valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
create
public static CreateInstanceConfigurationBase.Source create(String key)
-
-