public static final class WindowsSysprep.Builder
extends java.lang.Object
WindowsSysprep
.Constructor and Description |
---|
Builder(UserData userData,
GuiUnattended guiUnattended)
Constructor with parameters for the required properties of
WindowsSysprep . |
Modifier and Type | Method and Description |
---|---|
WindowsSysprep |
build() |
WindowsSysprep.Builder |
setDomain(Domain domain)
Information needed to join a workgroup or domain.
|
WindowsSysprep.Builder |
setGuiRunOnceCommands(java.util.List<java.lang.String> guiRunOnceCommands)
A list of commands to run at first user logon, after customizing the guest.
|
public Builder(UserData userData, GuiUnattended guiUnattended)
WindowsSysprep
.public WindowsSysprep.Builder setGuiRunOnceCommands(java.util.List<java.lang.String> guiRunOnceCommands)
GuiUnattended.getAutoLogon()
setting. These commands are
directly mapped to the GuiRunOnce key in the. This property was added in vSphere
API 7.0.0.
If null
, no commands are run.guiRunOnceCommands
- New value for the property.public WindowsSysprep.Builder setDomain(Domain domain)
null
, the guest will not be joined to any workgroup or a domain.domain
- New value for the property.public WindowsSysprep build()