Package com.io7m.waxmill.machines
Class WXMTap.Builder
java.lang.Object
com.io7m.waxmill.machines.WXMTap.Builder
- Enclosing class:
- WXMTap
public static final class WXMTap.Builder
extends java.lang.Object
-
Method Summary
Modifier and Type Method Description WXMTapbuild()Builds a newWXMTap.WXMTap.Builderfrom(WXMDeviceType.WXMNetworkDeviceBackendType instance)Fill a builder with attribute values from the providedcom.io7m.waxmill.machines.WXMDeviceType.WXMNetworkDeviceBackendTypeinstance.WXMTap.Builderfrom(WXMDeviceType.WXMTapType instance)Fill a builder with attribute values from the providedcom.io7m.waxmill.machines.WXMDeviceType.WXMTapTypeinstance.WXMTap.BuildersetAddress(WXMMACAddress address)Initializes the value for theaddressattribute.WXMTap.BuildersetComment(java.lang.String comment)Initializes the value for thecommentattribute.WXMTap.BuildersetName(WXMTAPDeviceName name)Initializes the value for thenameattribute.
-
Method Details
-
from
Fill a builder with attribute values from the providedcom.io7m.waxmill.machines.WXMDeviceType.WXMTapTypeinstance.- 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.WXMDeviceType.WXMNetworkDeviceBackendTypeinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
setName
Initializes the value for thenameattribute.- Parameters:
name- The value for name- Returns:
thisbuilder for use in a chained invocation
-
setAddress
Initializes the value for theaddressattribute.- Parameters:
address- The value for address- 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
-
build
Builds a newWXMTap.- Returns:
- An immutable instance of WXMTap
- Throws:
java.lang.IllegalStateException- if any required attributes are missing
-