Struct aws_sdk_ec2::operation::search_transit_gateway_routes::builders::SearchTransitGatewayRoutesFluentBuilder
source · pub struct SearchTransitGatewayRoutesFluentBuilder { /* private fields */ }Expand description
Fluent builder constructing a request to SearchTransitGatewayRoutes.
Searches for routes in the specified transit gateway route table.
Implementations§
source§impl SearchTransitGatewayRoutesFluentBuilder
impl SearchTransitGatewayRoutesFluentBuilder
sourcepub fn as_input(&self) -> &SearchTransitGatewayRoutesInputBuilder
pub fn as_input(&self) -> &SearchTransitGatewayRoutesInputBuilder
Access the SearchTransitGatewayRoutes as a reference.
sourcepub async fn send(
self
) -> Result<SearchTransitGatewayRoutesOutput, SdkError<SearchTransitGatewayRoutesError, HttpResponse>>
pub async fn send( self ) -> Result<SearchTransitGatewayRoutesOutput, SdkError<SearchTransitGatewayRoutesError, HttpResponse>>
Sends the request and returns the response.
If an error occurs, an SdkError will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn customize(
self
) -> CustomizableOperation<SearchTransitGatewayRoutesOutput, SearchTransitGatewayRoutesError, Self>
pub fn customize( self ) -> CustomizableOperation<SearchTransitGatewayRoutesOutput, SearchTransitGatewayRoutesError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn transit_gateway_route_table_id(self, input: impl Into<String>) -> Self
pub fn transit_gateway_route_table_id(self, input: impl Into<String>) -> Self
The ID of the transit gateway route table.
sourcepub fn set_transit_gateway_route_table_id(self, input: Option<String>) -> Self
pub fn set_transit_gateway_route_table_id(self, input: Option<String>) -> Self
The ID of the transit gateway route table.
sourcepub fn get_transit_gateway_route_table_id(&self) -> &Option<String>
pub fn get_transit_gateway_route_table_id(&self) -> &Option<String>
The ID of the transit gateway route table.
sourcepub fn filters(self, input: Filter) -> Self
pub fn filters(self, input: Filter) -> Self
Appends an item to Filters.
To override the contents of this collection use set_filters.
One or more filters. The possible values are:
-
attachment.transit-gateway-attachment-id- The id of the transit gateway attachment. -
attachment.resource-id- The resource id of the transit gateway attachment. -
attachment.resource-type- The attachment resource type. Valid values arevpc|vpn|direct-connect-gateway|peering|connect. -
prefix-list-id- The ID of the prefix list. -
route-search.exact-match- The exact match of the specified filter. -
route-search.longest-prefix-match- The longest prefix that matches the route. -
route-search.subnet-of-match- The routes with a subnet that match the specified CIDR filter. -
route-search.supernet-of-match- The routes with a CIDR that encompass the CIDR filter. For example, if you have 10.0.1.0/29 and 10.0.1.0/31 routes in your route table and you specify supernet-of-match as 10.0.1.0/30, then the result returns 10.0.1.0/29. -
state- The state of the route (active|blackhole). -
type- The type of route (propagated|static).
sourcepub fn set_filters(self, input: Option<Vec<Filter>>) -> Self
pub fn set_filters(self, input: Option<Vec<Filter>>) -> Self
One or more filters. The possible values are:
-
attachment.transit-gateway-attachment-id- The id of the transit gateway attachment. -
attachment.resource-id- The resource id of the transit gateway attachment. -
attachment.resource-type- The attachment resource type. Valid values arevpc|vpn|direct-connect-gateway|peering|connect. -
prefix-list-id- The ID of the prefix list. -
route-search.exact-match- The exact match of the specified filter. -
route-search.longest-prefix-match- The longest prefix that matches the route. -
route-search.subnet-of-match- The routes with a subnet that match the specified CIDR filter. -
route-search.supernet-of-match- The routes with a CIDR that encompass the CIDR filter. For example, if you have 10.0.1.0/29 and 10.0.1.0/31 routes in your route table and you specify supernet-of-match as 10.0.1.0/30, then the result returns 10.0.1.0/29. -
state- The state of the route (active|blackhole). -
type- The type of route (propagated|static).
sourcepub fn get_filters(&self) -> &Option<Vec<Filter>>
pub fn get_filters(&self) -> &Option<Vec<Filter>>
One or more filters. The possible values are:
-
attachment.transit-gateway-attachment-id- The id of the transit gateway attachment. -
attachment.resource-id- The resource id of the transit gateway attachment. -
attachment.resource-type- The attachment resource type. Valid values arevpc|vpn|direct-connect-gateway|peering|connect. -
prefix-list-id- The ID of the prefix list. -
route-search.exact-match- The exact match of the specified filter. -
route-search.longest-prefix-match- The longest prefix that matches the route. -
route-search.subnet-of-match- The routes with a subnet that match the specified CIDR filter. -
route-search.supernet-of-match- The routes with a CIDR that encompass the CIDR filter. For example, if you have 10.0.1.0/29 and 10.0.1.0/31 routes in your route table and you specify supernet-of-match as 10.0.1.0/30, then the result returns 10.0.1.0/29. -
state- The state of the route (active|blackhole). -
type- The type of route (propagated|static).
sourcepub fn max_results(self, input: i32) -> Self
pub fn max_results(self, input: i32) -> Self
The maximum number of routes to return. If a value is not provided, the default is 1000.
sourcepub fn set_max_results(self, input: Option<i32>) -> Self
pub fn set_max_results(self, input: Option<i32>) -> Self
The maximum number of routes to return. If a value is not provided, the default is 1000.
sourcepub fn get_max_results(&self) -> &Option<i32>
pub fn get_max_results(&self) -> &Option<i32>
The maximum number of routes to return. If a value is not provided, the default is 1000.
sourcepub fn dry_run(self, input: bool) -> Self
pub fn dry_run(self, input: bool) -> Self
Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
sourcepub fn set_dry_run(self, input: Option<bool>) -> Self
pub fn set_dry_run(self, input: Option<bool>) -> Self
Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
sourcepub fn get_dry_run(&self) -> &Option<bool>
pub fn get_dry_run(&self) -> &Option<bool>
Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
Trait Implementations§
source§impl Clone for SearchTransitGatewayRoutesFluentBuilder
impl Clone for SearchTransitGatewayRoutesFluentBuilder
source§fn clone(&self) -> SearchTransitGatewayRoutesFluentBuilder
fn clone(&self) -> SearchTransitGatewayRoutesFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for SearchTransitGatewayRoutesFluentBuilder
impl !RefUnwindSafe for SearchTransitGatewayRoutesFluentBuilder
impl Send for SearchTransitGatewayRoutesFluentBuilder
impl Sync for SearchTransitGatewayRoutesFluentBuilder
impl Unpin for SearchTransitGatewayRoutesFluentBuilder
impl !UnwindSafe for SearchTransitGatewayRoutesFluentBuilder
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