Class EffectiveBaseSecurityAdminRule

java.lang.Object
com.azure.resourcemanager.network.models.EffectiveBaseSecurityAdminRule
All Implemented Interfaces:
com.azure.json.JsonSerializable<EffectiveBaseSecurityAdminRule>
Direct Known Subclasses:
EffectiveDefaultSecurityAdminRule, EffectiveSecurityAdminRule

public class EffectiveBaseSecurityAdminRule extends Object implements com.azure.json.JsonSerializable<EffectiveBaseSecurityAdminRule>
Network base admin rule.
  • Constructor Details

    • EffectiveBaseSecurityAdminRule

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

    • kind

      public EffectiveAdminRuleKind kind()
      Get the kind property: Whether the rule is custom or default.
      Returns:
      the kind value.
    • id

      public String id()
      Get the id property: Resource ID.
      Returns:
      the id value.
    • withId

      Set the id property: Resource ID.
      Parameters:
      id - the id value to set.
      Returns:
      the EffectiveBaseSecurityAdminRule object itself.
    • configurationDescription

      public String configurationDescription()
      Get the configurationDescription property: A description of the security admin configuration.
      Returns:
      the configurationDescription value.
    • withConfigurationDescription

      public EffectiveBaseSecurityAdminRule withConfigurationDescription(String configurationDescription)
      Set the configurationDescription property: A description of the security admin configuration.
      Parameters:
      configurationDescription - the configurationDescription value to set.
      Returns:
      the EffectiveBaseSecurityAdminRule object itself.
    • ruleCollectionDescription

      public String ruleCollectionDescription()
      Get the ruleCollectionDescription property: A description of the rule collection.
      Returns:
      the ruleCollectionDescription value.
    • withRuleCollectionDescription

      public EffectiveBaseSecurityAdminRule withRuleCollectionDescription(String ruleCollectionDescription)
      Set the ruleCollectionDescription property: A description of the rule collection.
      Parameters:
      ruleCollectionDescription - the ruleCollectionDescription value to set.
      Returns:
      the EffectiveBaseSecurityAdminRule object itself.
    • ruleCollectionAppliesToGroups

      public List<NetworkManagerSecurityGroupItem> ruleCollectionAppliesToGroups()
      Get the ruleCollectionAppliesToGroups property: Groups for rule collection.
      Returns:
      the ruleCollectionAppliesToGroups value.
    • withRuleCollectionAppliesToGroups

      public EffectiveBaseSecurityAdminRule withRuleCollectionAppliesToGroups(List<NetworkManagerSecurityGroupItem> ruleCollectionAppliesToGroups)
      Set the ruleCollectionAppliesToGroups property: Groups for rule collection.
      Parameters:
      ruleCollectionAppliesToGroups - the ruleCollectionAppliesToGroups value to set.
      Returns:
      the EffectiveBaseSecurityAdminRule object itself.
    • ruleGroups

      public List<ConfigurationGroup> ruleGroups()
      Get the ruleGroups property: Effective configuration groups.
      Returns:
      the ruleGroups value.
    • withRuleGroups

      public EffectiveBaseSecurityAdminRule withRuleGroups(List<ConfigurationGroup> ruleGroups)
      Set the ruleGroups property: Effective configuration groups.
      Parameters:
      ruleGroups - the ruleGroups value to set.
      Returns:
      the EffectiveBaseSecurityAdminRule object itself.
    • validate

      public void validate()
      Validates the instance.
      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<EffectiveBaseSecurityAdminRule>
      Throws:
      IOException
    • fromJson

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