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 Summary
ConstructorsConstructorDescriptionCreates an instance of CustomDnsConfigPropertiesFormat class. -
Method Summary
Modifier and TypeMethodDescriptionfqdn()Get the fqdn property: Fqdn that resolves to private endpoint ip address.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of CustomDnsConfigPropertiesFormat from the JsonReader.Get the ipAddresses property: A list of private ip addresses of the private endpoint.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.Set the fqdn property: Fqdn that resolves to private endpoint ip address.withIpAddresses(List<String> ipAddresses) Set the ipAddresses property: A list of private ip addresses of the private endpoint.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
-
CustomDnsConfigPropertiesFormat
public CustomDnsConfigPropertiesFormat()Creates an instance of CustomDnsConfigPropertiesFormat class.
-
-
Method Details
-
fqdn
Get the fqdn property: Fqdn that resolves to private endpoint ip address.- Returns:
- the fqdn value.
-
withFqdn
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
Get the ipAddresses property: A list of private ip addresses of the private endpoint.- Returns:
- the ipAddresses value.
-
withIpAddresses
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
- Specified by:
toJsonin interfacecom.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.
-