Struct aws_sdk_appmesh::types::builders::HttpRouteMatchBuilder
source · #[non_exhaustive]pub struct HttpRouteMatchBuilder { /* private fields */ }Expand description
A builder for HttpRouteMatch.
Implementations§
source§impl HttpRouteMatchBuilder
impl HttpRouteMatchBuilder
sourcepub fn prefix(self, input: impl Into<String>) -> Self
pub fn prefix(self, input: impl Into<String>) -> Self
Specifies the path to match requests with. This parameter must always start with /, which by itself matches all requests to the virtual service name. You can also match for path-based routing of requests. For example, if your virtual service name is my-service.local and you want the route to match requests to my-service.local/metrics, your prefix should be /metrics.
sourcepub fn set_prefix(self, input: Option<String>) -> Self
pub fn set_prefix(self, input: Option<String>) -> Self
Specifies the path to match requests with. This parameter must always start with /, which by itself matches all requests to the virtual service name. You can also match for path-based routing of requests. For example, if your virtual service name is my-service.local and you want the route to match requests to my-service.local/metrics, your prefix should be /metrics.
sourcepub fn get_prefix(&self) -> &Option<String>
pub fn get_prefix(&self) -> &Option<String>
Specifies the path to match requests with. This parameter must always start with /, which by itself matches all requests to the virtual service name. You can also match for path-based routing of requests. For example, if your virtual service name is my-service.local and you want the route to match requests to my-service.local/metrics, your prefix should be /metrics.
sourcepub fn path(self, input: HttpPathMatch) -> Self
pub fn path(self, input: HttpPathMatch) -> Self
The client request path to match on.
sourcepub fn set_path(self, input: Option<HttpPathMatch>) -> Self
pub fn set_path(self, input: Option<HttpPathMatch>) -> Self
The client request path to match on.
sourcepub fn get_path(&self) -> &Option<HttpPathMatch>
pub fn get_path(&self) -> &Option<HttpPathMatch>
The client request path to match on.
sourcepub fn query_parameters(self, input: HttpQueryParameter) -> Self
pub fn query_parameters(self, input: HttpQueryParameter) -> Self
Appends an item to query_parameters.
To override the contents of this collection use set_query_parameters.
The client request query parameters to match on.
sourcepub fn set_query_parameters(
self,
input: Option<Vec<HttpQueryParameter>>,
) -> Self
pub fn set_query_parameters( self, input: Option<Vec<HttpQueryParameter>>, ) -> Self
The client request query parameters to match on.
sourcepub fn get_query_parameters(&self) -> &Option<Vec<HttpQueryParameter>>
pub fn get_query_parameters(&self) -> &Option<Vec<HttpQueryParameter>>
The client request query parameters to match on.
sourcepub fn method(self, input: HttpMethod) -> Self
pub fn method(self, input: HttpMethod) -> Self
The client request method to match on. Specify only one.
sourcepub fn set_method(self, input: Option<HttpMethod>) -> Self
pub fn set_method(self, input: Option<HttpMethod>) -> Self
The client request method to match on. Specify only one.
sourcepub fn get_method(&self) -> &Option<HttpMethod>
pub fn get_method(&self) -> &Option<HttpMethod>
The client request method to match on. Specify only one.
sourcepub fn scheme(self, input: HttpScheme) -> Self
pub fn scheme(self, input: HttpScheme) -> Self
The client request scheme to match on. Specify only one. Applicable only for HTTP2 routes.
sourcepub fn set_scheme(self, input: Option<HttpScheme>) -> Self
pub fn set_scheme(self, input: Option<HttpScheme>) -> Self
The client request scheme to match on. Specify only one. Applicable only for HTTP2 routes.
sourcepub fn get_scheme(&self) -> &Option<HttpScheme>
pub fn get_scheme(&self) -> &Option<HttpScheme>
The client request scheme to match on. Specify only one. Applicable only for HTTP2 routes.
sourcepub fn headers(self, input: HttpRouteHeader) -> Self
pub fn headers(self, input: HttpRouteHeader) -> Self
Appends an item to headers.
To override the contents of this collection use set_headers.
The client request headers to match on.
sourcepub fn set_headers(self, input: Option<Vec<HttpRouteHeader>>) -> Self
pub fn set_headers(self, input: Option<Vec<HttpRouteHeader>>) -> Self
The client request headers to match on.
sourcepub fn get_headers(&self) -> &Option<Vec<HttpRouteHeader>>
pub fn get_headers(&self) -> &Option<Vec<HttpRouteHeader>>
The client request headers to match on.
sourcepub fn build(self) -> HttpRouteMatch
pub fn build(self) -> HttpRouteMatch
Consumes the builder and constructs a HttpRouteMatch.
Trait Implementations§
source§impl Clone for HttpRouteMatchBuilder
impl Clone for HttpRouteMatchBuilder
source§fn clone(&self) -> HttpRouteMatchBuilder
fn clone(&self) -> HttpRouteMatchBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for HttpRouteMatchBuilder
impl Debug for HttpRouteMatchBuilder
source§impl Default for HttpRouteMatchBuilder
impl Default for HttpRouteMatchBuilder
source§fn default() -> HttpRouteMatchBuilder
fn default() -> HttpRouteMatchBuilder
source§impl PartialEq for HttpRouteMatchBuilder
impl PartialEq for HttpRouteMatchBuilder
impl StructuralPartialEq for HttpRouteMatchBuilder
Auto Trait Implementations§
impl Freeze for HttpRouteMatchBuilder
impl RefUnwindSafe for HttpRouteMatchBuilder
impl Send for HttpRouteMatchBuilder
impl Sync for HttpRouteMatchBuilder
impl Unpin for HttpRouteMatchBuilder
impl UnwindSafe for HttpRouteMatchBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more