pub struct Builder { /* private fields */ }
Expand description
A builder for VirtualGatewayPortMapping
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn port(self, input: i32) -> Self
pub fn port(self, input: i32) -> Self
The port used for the port mapping. Specify one protocol.
sourcepub fn set_port(self, input: Option<i32>) -> Self
pub fn set_port(self, input: Option<i32>) -> Self
The port used for the port mapping. Specify one protocol.
sourcepub fn protocol(self, input: VirtualGatewayPortProtocol) -> Self
pub fn protocol(self, input: VirtualGatewayPortProtocol) -> Self
The protocol used for the port mapping.
sourcepub fn set_protocol(self, input: Option<VirtualGatewayPortProtocol>) -> Self
pub fn set_protocol(self, input: Option<VirtualGatewayPortProtocol>) -> Self
The protocol used for the port mapping.
sourcepub fn build(self) -> VirtualGatewayPortMapping
pub fn build(self) -> VirtualGatewayPortMapping
Consumes the builder and constructs a VirtualGatewayPortMapping
.