Class IPv6FirewallRuleInner
java.lang.Object
com.azure.core.management.ProxyResource
com.azure.resourcemanager.sql.models.ResourceWithWritableName
com.azure.resourcemanager.sql.models.ProxyResourceWithWritableName
com.azure.resourcemanager.sql.fluent.models.IPv6FirewallRuleInner
- All Implemented Interfaces:
com.azure.json.JsonSerializable<com.azure.core.management.ProxyResource>
An IPv6 server firewall rule.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the endIPv6Address property: The end IP address of the firewall rule.static IPv6FirewallRuleInnerfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of IPv6FirewallRuleInner from the JsonReader.id()Get the id property: Fully qualified resource Id for the resource.Get the startIPv6Address property: The start IP address of the firewall rule.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) type()Get the type property: The type of the resource.voidvalidate()Validates the instance.withEndIPv6Address(String endIPv6Address) Set the endIPv6Address property: The end IP address of the firewall rule.Set the name property: Resource name.withStartIPv6Address(String startIPv6Address) Set the startIPv6Address property: The start IP address of the firewall rule.Methods inherited from class com.azure.resourcemanager.sql.models.ResourceWithWritableName
nameMethods 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
-
IPv6FirewallRuleInner
public IPv6FirewallRuleInner()Creates an instance of IPv6FirewallRuleInner class.
-
-
Method Details
-
type
Get the type property: The type of the resource.- Overrides:
typein classProxyResourceWithWritableName- Returns:
- the type value.
-
id
Get the id property: Fully qualified resource Id for the resource.- Overrides:
idin classProxyResourceWithWritableName- Returns:
- the id value.
-
withName
Set the name property: Resource name.- Overrides:
withNamein classProxyResourceWithWritableName- Parameters:
name- the name value to set.- Returns:
- the ResourceWithWritableName object itself.
-
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 IPv6FirewallRuleInner 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 IPv6FirewallRuleInner object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validatein classProxyResourceWithWritableName- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<com.azure.core.management.ProxyResource>- Overrides:
toJsonin classProxyResourceWithWritableName- Throws:
IOException
-
fromJson
public static IPv6FirewallRuleInner fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of IPv6FirewallRuleInner from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of IPv6FirewallRuleInner if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the IPv6FirewallRuleInner.
-