Package com.io7m.waxmill.machines
Class WXMDeviceE1000.Builder
java.lang.Object
com.io7m.waxmill.machines.WXMDeviceE1000.Builder
- Enclosing class:
- WXMDeviceE1000
public static final class WXMDeviceE1000.Builder
extends java.lang.Object
Builds instances of type
WXMDeviceE1000.
Initialize attributes and then invoke the build() method to create an
immutable instance.
Builder is not thread-safe and generally should not be stored in a field or collection,
but instead used immediately to create instances.
-
Method Summary
Modifier and Type Method Description WXMDeviceE1000build()Builds a newWXMDeviceE1000.WXMDeviceE1000.Builderfrom(WXMDeviceType instance)Fill a builder with attribute values from the providedcom.io7m.waxmill.machines.WXMDeviceTypeinstance.WXMDeviceE1000.Builderfrom(WXMDeviceType.WXMDeviceE1000Type instance)Fill a builder with attribute values from the providedcom.io7m.waxmill.machines.WXMDeviceType.WXMDeviceE1000Typeinstance.WXMDeviceE1000.BuildersetBackend(WXMNetworkDeviceBackendType backend)Initializes the value for thebackendattribute.WXMDeviceE1000.BuildersetComment(java.lang.String comment)Initializes the value for thecommentattribute.WXMDeviceE1000.BuildersetDeviceSlot(WXMDeviceSlot deviceSlot)Initializes the value for thedeviceSlotattribute.
-
Method Details
-
from
Fill a builder with attribute values from the providedcom.io7m.waxmill.machines.WXMDeviceType.WXMDeviceE1000Typeinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
from
Fill a builder with attribute values from the providedcom.io7m.waxmill.machines.WXMDeviceTypeinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
setComment
Initializes the value for thecommentattribute.If not set, this attribute will have a default value as returned by the initializer of
comment.- Parameters:
comment- The value for comment- Returns:
thisbuilder for use in a chained invocation
-
setDeviceSlot
Initializes the value for thedeviceSlotattribute.- Parameters:
deviceSlot- The value for deviceSlot- Returns:
thisbuilder for use in a chained invocation
-
setBackend
Initializes the value for thebackendattribute.- Parameters:
backend- The value for backend- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newWXMDeviceE1000.- Returns:
- An immutable instance of WXMDeviceE1000
- Throws:
java.lang.IllegalStateException- if any required attributes are missing
-