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 class
WXMEvaluatedBootConfigurationUEFI.Builder
Builds instances of typeWXMEvaluatedBootConfigurationUEFI
. -
Method Summary
Modifier and Type Method Description static WXMEvaluatedBootConfigurationUEFI.Builder
builder()
Creates a builder forWXMEvaluatedBootConfigurationUEFI
.WXMEvaluatedBootCommands
commands()
static WXMEvaluatedBootConfigurationUEFI
copyOf(WXMBootConfigurationType.WXMEvaluatedBootConfigurationUEFIType instance)
Creates an immutable copy of aWXMBootConfigurationType.WXMEvaluatedBootConfigurationUEFIType
value.boolean
equals(java.lang.Object another)
This instance is equal to all instances ofWXMEvaluatedBootConfigurationUEFI
that have equal attribute values.int
hashCode()
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.String
toString()
Prints the immutable valueWXMEvaluatedBootConfigurationUEFI
with attribute values.WXMEvaluatedBootConfigurationUEFI
withCommands(WXMEvaluatedBootCommands value)
Copy the current immutable object by setting a value for thecommands
attribute.WXMEvaluatedBootConfigurationUEFI
withRequiredNMDMs(java.lang.Iterable<? extends java.nio.file.Path> elements)
Copy the current immutable object with elements that replace the content ofrequiredNMDMs
.WXMEvaluatedBootConfigurationUEFI
withRequiredNMDMs(java.nio.file.Path... elements)
Copy the current immutable object with elements that replace the content ofrequiredNMDMs
.WXMEvaluatedBootConfigurationUEFI
withRequiredPaths(java.lang.Iterable<? extends java.nio.file.Path> elements)
Copy the current immutable object with elements that replace the content ofrequiredPaths
.WXMEvaluatedBootConfigurationUEFI
withRequiredPaths(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, wait
Methods 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:
requiredPaths
in interfaceWXMBootConfigurationType.WXMEvaluatedBootConfigurationType
- Specified by:
requiredPaths
in interfaceWXMBootConfigurationType.WXMEvaluatedBootConfigurationUEFIType
- Returns:
- The value of the
requiredPaths
attribute
-
requiredNMDMs
public java.util.Set<java.nio.file.Path> requiredNMDMs()- Specified by:
requiredNMDMs
in interfaceWXMBootConfigurationType.WXMEvaluatedBootConfigurationType
- Specified by:
requiredNMDMs
in interfaceWXMBootConfigurationType.WXMEvaluatedBootConfigurationUEFIType
- Returns:
- The value of the
requiredNMDMs
attribute
-
commands
- Specified by:
commands
in interfaceWXMBootConfigurationType.WXMEvaluatedBootConfigurationType
- Specified by:
commands
in interfaceWXMBootConfigurationType.WXMEvaluatedBootConfigurationUEFIType
- Returns:
- The value of the
commands
attribute
-
withRequiredPaths
Copy the current immutable object with elements that replace the content ofrequiredPaths
.- Parameters:
elements
- The elements to set- Returns:
- A modified copy of
this
object
-
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
this
object
-
withRequiredNMDMs
Copy the current immutable object with elements that replace the content ofrequiredNMDMs
.- Parameters:
elements
- The elements to set- Returns:
- A modified copy of
this
object
-
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
this
object
-
withCommands
Copy the current immutable object by setting a value for thecommands
attribute. 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
this
object
-
equals
public boolean equals(java.lang.Object another)This instance is equal to all instances ofWXMEvaluatedBootConfigurationUEFI
that have equal attribute values.- Overrides:
equals
in classjava.lang.Object
- Returns:
true
ifthis
is equal toanother
instance
-
hashCode
public int hashCode()Computes a hash code from attributes:requiredPaths
,requiredNMDMs
,commands
.- Overrides:
hashCode
in classjava.lang.Object
- Returns:
- hashCode value
-
toString
public java.lang.String toString()Prints the immutable valueWXMEvaluatedBootConfigurationUEFI
with attribute values.- Overrides:
toString
in classjava.lang.Object
- Returns:
- A string representation of the value
-
copyOf
public static WXMEvaluatedBootConfigurationUEFI copyOf(WXMBootConfigurationType.WXMEvaluatedBootConfigurationUEFIType instance)Creates an immutable copy of aWXMBootConfigurationType.WXMEvaluatedBootConfigurationUEFIType
value. 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) //
requiredPaths
elements .addRequiredNMDMs|addAllRequiredNMDMs(java.nio.file.Path) //requiredNMDMs
elements .setCommands(com.io7m.waxmill.machines.WXMEvaluatedBootCommands) // requiredcommands
.build();- Returns:
- A new WXMEvaluatedBootConfigurationUEFI builder
-