Class VirtualIpMapping

java.lang.Object
com.azure.resourcemanager.appservice.models.VirtualIpMapping
All Implemented Interfaces:
com.azure.json.JsonSerializable<VirtualIpMapping>

public final class VirtualIpMapping extends Object implements com.azure.json.JsonSerializable<VirtualIpMapping>
Virtual IP mapping.
  • Constructor Details

    • VirtualIpMapping

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

    • virtualIp

      public String virtualIp()
      Get the virtualIp property: Virtual IP address.
      Returns:
      the virtualIp value.
    • withVirtualIp

      public VirtualIpMapping withVirtualIp(String virtualIp)
      Set the virtualIp property: Virtual IP address.
      Parameters:
      virtualIp - the virtualIp value to set.
      Returns:
      the VirtualIpMapping object itself.
    • internalHttpPort

      public Integer internalHttpPort()
      Get the internalHttpPort property: Internal HTTP port.
      Returns:
      the internalHttpPort value.
    • withInternalHttpPort

      public VirtualIpMapping withInternalHttpPort(Integer internalHttpPort)
      Set the internalHttpPort property: Internal HTTP port.
      Parameters:
      internalHttpPort - the internalHttpPort value to set.
      Returns:
      the VirtualIpMapping object itself.
    • internalHttpsPort

      public Integer internalHttpsPort()
      Get the internalHttpsPort property: Internal HTTPS port.
      Returns:
      the internalHttpsPort value.
    • withInternalHttpsPort

      public VirtualIpMapping withInternalHttpsPort(Integer internalHttpsPort)
      Set the internalHttpsPort property: Internal HTTPS port.
      Parameters:
      internalHttpsPort - the internalHttpsPort value to set.
      Returns:
      the VirtualIpMapping object itself.
    • inUse

      public Boolean inUse()
      Get the inUse property: Is virtual IP mapping in use.
      Returns:
      the inUse value.
    • withInUse

      public VirtualIpMapping withInUse(Boolean inUse)
      Set the inUse property: Is virtual IP mapping in use.
      Parameters:
      inUse - the inUse value to set.
      Returns:
      the VirtualIpMapping object itself.
    • serviceName

      public String serviceName()
      Get the serviceName property: name of the service that virtual IP is assigned to.
      Returns:
      the serviceName value.
    • withServiceName

      public VirtualIpMapping withServiceName(String serviceName)
      Set the serviceName property: name of the service that virtual IP is assigned to.
      Parameters:
      serviceName - the serviceName value to set.
      Returns:
      the VirtualIpMapping object itself.
    • 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<VirtualIpMapping>
      Throws:
      IOException
    • fromJson

      public static VirtualIpMapping fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of VirtualIpMapping from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of VirtualIpMapping 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 VirtualIpMapping.