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(FunctionVersion value)
Sets the value of Version
|
VersionWeight.Builder |
withWeight(Number value)
Sets the value of Weight
|
public VersionWeight.Builder withVersion(FunctionVersion value)
value - The version to route traffic tothispublic 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 © 2018. All rights reserved.