Struct aws_sdk_appmesh::model::grpc_route_action::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for GrpcRouteAction
.
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) -> GrpcRouteAction
pub fn build(self) -> GrpcRouteAction
Consumes the builder and constructs a GrpcRouteAction
.