Class AccessRule

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

public final class AccessRule extends Object implements com.azure.json.JsonSerializable<AccessRule>
Access rule in a network security perimeter configuration profile.
  • Method Details

    • name

      public String name()
      Get the name property: Name of the access rule.
      Returns:
      the name value.
    • properties

      public AccessRuleProperties properties()
      Get the properties property: The properties property.
      Returns:
      the properties value.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<AccessRule>
      Throws:
      IOException
    • fromJson

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