Class WXMFlags.Builder
- Enclosing class:
- WXMFlags
public static final class WXMFlags.Builder
extends java.lang.Object
-
Method Summary
Modifier and Type Method Description WXMFlagsbuild()Builds a newWXMFlags.WXMFlags.Builderfrom(WXMFlagsType instance)Fill a builder with attribute values from the providedWXMFlagsTypeinstance.WXMFlags.BuildersetDisableMPTableGeneration(boolean disableMPTableGeneration)Initializes the value for thedisableMPTableGenerationattribute.WXMFlags.BuildersetExitOnPAUSE(boolean exitOnPAUSE)Initializes the value for theexitOnPAUSEattribute.WXMFlags.BuildersetForceVirtualIOPCIToUseMSI(boolean forceVirtualIOPCIToUseMSI)Initializes the value for theforceVirtualIOPCIToUseMSIattribute.WXMFlags.BuildersetGenerateACPITables(boolean generateACPITables)Initializes the value for thegenerateACPITablesattribute.WXMFlags.BuildersetGuestAPICIsX2APIC(boolean guestAPICIsX2APIC)Initializes the value for theguestAPICIsX2APICattribute.WXMFlags.BuildersetIgnoreUnimplementedModelSpecificRegisters(boolean ignoreUnimplementedModelSpecificRegisters)Initializes the value for theignoreUnimplementedModelSpecificRegistersattribute.WXMFlags.BuildersetIncludeGuestMemoryInCoreFiles(boolean includeGuestMemoryInCoreFiles)Initializes the value for theincludeGuestMemoryInCoreFilesattribute.WXMFlags.BuildersetRealTimeClockIsUTC(boolean realTimeClockIsUTC)Initializes the value for therealTimeClockIsUTCattribute.WXMFlags.BuildersetWireGuestMemory(boolean wireGuestMemory)Initializes the value for thewireGuestMemoryattribute.WXMFlags.BuildersetYieldCPUOnHLT(boolean yieldCPUOnHLT)Initializes the value for theyieldCPUOnHLTattribute.
-
Method Details
-
from
Fill a builder with attribute values from the providedWXMFlagsTypeinstance. Regular attribute values will be replaced with those from the given instance. Absent optional values will not replace present values.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
setIncludeGuestMemoryInCoreFiles
public final WXMFlags.Builder setIncludeGuestMemoryInCoreFiles(boolean includeGuestMemoryInCoreFiles)Initializes the value for theincludeGuestMemoryInCoreFilesattribute.If not set, this attribute will have a default value as returned by the initializer of
includeGuestMemoryInCoreFiles.- Parameters:
includeGuestMemoryInCoreFiles- The value for includeGuestMemoryInCoreFiles- Returns:
thisbuilder for use in a chained invocation
-
setYieldCPUOnHLT
Initializes the value for theyieldCPUOnHLTattribute.If not set, this attribute will have a default value as returned by the initializer of
yieldCPUOnHLT.- Parameters:
yieldCPUOnHLT- The value for yieldCPUOnHLT- Returns:
thisbuilder for use in a chained invocation
-
setExitOnPAUSE
Initializes the value for theexitOnPAUSEattribute.If not set, this attribute will have a default value as returned by the initializer of
exitOnPAUSE.- Parameters:
exitOnPAUSE- The value for exitOnPAUSE- Returns:
thisbuilder for use in a chained invocation
-
setGenerateACPITables
Initializes the value for thegenerateACPITablesattribute.If not set, this attribute will have a default value as returned by the initializer of
generateACPITables.- Parameters:
generateACPITables- The value for generateACPITables- Returns:
thisbuilder for use in a chained invocation
-
setDisableMPTableGeneration
Initializes the value for thedisableMPTableGenerationattribute.If not set, this attribute will have a default value as returned by the initializer of
disableMPTableGeneration.- Parameters:
disableMPTableGeneration- The value for disableMPTableGeneration- Returns:
thisbuilder for use in a chained invocation
-
setForceVirtualIOPCIToUseMSI
Initializes the value for theforceVirtualIOPCIToUseMSIattribute.If not set, this attribute will have a default value as returned by the initializer of
forceVirtualIOPCIToUseMSI.- Parameters:
forceVirtualIOPCIToUseMSI- The value for forceVirtualIOPCIToUseMSI- Returns:
thisbuilder for use in a chained invocation
-
setGuestAPICIsX2APIC
Initializes the value for theguestAPICIsX2APICattribute.If not set, this attribute will have a default value as returned by the initializer of
guestAPICIsX2APIC.- Parameters:
guestAPICIsX2APIC- The value for guestAPICIsX2APIC- Returns:
thisbuilder for use in a chained invocation
-
setWireGuestMemory
Initializes the value for thewireGuestMemoryattribute.If not set, this attribute will have a default value as returned by the initializer of
wireGuestMemory.- Parameters:
wireGuestMemory- The value for wireGuestMemory- Returns:
thisbuilder for use in a chained invocation
-
setRealTimeClockIsUTC
Initializes the value for therealTimeClockIsUTCattribute.If not set, this attribute will have a default value as returned by the initializer of
realTimeClockIsUTC.- Parameters:
realTimeClockIsUTC- The value for realTimeClockIsUTC- Returns:
thisbuilder for use in a chained invocation
-
setIgnoreUnimplementedModelSpecificRegisters
public final WXMFlags.Builder setIgnoreUnimplementedModelSpecificRegisters(boolean ignoreUnimplementedModelSpecificRegisters)Initializes the value for theignoreUnimplementedModelSpecificRegistersattribute.If not set, this attribute will have a default value as returned by the initializer of
ignoreUnimplementedModelSpecificRegisters.- Parameters:
ignoreUnimplementedModelSpecificRegisters- The value for ignoreUnimplementedModelSpecificRegisters- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newWXMFlags.- Returns:
- An immutable instance of WXMFlags
- Throws:
java.lang.IllegalStateException- if any required attributes are missing
-