public final class InboundNatRule extends Object
Constructor and Description |
---|
InboundNatRule() |
Modifier and Type | Method and Description |
---|---|
Integer |
backendPort()
Get the backendPort property: The port to which the external traffic will be redirected.
|
Integer |
frontendPort()
Get the frontendPort property: The external endpoint port of the inbound connection.
|
TransportProtocol |
transportProtocol()
Get the transportProtocol property: The transport protocol for the endpoint.
|
void |
validate()
Validates the instance.
|
InboundNatRule |
withBackendPort(Integer backendPort)
Set the backendPort property: The port to which the external traffic will be redirected.
|
InboundNatRule |
withFrontendPort(Integer frontendPort)
Set the frontendPort property: The external endpoint port of the inbound connection.
|
InboundNatRule |
withTransportProtocol(TransportProtocol transportProtocol)
Set the transportProtocol property: The transport protocol for the endpoint.
|
public TransportProtocol transportProtocol()
public InboundNatRule withTransportProtocol(TransportProtocol transportProtocol)
transportProtocol
- the transportProtocol value to set.public Integer frontendPort()
public InboundNatRule withFrontendPort(Integer frontendPort)
frontendPort
- the frontendPort value to set.public Integer backendPort()
public InboundNatRule withBackendPort(Integer backendPort)
backendPort
- the backendPort value to set.public void validate()
IllegalArgumentException
- thrown if the instance is not valid.Copyright © 2021 Microsoft Corporation. All rights reserved.