Struct aws_sdk_appmesh::model::tcp_route_action::Builder
source · pub struct Builder { /* private fields */ }Expand description
A builder for TcpRouteAction.
Implementations§
source§impl Builder
impl Builder
sourcepub fn weighted_targets(self, input: WeightedTarget) -> Self
pub fn weighted_targets(self, input: WeightedTarget) -> Self
Appends an item to weighted_targets.
To override the contents of this collection use set_weighted_targets.
An object that represents the targets that traffic is routed to when a request matches the route.
sourcepub fn set_weighted_targets(self, input: Option<Vec<WeightedTarget>>) -> Self
pub fn set_weighted_targets(self, input: Option<Vec<WeightedTarget>>) -> Self
An object that represents the targets that traffic is routed to when a request matches the route.
sourcepub fn build(self) -> TcpRouteAction
pub fn build(self) -> TcpRouteAction
Consumes the builder and constructs a TcpRouteAction.