public static final class WeightedTarget.Builder
extends java.lang.Object
WeightedTarget
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
WeightedTarget |
build()
Builds the configured instance.
|
WeightedTarget.Builder |
virtualNode(IVirtualNode virtualNode)
Sets the value of
WeightedTarget.getVirtualNode() |
WeightedTarget.Builder |
weight(java.lang.Number weight)
Sets the value of
WeightedTarget.getWeight() |
public WeightedTarget.Builder virtualNode(IVirtualNode virtualNode)
WeightedTarget.getVirtualNode()
virtualNode
- The VirtualNode the route points to. This parameter is required.this
public WeightedTarget.Builder weight(java.lang.Number weight)
WeightedTarget.getWeight()
weight
- The weight for the target.this
public WeightedTarget build()
WeightedTarget
java.lang.NullPointerException
- if any required attribute was not provided