Struct aws_sdk_ec2::model::route::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for Route
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn destination_cidr_block(self, input: impl Into<String>) -> Self
pub fn destination_cidr_block(self, input: impl Into<String>) -> Self
The IPv4 CIDR block used for the destination match.
sourcepub fn set_destination_cidr_block(self, input: Option<String>) -> Self
pub fn set_destination_cidr_block(self, input: Option<String>) -> Self
The IPv4 CIDR block used for the destination match.
sourcepub fn destination_ipv6_cidr_block(self, input: impl Into<String>) -> Self
pub fn destination_ipv6_cidr_block(self, input: impl Into<String>) -> Self
The IPv6 CIDR block used for the destination match.
sourcepub fn set_destination_ipv6_cidr_block(self, input: Option<String>) -> Self
pub fn set_destination_ipv6_cidr_block(self, input: Option<String>) -> Self
The IPv6 CIDR block used for the destination match.
sourcepub fn destination_prefix_list_id(self, input: impl Into<String>) -> Self
pub fn destination_prefix_list_id(self, input: impl Into<String>) -> Self
The prefix of the Amazon Web Service.
sourcepub fn set_destination_prefix_list_id(self, input: Option<String>) -> Self
pub fn set_destination_prefix_list_id(self, input: Option<String>) -> Self
The prefix of the Amazon Web Service.
sourcepub fn egress_only_internet_gateway_id(self, input: impl Into<String>) -> Self
pub fn egress_only_internet_gateway_id(self, input: impl Into<String>) -> Self
The ID of the egress-only internet gateway.
sourcepub fn set_egress_only_internet_gateway_id(self, input: Option<String>) -> Self
pub fn set_egress_only_internet_gateway_id(self, input: Option<String>) -> Self
The ID of the egress-only internet gateway.
sourcepub fn gateway_id(self, input: impl Into<String>) -> Self
pub fn gateway_id(self, input: impl Into<String>) -> Self
The ID of a gateway attached to your VPC.
sourcepub fn set_gateway_id(self, input: Option<String>) -> Self
pub fn set_gateway_id(self, input: Option<String>) -> Self
The ID of a gateway attached to your VPC.
sourcepub fn instance_id(self, input: impl Into<String>) -> Self
pub fn instance_id(self, input: impl Into<String>) -> Self
The ID of a NAT instance in your VPC.
sourcepub fn set_instance_id(self, input: Option<String>) -> Self
pub fn set_instance_id(self, input: Option<String>) -> Self
The ID of a NAT instance in your VPC.
sourcepub fn instance_owner_id(self, input: impl Into<String>) -> Self
pub fn instance_owner_id(self, input: impl Into<String>) -> Self
The ID of Amazon Web Services account that owns the instance.
sourcepub fn set_instance_owner_id(self, input: Option<String>) -> Self
pub fn set_instance_owner_id(self, input: Option<String>) -> Self
The ID of Amazon Web Services account that owns the instance.
sourcepub fn nat_gateway_id(self, input: impl Into<String>) -> Self
pub fn nat_gateway_id(self, input: impl Into<String>) -> Self
The ID of a NAT gateway.
sourcepub fn set_nat_gateway_id(self, input: Option<String>) -> Self
pub fn set_nat_gateway_id(self, input: Option<String>) -> Self
The ID of a NAT gateway.
sourcepub fn transit_gateway_id(self, input: impl Into<String>) -> Self
pub fn transit_gateway_id(self, input: impl Into<String>) -> Self
The ID of a transit gateway.
sourcepub fn set_transit_gateway_id(self, input: Option<String>) -> Self
pub fn set_transit_gateway_id(self, input: Option<String>) -> Self
The ID of a transit gateway.
sourcepub fn local_gateway_id(self, input: impl Into<String>) -> Self
pub fn local_gateway_id(self, input: impl Into<String>) -> Self
The ID of the local gateway.
sourcepub fn set_local_gateway_id(self, input: Option<String>) -> Self
pub fn set_local_gateway_id(self, input: Option<String>) -> Self
The ID of the local gateway.
sourcepub fn carrier_gateway_id(self, input: impl Into<String>) -> Self
pub fn carrier_gateway_id(self, input: impl Into<String>) -> Self
The ID of the carrier gateway.
sourcepub fn set_carrier_gateway_id(self, input: Option<String>) -> Self
pub fn set_carrier_gateway_id(self, input: Option<String>) -> Self
The ID of the carrier gateway.
sourcepub fn network_interface_id(self, input: impl Into<String>) -> Self
pub fn network_interface_id(self, input: impl Into<String>) -> Self
The ID of the network interface.
sourcepub fn set_network_interface_id(self, input: Option<String>) -> Self
pub fn set_network_interface_id(self, input: Option<String>) -> Self
The ID of the network interface.
sourcepub fn origin(self, input: RouteOrigin) -> Self
pub fn origin(self, input: RouteOrigin) -> Self
Describes how the route was created.
-
CreateRouteTable
- The route was automatically created when the route table was created. -
CreateRoute
- The route was manually added to the route table. -
EnableVgwRoutePropagation
- The route was propagated by route propagation.
sourcepub fn set_origin(self, input: Option<RouteOrigin>) -> Self
pub fn set_origin(self, input: Option<RouteOrigin>) -> Self
Describes how the route was created.
-
CreateRouteTable
- The route was automatically created when the route table was created. -
CreateRoute
- The route was manually added to the route table. -
EnableVgwRoutePropagation
- The route was propagated by route propagation.
sourcepub fn state(self, input: RouteState) -> Self
pub fn state(self, input: RouteState) -> Self
The state of the route. The blackhole
state indicates that the route's target isn't available (for example, the specified gateway isn't attached to the VPC, or the specified NAT instance has been terminated).
sourcepub fn set_state(self, input: Option<RouteState>) -> Self
pub fn set_state(self, input: Option<RouteState>) -> Self
The state of the route. The blackhole
state indicates that the route's target isn't available (for example, the specified gateway isn't attached to the VPC, or the specified NAT instance has been terminated).
sourcepub fn vpc_peering_connection_id(self, input: impl Into<String>) -> Self
pub fn vpc_peering_connection_id(self, input: impl Into<String>) -> Self
The ID of a VPC peering connection.
sourcepub fn set_vpc_peering_connection_id(self, input: Option<String>) -> Self
pub fn set_vpc_peering_connection_id(self, input: Option<String>) -> Self
The ID of a VPC peering connection.
sourcepub fn core_network_arn(self, input: impl Into<String>) -> Self
pub fn core_network_arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of the core network.
sourcepub fn set_core_network_arn(self, input: Option<String>) -> Self
pub fn set_core_network_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of the core network.