NatRulePortMapping Class
- java.
lang. Object - com.
azure. resourcemanager. network. models. NatRulePortMapping
- com.
Implements
public final class NatRulePortMapping
implements JsonSerializable<NatRulePortMapping>
Individual port mappings for inbound NAT rule created for backend pool.
Constructor Summary
Constructor | Description |
---|---|
NatRulePortMapping() |
Creates an instance of Nat |
Method Summary
Modifier and Type | Method and Description |
---|---|
Integer |
backendPort()
Get the backend |
static
Nat |
fromJson(JsonReader jsonReader)
Reads an instance of Nat |
Integer |
frontendPort()
Get the frontend |
String |
inboundNatRuleName()
Get the inbound |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Nat |
withBackendPort(Integer backendPort)
Set the backend |
Nat |
withFrontendPort(Integer frontendPort)
Set the frontend |
Nat |
withInboundNatRuleName(String inboundNatRuleName)
Set the inbound |
Methods inherited from java.lang.Object
Constructor Details
NatRulePortMapping
public NatRulePortMapping()
Creates an instance of NatRulePortMapping class.
Method Details
backendPort
public Integer backendPort()
Get the backendPort property: Backend port.
Returns:
fromJson
public static NatRulePortMapping fromJson(JsonReader jsonReader)
Reads an instance of NatRulePortMapping from the JsonReader.
Parameters:
Returns:
Throws:
frontendPort
public Integer frontendPort()
Get the frontendPort property: Frontend port.
Returns:
inboundNatRuleName
public String inboundNatRuleName()
Get the inboundNatRuleName property: Name of inbound NAT rule.
Returns:
toJson
validate
public void validate()
Validates the instance.
withBackendPort
public NatRulePortMapping withBackendPort(Integer backendPort)
Set the backendPort property: Backend port.
Parameters:
Returns:
withFrontendPort
public NatRulePortMapping withFrontendPort(Integer frontendPort)
Set the frontendPort property: Frontend port.
Parameters:
Returns:
withInboundNatRuleName
public NatRulePortMapping withInboundNatRuleName(String inboundNatRuleName)
Set the inboundNatRuleName property: Name of inbound NAT rule.
Parameters:
Returns:
Applies to
Azure SDK for Java