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 Details

    • InboundNatRulePortMapping

      public InboundNatRulePortMapping()
      Creates an instance of InboundNatRulePortMapping class.
  • Method Details

    • 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.
    • frontendPort

      public Integer frontendPort()
      Get the frontendPort property: Frontend port.
      Returns:
      the frontendPort value.
    • backendPort

      public Integer 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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.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.