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
Modifier and TypeInterfaceDescriptionstatic final class
A builder forWeightedTarget
static final class
An implementation forWeightedTarget
-
Method Summary
Modifier and TypeMethodDescriptionstatic WeightedTarget.Builder
builder()
The VirtualNode the route points to.default Number
The 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.Builder
ofWeightedTarget
-