Interface WeightedTarget
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
WeightedTarget.Jsii$Proxy
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2024-11-21T06:34:03.398Z")
@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 .port(123) .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()
default Number
getPort()
The port to match from the request.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. -
getPort
The port to match from the request.Default: - do not match on port
-
getWeight
The weight for the target.Default: 1
-
builder
- Returns:
- a
WeightedTarget.Builder
ofWeightedTarget
-