Struct aws_sdk_appmesh::types::builders::GrpcRouteMetadataBuilder
source · #[non_exhaustive]pub struct GrpcRouteMetadataBuilder { /* private fields */ }
Expand description
A builder for GrpcRouteMetadata
.
Implementations§
source§impl GrpcRouteMetadataBuilder
impl GrpcRouteMetadataBuilder
sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
The name of the route.
This field is required.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 get_invert(&self) -> &Option<bool>
pub fn get_invert(&self) -> &Option<bool>
Specify True
to match anything except the match criteria. The default value is False
.
sourcepub fn match(self, input: GrpcRouteMetadataMatchMethod) -> Self
pub fn match(self, input: GrpcRouteMetadataMatchMethod) -> Self
An object that represents the data to match from the request.
sourcepub fn set_match(self, input: Option<GrpcRouteMetadataMatchMethod>) -> Self
pub fn set_match(self, input: Option<GrpcRouteMetadataMatchMethod>) -> Self
An object that represents the data to match from the request.
sourcepub fn get_match(&self) -> &Option<GrpcRouteMetadataMatchMethod>
pub fn get_match(&self) -> &Option<GrpcRouteMetadataMatchMethod>
An object that represents the data to match from the request.
sourcepub fn build(self) -> Result<GrpcRouteMetadata, BuildError>
pub fn build(self) -> Result<GrpcRouteMetadata, BuildError>
Consumes the builder and constructs a GrpcRouteMetadata
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for GrpcRouteMetadataBuilder
impl Clone for GrpcRouteMetadataBuilder
source§fn clone(&self) -> GrpcRouteMetadataBuilder
fn clone(&self) -> GrpcRouteMetadataBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for GrpcRouteMetadataBuilder
impl Debug for GrpcRouteMetadataBuilder
source§impl Default for GrpcRouteMetadataBuilder
impl Default for GrpcRouteMetadataBuilder
source§fn default() -> GrpcRouteMetadataBuilder
fn default() -> GrpcRouteMetadataBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for GrpcRouteMetadataBuilder
impl PartialEq for GrpcRouteMetadataBuilder
source§fn eq(&self, other: &GrpcRouteMetadataBuilder) -> bool
fn eq(&self, other: &GrpcRouteMetadataBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for GrpcRouteMetadataBuilder
Auto Trait Implementations§
impl Freeze for GrpcRouteMetadataBuilder
impl RefUnwindSafe for GrpcRouteMetadataBuilder
impl Send for GrpcRouteMetadataBuilder
impl Sync for GrpcRouteMetadataBuilder
impl Unpin for GrpcRouteMetadataBuilder
impl UnwindSafe for GrpcRouteMetadataBuilder
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
Mutably borrows from an owned value. Read more
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>
Converts
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>
Converts
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 moreCreates a shared type from an unshared type.