public static final class VersionWeight.Builder
extends java.lang.Object
VersionWeight
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
VersionWeight |
build()
Builds the configured instance.
|
VersionWeight.Builder |
version(IVersion version)
Sets the value of
VersionWeight.getVersion() |
VersionWeight.Builder |
weight(java.lang.Number weight)
Sets the value of
VersionWeight.getWeight() |
public VersionWeight.Builder version(IVersion version)
VersionWeight.getVersion()
version
- The version to route traffic to. This parameter is required.this
public VersionWeight.Builder weight(java.lang.Number weight)
VersionWeight.getWeight()
weight
- How much weight to assign to this version (0..1). This parameter is required.this
public VersionWeight build()
VersionWeight
java.lang.NullPointerException
- if any required attribute was not provided