Struct aws_sdk_appmesh::model::http_route_header::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for HttpRouteHeader
.
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 client request 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 client request 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
The HeaderMatchMethod
object.
sourcepub fn set_match(self, input: Option<HeaderMatchMethod>) -> Self
pub fn set_match(self, input: Option<HeaderMatchMethod>) -> Self
The HeaderMatchMethod
object.
sourcepub fn build(self) -> HttpRouteHeader
pub fn build(self) -> HttpRouteHeader
Consumes the builder and constructs a HttpRouteHeader
.