Struct aws_sdk_appmesh::model::http_gateway_route_header::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for HttpGatewayRouteHeader
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
A name for the HTTP header in the gateway route that will be matched on.
sourcepub fn set_name(self, input: Option<String>) -> Self
pub fn set_name(self, input: Option<String>) -> Self
A name for the HTTP header in the gateway route that will be matched on.
sourcepub fn invert(self, input: bool) -> Self
pub fn invert(self, input: bool) -> Self
Specify True
to match anything except the match criteria. The default value is False
.
sourcepub fn set_invert(self, input: Option<bool>) -> Self
pub fn set_invert(self, input: Option<bool>) -> Self
Specify True
to match anything except the match criteria. The default value is False
.
sourcepub fn match(self, input: HeaderMatchMethod) -> Self
pub fn match(self, input: HeaderMatchMethod) -> Self
An object that represents the method and value to match with the header value sent in a request. Specify one match method.
sourcepub fn set_match(self, input: Option<HeaderMatchMethod>) -> Self
pub fn set_match(self, input: Option<HeaderMatchMethod>) -> Self
An object that represents the method and value to match with the header value sent in a request. Specify one match method.
sourcepub fn build(self) -> HttpGatewayRouteHeader
pub fn build(self) -> HttpGatewayRouteHeader
Consumes the builder and constructs a HttpGatewayRouteHeader
.