Struct aws_sdk_ec2::operation::search_transit_gateway_routes::builders::SearchTransitGatewayRoutesInputBuilder
source · #[non_exhaustive]pub struct SearchTransitGatewayRoutesInputBuilder { /* private fields */ }Expand description
A builder for SearchTransitGatewayRoutesInput.
Implementations§
source§impl SearchTransitGatewayRoutesInputBuilder
impl SearchTransitGatewayRoutesInputBuilder
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.
This field is required.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.
sourcepub fn build(self) -> Result<SearchTransitGatewayRoutesInput, BuildError>
pub fn build(self) -> Result<SearchTransitGatewayRoutesInput, BuildError>
Consumes the builder and constructs a SearchTransitGatewayRoutesInput.
source§impl SearchTransitGatewayRoutesInputBuilder
impl SearchTransitGatewayRoutesInputBuilder
sourcepub async fn send_with(
self,
client: &Client,
) -> Result<SearchTransitGatewayRoutesOutput, SdkError<SearchTransitGatewayRoutesError, HttpResponse>>
pub async fn send_with( self, client: &Client, ) -> Result<SearchTransitGatewayRoutesOutput, SdkError<SearchTransitGatewayRoutesError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for SearchTransitGatewayRoutesInputBuilder
impl Clone for SearchTransitGatewayRoutesInputBuilder
source§fn clone(&self) -> SearchTransitGatewayRoutesInputBuilder
fn clone(&self) -> SearchTransitGatewayRoutesInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for SearchTransitGatewayRoutesInputBuilder
impl Default for SearchTransitGatewayRoutesInputBuilder
source§fn default() -> SearchTransitGatewayRoutesInputBuilder
fn default() -> SearchTransitGatewayRoutesInputBuilder
source§impl PartialEq for SearchTransitGatewayRoutesInputBuilder
impl PartialEq for SearchTransitGatewayRoutesInputBuilder
source§fn eq(&self, other: &SearchTransitGatewayRoutesInputBuilder) -> bool
fn eq(&self, other: &SearchTransitGatewayRoutesInputBuilder) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SearchTransitGatewayRoutesInputBuilder
Auto Trait Implementations§
impl Freeze for SearchTransitGatewayRoutesInputBuilder
impl RefUnwindSafe for SearchTransitGatewayRoutesInputBuilder
impl Send for SearchTransitGatewayRoutesInputBuilder
impl Sync for SearchTransitGatewayRoutesInputBuilder
impl Unpin for SearchTransitGatewayRoutesInputBuilder
impl UnwindSafe for SearchTransitGatewayRoutesInputBuilder
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default 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