Package com.io7m.waxmill.machines
Class WXMVMNet.Builder
java.lang.Object
com.io7m.waxmill.machines.WXMVMNet.Builder
- Enclosing class:
- WXMVMNet
public static final class WXMVMNet.Builder
extends java.lang.Object
-
Method Summary
Modifier and Type Method Description WXMVMNetbuild()Builds a newWXMVMNet.WXMVMNet.Builderfrom(WXMDeviceType.WXMNetworkDeviceBackendType instance)Fill a builder with attribute values from the providedcom.io7m.waxmill.machines.WXMDeviceType.WXMNetworkDeviceBackendTypeinstance.WXMVMNet.Builderfrom(WXMDeviceType.WXMVMNetType instance)Fill a builder with attribute values from the providedcom.io7m.waxmill.machines.WXMDeviceType.WXMVMNetTypeinstance.WXMVMNet.BuildersetAddress(WXMMACAddress address)Initializes the value for theaddressattribute.WXMVMNet.BuildersetComment(java.lang.String comment)Initializes the value for thecommentattribute.WXMVMNet.BuildersetName(WXMVMNetDeviceName name)Initializes the value for thenameattribute.
-
Method Details
-
from
Fill a builder with attribute values from the providedcom.io7m.waxmill.machines.WXMDeviceType.WXMVMNetTypeinstance.- 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 newWXMVMNet.- Returns:
- An immutable instance of WXMVMNet
- Throws:
java.lang.IllegalStateException- if any required attributes are missing
-