Struct aws_sdk_appmesh::model::grpc_route_match::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for GrpcRouteMatch
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn service_name(self, input: impl Into<String>) -> Self
pub fn service_name(self, input: impl Into<String>) -> Self
The fully qualified domain name for the service to match from the request.
sourcepub fn set_service_name(self, input: Option<String>) -> Self
pub fn set_service_name(self, input: Option<String>) -> Self
The fully qualified domain name for the service to match from the request.
sourcepub fn method_name(self, input: impl Into<String>) -> Self
pub fn method_name(self, input: impl Into<String>) -> Self
The method name to match from the request. If you specify a name, you must also specify a serviceName
.
sourcepub fn set_method_name(self, input: Option<String>) -> Self
pub fn set_method_name(self, input: Option<String>) -> Self
The method name to match from the request. If you specify a name, you must also specify a serviceName
.
sourcepub fn metadata(self, input: GrpcRouteMetadata) -> Self
pub fn metadata(self, input: GrpcRouteMetadata) -> Self
Appends an item to metadata
.
To override the contents of this collection use set_metadata
.
An object that represents the data to match from the request.
sourcepub fn set_metadata(self, input: Option<Vec<GrpcRouteMetadata>>) -> Self
pub fn set_metadata(self, input: Option<Vec<GrpcRouteMetadata>>) -> Self
An object that represents the data to match from the request.
sourcepub fn build(self) -> GrpcRouteMatch
pub fn build(self) -> GrpcRouteMatch
Consumes the builder and constructs a GrpcRouteMatch
.