@Generated(value="jsii-pacmak/1.57.0 (build f614666)", date="2022-04-22T22:36:19.794Z") @Stability(value=Stable) public interface WeightedTarget extends software.amazon.jsii.JsiiSerializable
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.appmesh.*;
VirtualNode virtualNode;
WeightedTarget weightedTarget = WeightedTarget.builder()
.virtualNode(virtualNode)
// the properties below are optional
.weight(123)
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
WeightedTarget.Builder
A builder for
WeightedTarget |
static class |
WeightedTarget.Jsii$Proxy
An implementation for
WeightedTarget |
| Modifier and Type | Method and Description |
|---|---|
static WeightedTarget.Builder |
builder() |
IVirtualNode |
getVirtualNode()
The VirtualNode the route points to.
|
default Number |
getWeight()
The weight for the target.
|
@Stability(value=Stable) @NotNull IVirtualNode getVirtualNode()
@Stability(value=Stable) @Nullable default Number getWeight()
Default: 1
@Stability(value=Stable) static WeightedTarget.Builder builder()
WeightedTarget.Builder of WeightedTargetCopyright © 2022. All rights reserved.