public static final class VersionWeight.Builder extends Object
VersionWeight| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
VersionWeight |
build()
Builds the configured instance.
|
VersionWeight.Builder |
withVersion(Version value)
Sets the value of Version
|
VersionWeight.Builder |
withWeight(Number value)
Sets the value of Weight
|
public VersionWeight.Builder withVersion(Version value)
value - The version to route traffic to.thispublic VersionWeight.Builder withWeight(Number value)
value - How much weight to assign to this version (0..1).thispublic VersionWeight build()
VersionWeightNullPointerException - if any required attribute was not providedCopyright © 2019. All rights reserved.