public static final class VMTypes.RegisterSpec.Builder
extends java.lang.Object
VMTypes.RegisterSpec
.Constructor and Description |
---|
Builder()
Constructor with parameters for the required properties of
VMTypes.RegisterSpec . |
Modifier and Type | Method and Description |
---|---|
VMTypes.RegisterSpec |
build() |
VMTypes.RegisterSpec.Builder |
setDatastore(java.lang.String datastore)
Identifier of the datastore on which the virtual machine's configuration state
is stored.
|
VMTypes.RegisterSpec.Builder |
setDatastorePath(java.lang.String datastorePath)
Datastore path for the virtual machine's configuration file in the format
"[datastore name] path".
|
VMTypes.RegisterSpec.Builder |
setName(java.lang.String name)
Virtual machine name.
|
VMTypes.RegisterSpec.Builder |
setPath(java.lang.String path)
Path to the virtual machine's configuration file on the datastore corresponding
to {@link #datastore).
|
VMTypes.RegisterSpec.Builder |
setPlacement(VMTypes.RegisterPlacementSpec placement)
Virtual machine placement information.
|
public Builder()
VMTypes.RegisterSpec
.public VMTypes.RegisterSpec.Builder setDatastore(java.lang.String datastore)
null
, VMTypes.RegisterSpec.getPath()
must
also be null
and VMTypes.RegisterSpec.getDatastorePath()
must be Set
.datastore
- New value for the property.
When clients pass a value of this class as a parameter, the property must be an
identifier for the resource type: Datastore
. When methods return a value
of this class as a return value, the property will be an identifier for the
resource type: Datastore
.public VMTypes.RegisterSpec.Builder setPath(java.lang.String path)
path
- New value for the property.public VMTypes.RegisterSpec.Builder setDatastorePath(java.lang.String datastorePath)
null
, both VMTypes.RegisterSpec.getDatastore()
and VMTypes.RegisterSpec.getPath()
must be Set
.datastorePath
- New value for the property.public VMTypes.RegisterSpec.Builder setName(java.lang.String name)
null
, the display name from the virtual machine's configuration file
will be used.name
- New value for the property.public VMTypes.RegisterSpec.Builder setPlacement(VMTypes.RegisterPlacementSpec placement)
null
, the system will attempt to choose suitable resources on which to place
the virtual machine.placement
- New value for the property.public VMTypes.RegisterSpec build()