Class InboundNatRule
java.lang.Object
com.azure.resourcemanager.devtestlabs.models.InboundNatRule
A rule for NAT - exposing a VM's port (backendPort) on the public IP address using a load balancer.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the backendPort property: The port to which the external traffic will be redirected.Get the frontendPort property: The external endpoint port of the inbound connection.Get the transportProtocol property: The transport protocol for the endpoint.void
validate()
Validates the instance.withBackendPort
(Integer backendPort) Set the backendPort property: The port to which the external traffic will be redirected.withFrontendPort
(Integer frontendPort) Set the frontendPort property: The external endpoint port of the inbound connection.withTransportProtocol
(TransportProtocol transportProtocol) Set the transportProtocol property: The transport protocol for the endpoint.
-
Constructor Details
-
InboundNatRule
public InboundNatRule()Creates an instance of InboundNatRule class.
-
-
Method Details
-
transportProtocol
Get the transportProtocol property: The transport protocol for the endpoint.- Returns:
- the transportProtocol value.
-
withTransportProtocol
Set the transportProtocol property: The transport protocol for the endpoint.- Parameters:
transportProtocol
- the transportProtocol value to set.- Returns:
- the InboundNatRule object itself.
-
frontendPort
Get the frontendPort property: The external endpoint port of the inbound connection. Possible values range between 1 and 65535, inclusive. If unspecified, a value will be allocated automatically.- Returns:
- the frontendPort value.
-
withFrontendPort
Set the frontendPort property: The external endpoint port of the inbound connection. Possible values range between 1 and 65535, inclusive. If unspecified, a value will be allocated automatically.- Parameters:
frontendPort
- the frontendPort value to set.- Returns:
- the InboundNatRule object itself.
-
backendPort
Get the backendPort property: The port to which the external traffic will be redirected.- Returns:
- the backendPort value.
-
withBackendPort
Set the backendPort property: The port to which the external traffic will be redirected.- Parameters:
backendPort
- the backendPort value to set.- Returns:
- the InboundNatRule object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-