Class InboundNatRulePortMapping
java.lang.Object
com.azure.resourcemanager.network.models.InboundNatRulePortMapping
- All Implemented Interfaces:
com.azure.json.JsonSerializable<InboundNatRulePortMapping>
public final class InboundNatRulePortMapping
extends Object
implements com.azure.json.JsonSerializable<InboundNatRulePortMapping>
Individual port mappings for inbound NAT rule created for backend pool.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of InboundNatRulePortMapping class. -
Method Summary
Modifier and TypeMethodDescriptionGet the backendPort property: Backend port.static InboundNatRulePortMappingfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of InboundNatRulePortMapping from the JsonReader.Get the frontendPort property: Frontend port.Get the inboundNatRuleName property: Name of inbound NAT rule.protocol()Get the protocol property: The reference to the transport protocol used by the inbound NAT rule.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
InboundNatRulePortMapping
public InboundNatRulePortMapping()Creates an instance of InboundNatRulePortMapping class.
-
-
Method Details
-
inboundNatRuleName
Get the inboundNatRuleName property: Name of inbound NAT rule.- Returns:
- the inboundNatRuleName value.
-
protocol
Get the protocol property: The reference to the transport protocol used by the inbound NAT rule.- Returns:
- the protocol value.
-
frontendPort
Get the frontendPort property: Frontend port.- Returns:
- the frontendPort value.
-
backendPort
Get the backendPort property: Backend port.- Returns:
- the backendPort value.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<InboundNatRulePortMapping>- Throws:
IOException
-
fromJson
public static InboundNatRulePortMapping fromJson(com.azure.json.JsonReader jsonReader) throws IOException 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.
-