InboundNatRulePortMapping Class

  • java.lang.Object
    • com.azure.resourcemanager.network.models.InboundNatRulePortMapping

Implements

public final class InboundNatRulePortMapping
implements JsonSerializable<InboundNatRulePortMapping>

Individual port mappings for inbound NAT rule created for backend pool.

Constructor Summary

Constructor Description
InboundNatRulePortMapping()

Creates an instance of InboundNatRulePortMapping class.

Method Summary

Modifier and Type Method and Description
Integer backendPort()

Get the backendPort property: Backend port.

static InboundNatRulePortMapping fromJson(JsonReader jsonReader)

Reads an instance of InboundNatRulePortMapping from the JsonReader.

Integer frontendPort()

Get the frontendPort property: Frontend port.

String inboundNatRuleName()

Get the inboundNatRuleName property: Name of inbound NAT rule.

TransportProtocol protocol()

Get the protocol property: The reference to the transport protocol used by the inbound NAT rule.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

Methods inherited from java.lang.Object

Constructor Details

InboundNatRulePortMapping

public InboundNatRulePortMapping()

Creates an instance of InboundNatRulePortMapping class.

Method Details

backendPort

public Integer backendPort()

Get the backendPort property: Backend port.

Returns:

the backendPort value.

fromJson

public static InboundNatRulePortMapping fromJson(JsonReader jsonReader)

Reads an instance of InboundNatRulePortMapping from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of InboundNatRulePortMapping if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the InboundNatRulePortMapping.

frontendPort

public Integer frontendPort()

Get the frontendPort property: Frontend port.

Returns:

the frontendPort value.

inboundNatRuleName

public String inboundNatRuleName()

Get the inboundNatRuleName property: Name of inbound NAT rule.

Returns:

the inboundNatRuleName value.

protocol

public TransportProtocol protocol()

Get the protocol property: The reference to the transport protocol used by the inbound NAT rule.

Returns:

the protocol value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Applies to