pub struct Builder { /* private fields */ }
Expand description

A builder for ReplaceRouteInput.

Implementations§

The IPv4 CIDR address block used for the destination match. The value that you provide must match the CIDR of an existing route in the table.

Examples found in repository?
src/client.rs (line 73807)
73806
73807
73808
73809
        pub fn destination_cidr_block(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.destination_cidr_block(input.into());
            self
        }

The IPv4 CIDR address block used for the destination match. The value that you provide must match the CIDR of an existing route in the table.

Examples found in repository?
src/client.rs (line 73815)
73811
73812
73813
73814
73815
73816
73817
        pub fn set_destination_cidr_block(
            mut self,
            input: std::option::Option<std::string::String>,
        ) -> Self {
            self.inner = self.inner.set_destination_cidr_block(input);
            self
        }

The IPv6 CIDR address block used for the destination match. The value that you provide must match the CIDR of an existing route in the table.

Examples found in repository?
src/client.rs (line 73823)
73819
73820
73821
73822
73823
73824
73825
        pub fn destination_ipv6_cidr_block(
            mut self,
            input: impl Into<std::string::String>,
        ) -> Self {
            self.inner = self.inner.destination_ipv6_cidr_block(input.into());
            self
        }

The IPv6 CIDR address block used for the destination match. The value that you provide must match the CIDR of an existing route in the table.

Examples found in repository?
src/client.rs (line 73831)
73827
73828
73829
73830
73831
73832
73833
        pub fn set_destination_ipv6_cidr_block(
            mut self,
            input: std::option::Option<std::string::String>,
        ) -> Self {
            self.inner = self.inner.set_destination_ipv6_cidr_block(input);
            self
        }

The ID of the prefix list for the route.

Examples found in repository?
src/client.rs (line 73836)
73835
73836
73837
73838
        pub fn destination_prefix_list_id(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.destination_prefix_list_id(input.into());
            self
        }

The ID of the prefix list for the route.

Examples found in repository?
src/client.rs (line 73844)
73840
73841
73842
73843
73844
73845
73846
        pub fn set_destination_prefix_list_id(
            mut self,
            input: std::option::Option<std::string::String>,
        ) -> Self {
            self.inner = self.inner.set_destination_prefix_list_id(input);
            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.

Examples found in repository?
src/client.rs (line 73849)
73848
73849
73850
73851
        pub fn dry_run(mut self, input: bool) -> Self {
            self.inner = self.inner.dry_run(input);
            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.

Examples found in repository?
src/client.rs (line 73854)
73853
73854
73855
73856
        pub fn set_dry_run(mut self, input: std::option::Option<bool>) -> Self {
            self.inner = self.inner.set_dry_run(input);
            self
        }

The ID of a VPC endpoint. Supported for Gateway Load Balancer endpoints only.

Examples found in repository?
src/client.rs (line 73859)
73858
73859
73860
73861
        pub fn vpc_endpoint_id(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.vpc_endpoint_id(input.into());
            self
        }

The ID of a VPC endpoint. Supported for Gateway Load Balancer endpoints only.

Examples found in repository?
src/client.rs (line 73867)
73863
73864
73865
73866
73867
73868
73869
        pub fn set_vpc_endpoint_id(
            mut self,
            input: std::option::Option<std::string::String>,
        ) -> Self {
            self.inner = self.inner.set_vpc_endpoint_id(input);
            self
        }

[IPv6 traffic only] The ID of an egress-only internet gateway.

Examples found in repository?
src/client.rs (line 73875)
73871
73872
73873
73874
73875
73876
73877
        pub fn egress_only_internet_gateway_id(
            mut self,
            input: impl Into<std::string::String>,
        ) -> Self {
            self.inner = self.inner.egress_only_internet_gateway_id(input.into());
            self
        }

[IPv6 traffic only] The ID of an egress-only internet gateway.

Examples found in repository?
src/client.rs (line 73883)
73879
73880
73881
73882
73883
73884
73885
        pub fn set_egress_only_internet_gateway_id(
            mut self,
            input: std::option::Option<std::string::String>,
        ) -> Self {
            self.inner = self.inner.set_egress_only_internet_gateway_id(input);
            self
        }

The ID of an internet gateway or virtual private gateway.

Examples found in repository?
src/client.rs (line 73888)
73887
73888
73889
73890
        pub fn gateway_id(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.gateway_id(input.into());
            self
        }

The ID of an internet gateway or virtual private gateway.

Examples found in repository?
src/client.rs (line 73893)
73892
73893
73894
73895
        pub fn set_gateway_id(mut self, input: std::option::Option<std::string::String>) -> Self {
            self.inner = self.inner.set_gateway_id(input);
            self
        }

The ID of a NAT instance in your VPC.

Examples found in repository?
src/client.rs (line 73898)
73897
73898
73899
73900
        pub fn instance_id(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.instance_id(input.into());
            self
        }

The ID of a NAT instance in your VPC.

Examples found in repository?
src/client.rs (line 73903)
73902
73903
73904
73905
        pub fn set_instance_id(mut self, input: std::option::Option<std::string::String>) -> Self {
            self.inner = self.inner.set_instance_id(input);
            self
        }

Specifies whether to reset the local route to its default target (local).

Examples found in repository?
src/client.rs (line 73908)
73907
73908
73909
73910
        pub fn local_target(mut self, input: bool) -> Self {
            self.inner = self.inner.local_target(input);
            self
        }

Specifies whether to reset the local route to its default target (local).

Examples found in repository?
src/client.rs (line 73913)
73912
73913
73914
73915
        pub fn set_local_target(mut self, input: std::option::Option<bool>) -> Self {
            self.inner = self.inner.set_local_target(input);
            self
        }

[IPv4 traffic only] The ID of a NAT gateway.

Examples found in repository?
src/client.rs (line 73918)
73917
73918
73919
73920
        pub fn nat_gateway_id(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.nat_gateway_id(input.into());
            self
        }

[IPv4 traffic only] The ID of a NAT gateway.

Examples found in repository?
src/client.rs (line 73926)
73922
73923
73924
73925
73926
73927
73928
        pub fn set_nat_gateway_id(
            mut self,
            input: std::option::Option<std::string::String>,
        ) -> Self {
            self.inner = self.inner.set_nat_gateway_id(input);
            self
        }

The ID of a transit gateway.

Examples found in repository?
src/client.rs (line 73931)
73930
73931
73932
73933
        pub fn transit_gateway_id(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.transit_gateway_id(input.into());
            self
        }

The ID of a transit gateway.

Examples found in repository?
src/client.rs (line 73939)
73935
73936
73937
73938
73939
73940
73941
        pub fn set_transit_gateway_id(
            mut self,
            input: std::option::Option<std::string::String>,
        ) -> Self {
            self.inner = self.inner.set_transit_gateway_id(input);
            self
        }

The ID of the local gateway.

Examples found in repository?
src/client.rs (line 73944)
73943
73944
73945
73946
        pub fn local_gateway_id(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.local_gateway_id(input.into());
            self
        }

The ID of the local gateway.

Examples found in repository?
src/client.rs (line 73952)
73948
73949
73950
73951
73952
73953
73954
        pub fn set_local_gateway_id(
            mut self,
            input: std::option::Option<std::string::String>,
        ) -> Self {
            self.inner = self.inner.set_local_gateway_id(input);
            self
        }

[IPv4 traffic only] The ID of a carrier gateway.

Examples found in repository?
src/client.rs (line 73957)
73956
73957
73958
73959
        pub fn carrier_gateway_id(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.carrier_gateway_id(input.into());
            self
        }

[IPv4 traffic only] The ID of a carrier gateway.

Examples found in repository?
src/client.rs (line 73965)
73961
73962
73963
73964
73965
73966
73967
        pub fn set_carrier_gateway_id(
            mut self,
            input: std::option::Option<std::string::String>,
        ) -> Self {
            self.inner = self.inner.set_carrier_gateway_id(input);
            self
        }

The ID of a network interface.

Examples found in repository?
src/client.rs (line 73970)
73969
73970
73971
73972
        pub fn network_interface_id(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.network_interface_id(input.into());
            self
        }

The ID of a network interface.

Examples found in repository?
src/client.rs (line 73978)
73974
73975
73976
73977
73978
73979
73980
        pub fn set_network_interface_id(
            mut self,
            input: std::option::Option<std::string::String>,
        ) -> Self {
            self.inner = self.inner.set_network_interface_id(input);
            self
        }

The ID of the route table.

Examples found in repository?
src/client.rs (line 73983)
73982
73983
73984
73985
        pub fn route_table_id(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.route_table_id(input.into());
            self
        }

The ID of the route table.

Examples found in repository?
src/client.rs (line 73991)
73987
73988
73989
73990
73991
73992
73993
        pub fn set_route_table_id(
            mut self,
            input: std::option::Option<std::string::String>,
        ) -> Self {
            self.inner = self.inner.set_route_table_id(input);
            self
        }

The ID of a VPC peering connection.

Examples found in repository?
src/client.rs (line 73996)
73995
73996
73997
73998
        pub fn vpc_peering_connection_id(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.vpc_peering_connection_id(input.into());
            self
        }

The ID of a VPC peering connection.

Examples found in repository?
src/client.rs (line 74004)
74000
74001
74002
74003
74004
74005
74006
        pub fn set_vpc_peering_connection_id(
            mut self,
            input: std::option::Option<std::string::String>,
        ) -> Self {
            self.inner = self.inner.set_vpc_peering_connection_id(input);
            self
        }

The Amazon Resource Name (ARN) of the core network.

Examples found in repository?
src/client.rs (line 74009)
74008
74009
74010
74011
        pub fn core_network_arn(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.core_network_arn(input.into());
            self
        }

The Amazon Resource Name (ARN) of the core network.

Examples found in repository?
src/client.rs (line 74017)
74013
74014
74015
74016
74017
74018
74019
        pub fn set_core_network_arn(
            mut self,
            input: std::option::Option<std::string::String>,
        ) -> Self {
            self.inner = self.inner.set_core_network_arn(input);
            self
        }

Consumes the builder and constructs a ReplaceRouteInput.

Examples found in repository?
src/client.rs (line 73774)
73762
73763
73764
73765
73766
73767
73768
73769
73770
73771
73772
73773
73774
73775
73776
73777
73778
73779
73780
73781
73782
73783
73784
73785
73786
73787
73788
73789
73790
73791
73792
73793
73794
73795
73796
73797
73798
73799
73800
73801
73802
73803
73804
        pub async fn customize(
            self,
        ) -> std::result::Result<
            crate::operation::customize::CustomizableOperation<
                crate::operation::ReplaceRoute,
                aws_http::retry::AwsResponseRetryClassifier,
            >,
            aws_smithy_http::result::SdkError<crate::error::ReplaceRouteError>,
        > {
            let handle = self.handle.clone();
            let operation = self
                .inner
                .build()
                .map_err(aws_smithy_http::result::SdkError::construction_failure)?
                .make_operation(&handle.conf)
                .await
                .map_err(aws_smithy_http::result::SdkError::construction_failure)?;
            Ok(crate::operation::customize::CustomizableOperation { handle, operation })
        }

        /// 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](aws_smithy_types::retry::RetryConfig), which can be
        /// set when configuring the client.
        pub async fn send(
            self,
        ) -> std::result::Result<
            crate::output::ReplaceRouteOutput,
            aws_smithy_http::result::SdkError<crate::error::ReplaceRouteError>,
        > {
            let op = self
                .inner
                .build()
                .map_err(aws_smithy_http::result::SdkError::construction_failure)?
                .make_operation(&self.handle.conf)
                .await
                .map_err(aws_smithy_http::result::SdkError::construction_failure)?;
            self.handle.client.call(op).await
        }

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more