Package com.io7m.waxmill.machines
Class WXMEvaluatedBootConfigurationUEFI
java.lang.Object
com.io7m.waxmill.machines.WXMEvaluatedBootConfigurationUEFI
- All Implemented Interfaces:
WXMBootConfigurationType.WXMEvaluatedBootConfigurationType,WXMBootConfigurationType.WXMEvaluatedBootConfigurationUEFIType
public final class WXMEvaluatedBootConfigurationUEFI extends java.lang.Object implements WXMBootConfigurationType.WXMEvaluatedBootConfigurationUEFIType
A set of evaluated commands used to boot with UEFI.
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classWXMEvaluatedBootConfigurationUEFI.BuilderBuilds instances of typeWXMEvaluatedBootConfigurationUEFI. -
Method Summary
Modifier and Type Method Description static WXMEvaluatedBootConfigurationUEFI.Builderbuilder()Creates a builder forWXMEvaluatedBootConfigurationUEFI.WXMEvaluatedBootCommandscommands()static WXMEvaluatedBootConfigurationUEFIcopyOf(WXMBootConfigurationType.WXMEvaluatedBootConfigurationUEFIType instance)Creates an immutable copy of aWXMBootConfigurationType.WXMEvaluatedBootConfigurationUEFITypevalue.booleanequals(java.lang.Object another)This instance is equal to all instances ofWXMEvaluatedBootConfigurationUEFIthat have equal attribute values.inthashCode()Computes a hash code from attributes:requiredPaths,requiredNMDMs,commands.java.util.Set<java.nio.file.Path>requiredNMDMs()java.util.List<java.nio.file.Path>requiredPaths()java.lang.StringtoString()Prints the immutable valueWXMEvaluatedBootConfigurationUEFIwith attribute values.WXMEvaluatedBootConfigurationUEFIwithCommands(WXMEvaluatedBootCommands value)Copy the current immutable object by setting a value for thecommandsattribute.WXMEvaluatedBootConfigurationUEFIwithRequiredNMDMs(java.lang.Iterable<? extends java.nio.file.Path> elements)Copy the current immutable object with elements that replace the content ofrequiredNMDMs.WXMEvaluatedBootConfigurationUEFIwithRequiredNMDMs(java.nio.file.Path... elements)Copy the current immutable object with elements that replace the content ofrequiredNMDMs.WXMEvaluatedBootConfigurationUEFIwithRequiredPaths(java.lang.Iterable<? extends java.nio.file.Path> elements)Copy the current immutable object with elements that replace the content ofrequiredPaths.WXMEvaluatedBootConfigurationUEFIwithRequiredPaths(java.nio.file.Path... elements)Copy the current immutable object with elements that replace the content ofrequiredPaths.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.io7m.waxmill.machines.WXMBootConfigurationType.WXMEvaluatedBootConfigurationUEFIType
checkPreconditions, kind
-
Method Details
-
requiredPaths
public java.util.List<java.nio.file.Path> requiredPaths()- Specified by:
requiredPathsin interfaceWXMBootConfigurationType.WXMEvaluatedBootConfigurationType- Specified by:
requiredPathsin interfaceWXMBootConfigurationType.WXMEvaluatedBootConfigurationUEFIType- Returns:
- The value of the
requiredPathsattribute
-
requiredNMDMs
public java.util.Set<java.nio.file.Path> requiredNMDMs()- Specified by:
requiredNMDMsin interfaceWXMBootConfigurationType.WXMEvaluatedBootConfigurationType- Specified by:
requiredNMDMsin interfaceWXMBootConfigurationType.WXMEvaluatedBootConfigurationUEFIType- Returns:
- The value of the
requiredNMDMsattribute
-
commands
- Specified by:
commandsin interfaceWXMBootConfigurationType.WXMEvaluatedBootConfigurationType- Specified by:
commandsin interfaceWXMBootConfigurationType.WXMEvaluatedBootConfigurationUEFIType- Returns:
- The value of the
commandsattribute
-
withRequiredPaths
Copy the current immutable object with elements that replace the content ofrequiredPaths.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withRequiredPaths
public final WXMEvaluatedBootConfigurationUEFI withRequiredPaths(java.lang.Iterable<? extends java.nio.file.Path> elements)Copy the current immutable object with elements that replace the content ofrequiredPaths. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of requiredPaths elements to set- Returns:
- A modified copy of
thisobject
-
withRequiredNMDMs
Copy the current immutable object with elements that replace the content ofrequiredNMDMs.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withRequiredNMDMs
public final WXMEvaluatedBootConfigurationUEFI withRequiredNMDMs(java.lang.Iterable<? extends java.nio.file.Path> elements)Copy the current immutable object with elements that replace the content ofrequiredNMDMs. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of requiredNMDMs elements to set- Returns:
- A modified copy of
thisobject
-
withCommands
Copy the current immutable object by setting a value for thecommandsattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for commands- Returns:
- A modified copy of the
thisobject
-
equals
public boolean equals(java.lang.Object another)This instance is equal to all instances ofWXMEvaluatedBootConfigurationUEFIthat have equal attribute values.- Overrides:
equalsin classjava.lang.Object- Returns:
trueifthisis equal toanotherinstance
-
hashCode
public int hashCode()Computes a hash code from attributes:requiredPaths,requiredNMDMs,commands.- Overrides:
hashCodein classjava.lang.Object- Returns:
- hashCode value
-
toString
public java.lang.String toString()Prints the immutable valueWXMEvaluatedBootConfigurationUEFIwith attribute values.- Overrides:
toStringin classjava.lang.Object- Returns:
- A string representation of the value
-
copyOf
public static WXMEvaluatedBootConfigurationUEFI copyOf(WXMBootConfigurationType.WXMEvaluatedBootConfigurationUEFIType instance)Creates an immutable copy of aWXMBootConfigurationType.WXMEvaluatedBootConfigurationUEFITypevalue. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.- Parameters:
instance- The instance to copy- Returns:
- A copied immutable WXMEvaluatedBootConfigurationUEFI instance
-
builder
Creates a builder forWXMEvaluatedBootConfigurationUEFI.WXMEvaluatedBootConfigurationUEFI.builder() .addRequiredPaths|addAllRequiredPaths(java.nio.file.Path) //requiredPathselements .addRequiredNMDMs|addAllRequiredNMDMs(java.nio.file.Path) //requiredNMDMselements .setCommands(com.io7m.waxmill.machines.WXMEvaluatedBootCommands) // requiredcommands.build();- Returns:
- A new WXMEvaluatedBootConfigurationUEFI builder
-