Package com.io7m.waxmill.machines

# Class WXMGRUBKernelOpenBSD

java.lang.Object
com.io7m.waxmill.machines.WXMGRUBKernelOpenBSD

All Implemented Interfaces:
  `WXMBootConfigurationType.WXMGRUBKernelInstructionsType`, `WXMBootConfigurationType.WXMGRUBKernelOpenBSDType`

    public final class WXMGRUBKernelOpenBSD
    extends java.lang.Object
    implements WXMBootConfigurationType.WXMGRUBKernelOpenBSDType

OpenBSD kernel instructions.

- ## Nested Class Summary

  Nested Classes
  Modifier and Type | Class | Description
  --- | --- | ---
  `static class` | `WXMGRUBKernelOpenBSD.Builder` | Builds instances of type `WXMGRUBKernelOpenBSD`.

  ## Nested classes/interfaces inherited from interface com.io7m.waxmill.machines.WXMBootConfigurationType.WXMGRUBKernelInstructionsType

  `WXMBootConfigurationType.WXMGRUBKernelInstructionsType.Kind`

- ## Method Summary

  Modifier and Type | Method | Description
  --- | --- | ---
  `WXMDeviceSlot` | `bootDevice()` |
  `static WXMGRUBKernelOpenBSD.Builder` | `builder()` | Creates a builder for `WXMGRUBKernelOpenBSD`.
  `static WXMGRUBKernelOpenBSD` | `copyOf​(WXMBootConfigurationType.WXMGRUBKernelOpenBSDType instance)` | Creates an immutable copy of a `WXMBootConfigurationType.WXMGRUBKernelOpenBSDType` value.
  `boolean` | `equals​(java.lang.Object another)` | This instance is equal to all instances of `WXMGRUBKernelOpenBSD` that have equal attribute values.
  `int` | `hashCode()` | Computes a hash code from attributes: `bootDevice`, `kernelPath`.
  `java.nio.file.Path` | `kernelPath()` |
  `java.lang.String` | `toString()` | Prints the immutable value `WXMGRUBKernelOpenBSD` with attribute values.
  `WXMGRUBKernelOpenBSD` | `withBootDevice​(WXMDeviceSlot value)` | Copy the current immutable object by setting a value for the `bootDevice` attribute.
  `WXMGRUBKernelOpenBSD` | `withKernelPath​(java.nio.file.Path value)` | Copy the current immutable object by setting a value for the `kernelPath` attribute.

  ### Methods inherited from class java.lang.Object

  `clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

  ### Methods inherited from interface com.io7m.waxmill.machines.WXMBootConfigurationType.WXMGRUBKernelOpenBSDType

  `checkPreconditions, kind, requiredDevices`

- ## Method Details

  - ### bootDevice

    public WXMDeviceSlot bootDevice()
    Specified by:
      `bootDevice` in interface `WXMBootConfigurationType.WXMGRUBKernelOpenBSDType`
    Returns:
      The device from which booting will occur

  - ### kernelPath

    public java.nio.file.Path kernelPath()
    Specified by:
      `kernelPath` in interface `WXMBootConfigurationType.WXMGRUBKernelOpenBSDType`
    Returns:
      The path to the kernel on the guest filesystem

  - ### withBootDevice

    public final WXMGRUBKernelOpenBSD withBootDevice​(WXMDeviceSlot value)
    Copy the current immutable object by setting a value for the `bootDevice` attribute. A shallow reference equality check is used to prevent copying of the same value by returning `this`.
    Parameters:
      `value` - A new value for bootDevice
    Returns:
      A modified copy of the `this` object

  - ### withKernelPath

    public final WXMGRUBKernelOpenBSD withKernelPath​(java.nio.file.Path value)
    Copy the current immutable object by setting a value for the `kernelPath` attribute. A shallow reference equality check is used to prevent copying of the same value by returning `this`.
    Parameters:
      `value` - A new value for kernelPath
    Returns:
      A modified copy of the `this` object

  - ### equals

    public boolean equals​(java.lang.Object another)
    This instance is equal to all instances of `WXMGRUBKernelOpenBSD` that have equal attribute values.
    Overrides:
      `equals` in class `java.lang.Object`
    Returns:
      `true` if `this` is equal to `another` instance

  - ### hashCode

    public int hashCode()
    Computes a hash code from attributes: `bootDevice`, `kernelPath`.
    Overrides:
      `hashCode` in class `java.lang.Object`
    Returns:
      hashCode value

  - ### toString

    public java.lang.String toString()
    Prints the immutable value `WXMGRUBKernelOpenBSD` with attribute values.
    Overrides:
      `toString` in class `java.lang.Object`
    Returns:
      A string representation of the value

  - ### copyOf

    public static WXMGRUBKernelOpenBSD copyOf​(WXMBootConfigurationType.WXMGRUBKernelOpenBSDType instance)
    Creates an immutable copy of a `WXMBootConfigurationType.WXMGRUBKernelOpenBSDType` 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 WXMGRUBKernelOpenBSD instance

  - ### builder

    public static WXMGRUBKernelOpenBSD.Builder builder()
    Creates a builder for `WXMGRUBKernelOpenBSD`.

         WXMGRUBKernelOpenBSD.builder()
            .setBootDevice(com.io7m.waxmill.machines.WXMDeviceSlot) // required bootDevice
            .setKernelPath(java.nio.file.Path) // required kernelPath
            .build();

    Returns:
      A new WXMGRUBKernelOpenBSD builder