Class NatRulePortMapping
- java.lang.Object
-
- com.azure.resourcemanager.network.models.NatRulePortMapping
-
public final class NatRulePortMapping extends Object
Individual port mappings for inbound NAT rule created for backend pool.
-
-
Constructor Summary
Constructors Constructor Description NatRulePortMapping()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IntegerbackendPort()Get the backendPort property: Backend port.IntegerfrontendPort()Get the frontendPort property: Frontend port.StringinboundNatRuleName()Get the inboundNatRuleName property: Name of inbound NAT rule.voidvalidate()Validates the instance.NatRulePortMappingwithBackendPort(Integer backendPort)Set the backendPort property: Backend port.NatRulePortMappingwithFrontendPort(Integer frontendPort)Set the frontendPort property: Frontend port.NatRulePortMappingwithInboundNatRuleName(String inboundNatRuleName)Set the inboundNatRuleName property: Name of inbound NAT rule.
-
-
-
Method Detail
-
inboundNatRuleName
public String inboundNatRuleName()
Get the inboundNatRuleName property: Name of inbound NAT rule.- Returns:
- the inboundNatRuleName value.
-
withInboundNatRuleName
public NatRulePortMapping withInboundNatRuleName(String inboundNatRuleName)
Set the inboundNatRuleName property: Name of inbound NAT rule.- Parameters:
inboundNatRuleName- the inboundNatRuleName value to set.- Returns:
- the NatRulePortMapping object itself.
-
frontendPort
public Integer frontendPort()
Get the frontendPort property: Frontend port.- Returns:
- the frontendPort value.
-
withFrontendPort
public NatRulePortMapping withFrontendPort(Integer frontendPort)
Set the frontendPort property: Frontend port.- Parameters:
frontendPort- the frontendPort value to set.- Returns:
- the NatRulePortMapping object itself.
-
backendPort
public Integer backendPort()
Get the backendPort property: Backend port.- Returns:
- the backendPort value.
-
withBackendPort
public NatRulePortMapping withBackendPort(Integer backendPort)
Set the backendPort property: Backend port.- Parameters:
backendPort- the backendPort value to set.- Returns:
- the NatRulePortMapping object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-