public static final class AliasProps.Builder extends Object
AliasProps| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
AliasProps |
build()
Builds the configured instance.
|
AliasProps.Builder |
withAdditionalVersions(List<VersionWeight> value)
Sets the value of AdditionalVersions
|
AliasProps.Builder |
withAliasName(String value)
Sets the value of AliasName
|
AliasProps.Builder |
withDescription(String value)
Sets the value of Description
|
AliasProps.Builder |
withVersion(FunctionVersion value)
Sets the value of Version
|
public AliasProps.Builder withAliasName(String value)
value - Name of this aliasthispublic AliasProps.Builder withVersion(FunctionVersion value)
value - Function version this alias refers to
Use lambda.addVersion() to obtain a new lambda version to refer to.thispublic AliasProps.Builder withAdditionalVersions(@Nullable List<VersionWeight> value)
value - Additional versions with individual weights this alias points to
Individual additional version weights specified here should add up to
(less than) one. All remaining weight is routed to the default
version.
For example, the config is
version: "1"
additionalVersions: [{ version: "2", weight: 0.05 }]
Then 5% of traffic will be routed to function version 2, while
the remaining 95% of traffic will be routed to function version 1.thispublic AliasProps.Builder withDescription(@Nullable String value)
value - Description for the aliasthispublic AliasProps build()
AliasPropsNullPointerException - if any required attribute was not providedCopyright © 2018. All rights reserved.