Struct aws_sdk_globalaccelerator::model::port_mapping::Builder
source · [−]pub struct Builder { /* private fields */ }Expand description
A builder for PortMapping.
Implementations
sourceimpl Builder
impl Builder
sourcepub fn accelerator_port(self, input: i32) -> Self
pub fn accelerator_port(self, input: i32) -> Self
The accelerator port.
sourcepub fn set_accelerator_port(self, input: Option<i32>) -> Self
pub fn set_accelerator_port(self, input: Option<i32>) -> Self
The accelerator port.
sourcepub fn endpoint_group_arn(self, input: impl Into<String>) -> Self
pub fn endpoint_group_arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of the endpoint group.
sourcepub fn set_endpoint_group_arn(self, input: Option<String>) -> Self
pub fn set_endpoint_group_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of the endpoint group.
sourcepub fn endpoint_id(self, input: impl Into<String>) -> Self
pub fn endpoint_id(self, input: impl Into<String>) -> Self
The IP address of the VPC subnet (the subnet ID).
sourcepub fn set_endpoint_id(self, input: Option<String>) -> Self
pub fn set_endpoint_id(self, input: Option<String>) -> Self
The IP address of the VPC subnet (the subnet ID).
sourcepub fn destination_socket_address(self, input: SocketAddress) -> Self
pub fn destination_socket_address(self, input: SocketAddress) -> Self
The EC2 instance IP address and port number in the virtual private cloud (VPC) subnet.
sourcepub fn set_destination_socket_address(self, input: Option<SocketAddress>) -> Self
pub fn set_destination_socket_address(self, input: Option<SocketAddress>) -> Self
The EC2 instance IP address and port number in the virtual private cloud (VPC) subnet.
sourcepub fn protocols(self, input: CustomRoutingProtocol) -> Self
pub fn protocols(self, input: CustomRoutingProtocol) -> Self
Appends an item to protocols.
To override the contents of this collection use set_protocols.
The protocols supported by the endpoint group.
sourcepub fn set_protocols(self, input: Option<Vec<CustomRoutingProtocol>>) -> Self
pub fn set_protocols(self, input: Option<Vec<CustomRoutingProtocol>>) -> Self
The protocols supported by the endpoint group.
sourcepub fn destination_traffic_state(
self,
input: CustomRoutingDestinationTrafficState
) -> Self
pub fn destination_traffic_state(
self,
input: CustomRoutingDestinationTrafficState
) -> Self
Indicates whether or not a port mapping destination can receive traffic. The value is either ALLOW, if traffic is allowed to the destination, or DENY, if traffic is not allowed to the destination.
sourcepub fn set_destination_traffic_state(
self,
input: Option<CustomRoutingDestinationTrafficState>
) -> Self
pub fn set_destination_traffic_state(
self,
input: Option<CustomRoutingDestinationTrafficState>
) -> Self
Indicates whether or not a port mapping destination can receive traffic. The value is either ALLOW, if traffic is allowed to the destination, or DENY, if traffic is not allowed to the destination.
sourcepub fn build(self) -> PortMapping
pub fn build(self) -> PortMapping
Consumes the builder and constructs a PortMapping.