public static enum CreateInstanceConfigurationBase.Source extends Enum<CreateInstanceConfigurationBase.Source>
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.
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. The instance configuration uses the same settings as the instance.
Modifier and Type | Method and 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.
|
public static final CreateInstanceConfigurationBase.Source None
public static final CreateInstanceConfigurationBase.Source Instance
public static CreateInstanceConfigurationBase.Source[] values()
for (CreateInstanceConfigurationBase.Source c : CreateInstanceConfigurationBase.Source.values()) System.out.println(c);
public static CreateInstanceConfigurationBase.Source valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String getValue()
public static CreateInstanceConfigurationBase.Source create(String key)
Copyright © 2016–2020. All rights reserved.