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