Interface WeightedTarget
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
WeightedTarget.Jsii$Proxy
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:46.207Z")
@Stability(Stable)
public interface WeightedTarget
extends software.amazon.jsii.JsiiSerializable
Properties for the Weighted Targets in the route.
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();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forWeightedTargetstatic final classAn implementation forWeightedTarget -
Method Summary
Modifier and TypeMethodDescriptionstatic WeightedTarget.Builderbuilder()The VirtualNode the route points to.default NumberThe weight for the target.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getVirtualNode
The VirtualNode the route points to. -
getWeight
The weight for the target.Default: 1
-
builder
- Returns:
- a
WeightedTarget.BuilderofWeightedTarget
-