Class IPv6ServerFirewallRuleProperties
java.lang.Object
com.azure.resourcemanager.sql.fluent.models.IPv6ServerFirewallRuleProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<IPv6ServerFirewallRuleProperties>
public final class IPv6ServerFirewallRuleProperties
extends Object
implements com.azure.json.JsonSerializable<IPv6ServerFirewallRuleProperties>
The properties of an IPv6 server firewall rule.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of IPv6ServerFirewallRuleProperties class. -
Method Summary
Modifier and TypeMethodDescriptionGet the endIPv6Address property: The end IP address of the firewall rule.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of IPv6ServerFirewallRuleProperties from the JsonReader.Get the startIPv6Address property: The start IP address of the firewall rule.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withEndIPv6Address(String endIPv6Address) Set the endIPv6Address property: The end IP address of the firewall rule.withStartIPv6Address(String startIPv6Address) Set the startIPv6Address property: The start IP address of the firewall rule.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
-
IPv6ServerFirewallRuleProperties
public IPv6ServerFirewallRuleProperties()Creates an instance of IPv6ServerFirewallRuleProperties class.
-
-
Method Details
-
startIPv6Address
Get the startIPv6Address property: The start IP address of the firewall rule. Must be IPv6 format.- Returns:
- the startIPv6Address value.
-
withStartIPv6Address
Set the startIPv6Address property: The start IP address of the firewall rule. Must be IPv6 format.- Parameters:
startIPv6Address- the startIPv6Address value to set.- Returns:
- the IPv6ServerFirewallRuleProperties object itself.
-
endIPv6Address
Get the endIPv6Address property: The end IP address of the firewall rule. Must be IPv6 format. Must be greater than or equal to startIpAddress.- Returns:
- the endIPv6Address value.
-
withEndIPv6Address
Set the endIPv6Address property: The end IP address of the firewall rule. Must be IPv6 format. Must be greater than or equal to startIpAddress.- Parameters:
endIPv6Address- the endIPv6Address value to set.- Returns:
- the IPv6ServerFirewallRuleProperties 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<IPv6ServerFirewallRuleProperties>- Throws:
IOException
-
fromJson
public static IPv6ServerFirewallRuleProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of IPv6ServerFirewallRuleProperties from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of IPv6ServerFirewallRuleProperties 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 IPv6ServerFirewallRuleProperties.
-