Class IPv6FirewallRuleInner

java.lang.Object
com.azure.core.management.ProxyResource
All Implemented Interfaces:
com.azure.json.JsonSerializable<com.azure.core.management.ProxyResource>

public final class IPv6FirewallRuleInner extends ProxyResourceWithWritableName
An IPv6 server firewall rule.
  • Constructor Details

    • IPv6FirewallRuleInner

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

    • type

      public String type()
      Get the type property: The type of the resource.
      Overrides:
      type in class ProxyResourceWithWritableName
      Returns:
      the type value.
    • id

      public String id()
      Get the id property: Fully qualified resource Id for the resource.
      Overrides:
      id in class ProxyResourceWithWritableName
      Returns:
      the id value.
    • withName

      public IPv6FirewallRuleInner withName(String name)
      Set the name property: Resource name.
      Overrides:
      withName in class ProxyResourceWithWritableName
      Parameters:
      name - the name value to set.
      Returns:
      the ResourceWithWritableName object itself.
    • startIPv6Address

      public String startIPv6Address()
      Get the startIPv6Address property: The start IP address of the firewall rule. Must be IPv6 format.
      Returns:
      the startIPv6Address value.
    • withStartIPv6Address

      public IPv6FirewallRuleInner withStartIPv6Address(String startIPv6Address)
      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

      public String 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

      public IPv6FirewallRuleInner withEndIPv6Address(String endIPv6Address)
      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:
      validate in class ProxyResourceWithWritableName
      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<com.azure.core.management.ProxyResource>
      Overrides:
      toJson in class ProxyResourceWithWritableName
      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.