#[non_exhaustive]pub struct RouteAnalysisCompletionBuilder { /* private fields */ }
Expand description
A builder for RouteAnalysisCompletion
.
Implementations§
source§impl RouteAnalysisCompletionBuilder
impl RouteAnalysisCompletionBuilder
sourcepub fn result_code(self, input: RouteAnalysisCompletionResultCode) -> Self
pub fn result_code(self, input: RouteAnalysisCompletionResultCode) -> Self
The result of the analysis. If the status is NOT_CONNECTED
, check the reason code.
sourcepub fn set_result_code(
self,
input: Option<RouteAnalysisCompletionResultCode>
) -> Self
pub fn set_result_code( self, input: Option<RouteAnalysisCompletionResultCode> ) -> Self
The result of the analysis. If the status is NOT_CONNECTED
, check the reason code.
sourcepub fn get_result_code(&self) -> &Option<RouteAnalysisCompletionResultCode>
pub fn get_result_code(&self) -> &Option<RouteAnalysisCompletionResultCode>
The result of the analysis. If the status is NOT_CONNECTED
, check the reason code.
sourcepub fn reason_code(self, input: RouteAnalysisCompletionReasonCode) -> Self
pub fn reason_code(self, input: RouteAnalysisCompletionReasonCode) -> Self
The reason code. Available only if a connection is not found.
-
BLACKHOLE_ROUTE_FOR_DESTINATION_FOUND
- Found a black hole route with the destination CIDR block. -
CYCLIC_PATH_DETECTED
- Found the same resource multiple times while traversing the path. -
INACTIVE_ROUTE_FOR_DESTINATION_FOUND
- Found an inactive route with the destination CIDR block. -
MAX_HOPS_EXCEEDED
- Analysis exceeded 64 hops without finding the destination. -
ROUTE_NOT_FOUND
- Cannot find a route table with the destination CIDR block. -
TGW_ATTACH_ARN_NO_MATCH
- Found an attachment, but not with the correct destination ARN. -
TGW_ATTACH_NOT_FOUND
- Cannot find an attachment. -
TGW_ATTACH_NOT_IN_TGW
- Found an attachment, but not to the correct transit gateway. -
TGW_ATTACH_STABLE_ROUTE_TABLE_NOT_FOUND
- The state of the route table association is not associated.
sourcepub fn set_reason_code(
self,
input: Option<RouteAnalysisCompletionReasonCode>
) -> Self
pub fn set_reason_code( self, input: Option<RouteAnalysisCompletionReasonCode> ) -> Self
The reason code. Available only if a connection is not found.
-
BLACKHOLE_ROUTE_FOR_DESTINATION_FOUND
- Found a black hole route with the destination CIDR block. -
CYCLIC_PATH_DETECTED
- Found the same resource multiple times while traversing the path. -
INACTIVE_ROUTE_FOR_DESTINATION_FOUND
- Found an inactive route with the destination CIDR block. -
MAX_HOPS_EXCEEDED
- Analysis exceeded 64 hops without finding the destination. -
ROUTE_NOT_FOUND
- Cannot find a route table with the destination CIDR block. -
TGW_ATTACH_ARN_NO_MATCH
- Found an attachment, but not with the correct destination ARN. -
TGW_ATTACH_NOT_FOUND
- Cannot find an attachment. -
TGW_ATTACH_NOT_IN_TGW
- Found an attachment, but not to the correct transit gateway. -
TGW_ATTACH_STABLE_ROUTE_TABLE_NOT_FOUND
- The state of the route table association is not associated.
sourcepub fn get_reason_code(&self) -> &Option<RouteAnalysisCompletionReasonCode>
pub fn get_reason_code(&self) -> &Option<RouteAnalysisCompletionReasonCode>
The reason code. Available only if a connection is not found.
-
BLACKHOLE_ROUTE_FOR_DESTINATION_FOUND
- Found a black hole route with the destination CIDR block. -
CYCLIC_PATH_DETECTED
- Found the same resource multiple times while traversing the path. -
INACTIVE_ROUTE_FOR_DESTINATION_FOUND
- Found an inactive route with the destination CIDR block. -
MAX_HOPS_EXCEEDED
- Analysis exceeded 64 hops without finding the destination. -
ROUTE_NOT_FOUND
- Cannot find a route table with the destination CIDR block. -
TGW_ATTACH_ARN_NO_MATCH
- Found an attachment, but not with the correct destination ARN. -
TGW_ATTACH_NOT_FOUND
- Cannot find an attachment. -
TGW_ATTACH_NOT_IN_TGW
- Found an attachment, but not to the correct transit gateway. -
TGW_ATTACH_STABLE_ROUTE_TABLE_NOT_FOUND
- The state of the route table association is not associated.
sourcepub fn reason_context(self, k: impl Into<String>, v: impl Into<String>) -> Self
pub fn reason_context(self, k: impl Into<String>, v: impl Into<String>) -> Self
Adds a key-value pair to reason_context
.
To override the contents of this collection use set_reason_context
.
Additional information about the path. Available only if a connection is not found.
sourcepub fn set_reason_context(self, input: Option<HashMap<String, String>>) -> Self
pub fn set_reason_context(self, input: Option<HashMap<String, String>>) -> Self
Additional information about the path. Available only if a connection is not found.
sourcepub fn get_reason_context(&self) -> &Option<HashMap<String, String>>
pub fn get_reason_context(&self) -> &Option<HashMap<String, String>>
Additional information about the path. Available only if a connection is not found.
sourcepub fn build(self) -> RouteAnalysisCompletion
pub fn build(self) -> RouteAnalysisCompletion
Consumes the builder and constructs a RouteAnalysisCompletion
.
Trait Implementations§
source§impl Clone for RouteAnalysisCompletionBuilder
impl Clone for RouteAnalysisCompletionBuilder
source§fn clone(&self) -> RouteAnalysisCompletionBuilder
fn clone(&self) -> RouteAnalysisCompletionBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for RouteAnalysisCompletionBuilder
impl Default for RouteAnalysisCompletionBuilder
source§fn default() -> RouteAnalysisCompletionBuilder
fn default() -> RouteAnalysisCompletionBuilder
source§impl PartialEq for RouteAnalysisCompletionBuilder
impl PartialEq for RouteAnalysisCompletionBuilder
source§fn eq(&self, other: &RouteAnalysisCompletionBuilder) -> bool
fn eq(&self, other: &RouteAnalysisCompletionBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for RouteAnalysisCompletionBuilder
Auto Trait Implementations§
impl Freeze for RouteAnalysisCompletionBuilder
impl RefUnwindSafe for RouteAnalysisCompletionBuilder
impl Send for RouteAnalysisCompletionBuilder
impl Sync for RouteAnalysisCompletionBuilder
impl Unpin for RouteAnalysisCompletionBuilder
impl UnwindSafe for RouteAnalysisCompletionBuilder
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> 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