Class IpAddressAvailabilityResultInner

java.lang.Object
com.azure.resourcemanager.network.fluent.models.IpAddressAvailabilityResultInner
All Implemented Interfaces:
com.azure.json.JsonSerializable<IpAddressAvailabilityResultInner>

public final class IpAddressAvailabilityResultInner extends Object implements com.azure.json.JsonSerializable<IpAddressAvailabilityResultInner>
Response for CheckIPAddressAvailability API service call.
  • Constructor Details

    • IpAddressAvailabilityResultInner

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

    • available

      public Boolean available()
      Get the available property: Private IP address availability.
      Returns:
      the available value.
    • withAvailable

      public IpAddressAvailabilityResultInner withAvailable(Boolean available)
      Set the available property: Private IP address availability.
      Parameters:
      available - the available value to set.
      Returns:
      the IpAddressAvailabilityResultInner object itself.
    • availableIpAddresses

      public List<String> availableIpAddresses()
      Get the availableIpAddresses property: Contains other available private IP addresses if the asked for address is taken.
      Returns:
      the availableIpAddresses value.
    • withAvailableIpAddresses

      public IpAddressAvailabilityResultInner withAvailableIpAddresses(List<String> availableIpAddresses)
      Set the availableIpAddresses property: Contains other available private IP addresses if the asked for address is taken.
      Parameters:
      availableIpAddresses - the availableIpAddresses value to set.
      Returns:
      the IpAddressAvailabilityResultInner object itself.
    • isPlatformReserved

      public Boolean isPlatformReserved()
      Get the isPlatformReserved property: Private IP address platform reserved.
      Returns:
      the isPlatformReserved value.
    • withIsPlatformReserved

      public IpAddressAvailabilityResultInner withIsPlatformReserved(Boolean isPlatformReserved)
      Set the isPlatformReserved property: Private IP address platform reserved.
      Parameters:
      isPlatformReserved - the isPlatformReserved value to set.
      Returns:
      the IpAddressAvailabilityResultInner 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<IpAddressAvailabilityResultInner>
      Throws:
      IOException
    • fromJson

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