Class CustomDnsConfigPropertiesFormat

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

public final class CustomDnsConfigPropertiesFormat extends Object implements com.azure.json.JsonSerializable<CustomDnsConfigPropertiesFormat>
Contains custom Dns resolution configuration from customer.
  • Constructor Details

    • CustomDnsConfigPropertiesFormat

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

    • fqdn

      public String fqdn()
      Get the fqdn property: Fqdn that resolves to private endpoint ip address.
      Returns:
      the fqdn value.
    • withFqdn

      public CustomDnsConfigPropertiesFormat withFqdn(String fqdn)
      Set the fqdn property: Fqdn that resolves to private endpoint ip address.
      Parameters:
      fqdn - the fqdn value to set.
      Returns:
      the CustomDnsConfigPropertiesFormat object itself.
    • ipAddresses

      public List<String> ipAddresses()
      Get the ipAddresses property: A list of private ip addresses of the private endpoint.
      Returns:
      the ipAddresses value.
    • withIpAddresses

      public CustomDnsConfigPropertiesFormat withIpAddresses(List<String> ipAddresses)
      Set the ipAddresses property: A list of private ip addresses of the private endpoint.
      Parameters:
      ipAddresses - the ipAddresses value to set.
      Returns:
      the CustomDnsConfigPropertiesFormat 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<CustomDnsConfigPropertiesFormat>
      Throws:
      IOException
    • fromJson

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